From 09ef9e639efa1b01005dcb7fc044611f277ad618 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sat, 13 Nov 2021 17:29:43 +0100 Subject: move to ssb gofed fork (#298) --- vendor/github.com/go-fed/activity/LICENSE | 29 - vendor/github.com/go-fed/activity/pub/README.md | 270 - vendor/github.com/go-fed/activity/pub/activity.go | 49 - vendor/github.com/go-fed/activity/pub/actor.go | 127 - .../github.com/go-fed/activity/pub/base_actor.go | 494 -- vendor/github.com/go-fed/activity/pub/clock.go | 11 - .../go-fed/activity/pub/common_behavior.go | 89 - vendor/github.com/go-fed/activity/pub/database.go | 139 - .../go-fed/activity/pub/delegate_actor.go | 248 - vendor/github.com/go-fed/activity/pub/doc.go | 9 - .../go-fed/activity/pub/federating_protocol.go | 124 - .../activity/pub/federating_wrapped_callbacks.go | 907 --- vendor/github.com/go-fed/activity/pub/handlers.go | 113 - .../go-fed/activity/pub/property_interfaces.go | 117 - .../go-fed/activity/pub/side_effect_actor.go | 810 --- .../go-fed/activity/pub/social_protocol.go | 82 - .../activity/pub/social_wrapped_callbacks.go | 531 -- vendor/github.com/go-fed/activity/pub/transport.go | 207 - vendor/github.com/go-fed/activity/pub/util.go | 995 --- vendor/github.com/go-fed/activity/pub/version.go | 15 - .../github.com/go-fed/activity/streams/README.md | 152 - .../go-fed/activity/streams/gen_consts.go | 504 -- .../github.com/go-fed/activity/streams/gen_doc.go | 51 - .../github.com/go-fed/activity/streams/gen_init.go | 410 -- .../go-fed/activity/streams/gen_json_resolver.go | 978 --- .../go-fed/activity/streams/gen_manager.go | 2307 ------- .../streams/gen_pkg_activitystreams_disjoint.go | 385 -- .../streams/gen_pkg_activitystreams_extendedby.go | 439 -- .../streams/gen_pkg_activitystreams_extends.go | 385 -- .../streams/gen_pkg_activitystreams_isorextends.go | 388 -- ...en_pkg_activitystreams_property_constructors.go | 511 -- .../gen_pkg_activitystreams_type_constructors.go | 334 - .../activity/streams/gen_pkg_forgefed_disjoint.go | 49 - .../streams/gen_pkg_forgefed_extendedby.go | 55 - .../activity/streams/gen_pkg_forgefed_extends.go | 48 - .../streams/gen_pkg_forgefed_isorextends.go | 49 - .../gen_pkg_forgefed_property_constructors.go | 126 - .../streams/gen_pkg_forgefed_type_constructors.go | 43 - .../gen_pkg_jsonld_property_constructors.go | 19 - .../activity/streams/gen_pkg_toot_disjoint.go | 20 - .../activity/streams/gen_pkg_toot_extendedby.go | 23 - .../activity/streams/gen_pkg_toot_extends.go | 20 - .../activity/streams/gen_pkg_toot_isorextends.go | 21 - .../streams/gen_pkg_toot_property_constructors.go | 44 - .../streams/gen_pkg_toot_type_constructors.go | 19 - .../streams/gen_pkg_w3idsecurityv1_disjoint.go | 14 - .../streams/gen_pkg_w3idsecurityv1_extendedby.go | 15 - .../streams/gen_pkg_w3idsecurityv1_extends.go | 14 - .../streams/gen_pkg_w3idsecurityv1_isorextends.go | 14 - ...gen_pkg_w3idsecurityv1_property_constructors.go | 28 - .../gen_pkg_w3idsecurityv1_type_constructors.go | 13 - .../go-fed/activity/streams/gen_resolver_utils.go | 244 - .../streams/gen_type_predicated_resolver.go | 881 --- .../go-fed/activity/streams/gen_type_resolver.go | 744 -- .../activitystreams/property_accuracy/gen_doc.go | 17 - .../activitystreams/property_accuracy/gen_pkg.go | 15 - .../gen_property_activitystreams_accuracy.go | 203 - .../impl/activitystreams/property_actor/gen_doc.go | 17 - .../impl/activitystreams/property_actor/gen_pkg.go | 265 - .../gen_property_activitystreams_actor.go | 7030 ------------------- .../activitystreams/property_altitude/gen_doc.go | 17 - .../activitystreams/property_altitude/gen_pkg.go | 15 - .../gen_property_activitystreams_altitude.go | 203 - .../impl/activitystreams/property_anyof/gen_doc.go | 17 - .../impl/activitystreams/property_anyof/gen_pkg.go | 265 - .../gen_property_activitystreams_anyOf.go | 7030 ------------------- .../activitystreams/property_attachment/gen_doc.go | 17 - .../activitystreams/property_attachment/gen_pkg.go | 265 - .../gen_property_activitystreams_attachment.go | 7047 ------------------- .../property_attributedto/gen_doc.go | 17 - .../property_attributedto/gen_pkg.go | 265 - .../gen_property_activitystreams_attributedTo.go | 7089 ------------------- .../activitystreams/property_audience/gen_doc.go | 17 - .../activitystreams/property_audience/gen_pkg.go | 265 - .../gen_property_activitystreams_audience.go | 7042 ------------------- .../impl/activitystreams/property_bcc/gen_doc.go | 17 - .../impl/activitystreams/property_bcc/gen_pkg.go | 265 - .../gen_property_activitystreams_bcc.go | 7028 ------------------- .../impl/activitystreams/property_bto/gen_doc.go | 17 - .../impl/activitystreams/property_bto/gen_pkg.go | 265 - .../gen_property_activitystreams_bto.go | 7028 ------------------- .../impl/activitystreams/property_cc/gen_doc.go | 17 - .../impl/activitystreams/property_cc/gen_pkg.go | 265 - .../property_cc/gen_property_activitystreams_cc.go | 7028 ------------------- .../activitystreams/property_closed/gen_doc.go | 17 - .../activitystreams/property_closed/gen_pkg.go | 265 - .../gen_property_activitystreams_closed.go | 7240 -------------------- .../activitystreams/property_content/gen_doc.go | 17 - .../activitystreams/property_content/gen_pkg.go | 15 - .../gen_property_activitystreams_content.go | 668 -- .../activitystreams/property_context/gen_doc.go | 17 - .../activitystreams/property_context/gen_pkg.go | 265 - .../gen_property_activitystreams_context.go | 7042 ------------------- .../activitystreams/property_current/gen_doc.go | 17 - .../activitystreams/property_current/gen_pkg.go | 35 - .../gen_property_activitystreams_current.go | 359 - .../activitystreams/property_deleted/gen_doc.go | 17 - .../activitystreams/property_deleted/gen_pkg.go | 15 - .../gen_property_activitystreams_deleted.go | 204 - .../activitystreams/property_describes/gen_doc.go | 17 - .../activitystreams/property_describes/gen_pkg.go | 257 - .../gen_property_activitystreams_describes.go | 2932 -------- .../activitystreams/property_duration/gen_doc.go | 17 - .../activitystreams/property_duration/gen_pkg.go | 15 - .../gen_property_activitystreams_duration.go | 204 - .../activitystreams/property_endtime/gen_doc.go | 17 - .../activitystreams/property_endtime/gen_pkg.go | 15 - .../gen_property_activitystreams_endTime.go | 204 - .../impl/activitystreams/property_first/gen_doc.go | 17 - .../impl/activitystreams/property_first/gen_pkg.go | 35 - .../gen_property_activitystreams_first.go | 359 - .../activitystreams/property_followers/gen_doc.go | 17 - .../activitystreams/property_followers/gen_pkg.go | 35 - .../gen_property_activitystreams_followers.go | 360 - .../activitystreams/property_following/gen_doc.go | 17 - .../activitystreams/property_following/gen_pkg.go | 35 - .../gen_property_activitystreams_following.go | 360 - .../activitystreams/property_formertype/gen_doc.go | 17 - .../activitystreams/property_formertype/gen_pkg.go | 257 - .../gen_property_activitystreams_formerType.go | 6940 ------------------- .../activitystreams/property_generator/gen_doc.go | 17 - .../activitystreams/property_generator/gen_pkg.go | 265 - .../gen_property_activitystreams_generator.go | 7044 ------------------- .../activitystreams/property_height/gen_doc.go | 17 - .../activitystreams/property_height/gen_pkg.go | 15 - .../gen_property_activitystreams_height.go | 204 - .../impl/activitystreams/property_href/gen_doc.go | 17 - .../impl/activitystreams/property_href/gen_pkg.go | 15 - .../gen_property_activitystreams_href.go | 181 - .../activitystreams/property_hreflang/gen_doc.go | 17 - .../activitystreams/property_hreflang/gen_pkg.go | 15 - .../gen_property_activitystreams_hreflang.go | 203 - .../impl/activitystreams/property_icon/gen_doc.go | 17 - .../impl/activitystreams/property_icon/gen_pkg.go | 30 - .../gen_property_activitystreams_icon.go | 824 --- .../impl/activitystreams/property_image/gen_doc.go | 17 - .../impl/activitystreams/property_image/gen_pkg.go | 30 - .../gen_property_activitystreams_image.go | 824 --- .../impl/activitystreams/property_inbox/gen_doc.go | 17 - .../impl/activitystreams/property_inbox/gen_pkg.go | 27 - .../gen_property_activitystreams_inbox.go | 268 - .../activitystreams/property_inreplyto/gen_doc.go | 17 - .../activitystreams/property_inreplyto/gen_pkg.go | 265 - .../gen_property_activitystreams_inReplyTo.go | 7044 ------------------- .../activitystreams/property_instrument/gen_doc.go | 17 - .../activitystreams/property_instrument/gen_pkg.go | 265 - .../gen_property_activitystreams_instrument.go | 7047 ------------------- .../impl/activitystreams/property_items/gen_doc.go | 17 - .../impl/activitystreams/property_items/gen_pkg.go | 265 - .../gen_property_activitystreams_items.go | 7030 ------------------- .../impl/activitystreams/property_last/gen_doc.go | 17 - .../impl/activitystreams/property_last/gen_pkg.go | 35 - .../gen_property_activitystreams_last.go | 359 - .../activitystreams/property_latitude/gen_doc.go | 17 - .../activitystreams/property_latitude/gen_pkg.go | 15 - .../gen_property_activitystreams_latitude.go | 203 - .../impl/activitystreams/property_liked/gen_doc.go | 17 - .../impl/activitystreams/property_liked/gen_pkg.go | 35 - .../gen_property_activitystreams_liked.go | 360 - .../impl/activitystreams/property_likes/gen_doc.go | 17 - .../impl/activitystreams/property_likes/gen_pkg.go | 35 - .../gen_property_activitystreams_likes.go | 360 - .../activitystreams/property_location/gen_doc.go | 17 - .../activitystreams/property_location/gen_pkg.go | 265 - .../gen_property_activitystreams_location.go | 7042 ------------------- .../activitystreams/property_longitude/gen_doc.go | 17 - .../activitystreams/property_longitude/gen_pkg.go | 15 - .../gen_property_activitystreams_longitude.go | 203 - .../property_manuallyapprovesfollowers/gen_doc.go | 17 - .../property_manuallyapprovesfollowers/gen_pkg.go | 15 - ...ty_activitystreams_manuallyApprovesFollowers.go | 206 - .../activitystreams/property_mediatype/gen_doc.go | 17 - .../activitystreams/property_mediatype/gen_pkg.go | 15 - .../gen_property_activitystreams_mediaType.go | 203 - .../impl/activitystreams/property_name/gen_doc.go | 17 - .../impl/activitystreams/property_name/gen_pkg.go | 15 - .../gen_property_activitystreams_name.go | 667 -- .../impl/activitystreams/property_next/gen_doc.go | 17 - .../impl/activitystreams/property_next/gen_pkg.go | 35 - .../gen_property_activitystreams_next.go | 359 - .../activitystreams/property_object/gen_doc.go | 17 - .../activitystreams/property_object/gen_pkg.go | 265 - .../gen_property_activitystreams_object.go | 7031 ------------------- .../impl/activitystreams/property_oneof/gen_doc.go | 17 - .../impl/activitystreams/property_oneof/gen_pkg.go | 265 - .../gen_property_activitystreams_oneOf.go | 7030 ------------------- .../property_ordereditems/gen_doc.go | 17 - .../property_ordereditems/gen_pkg.go | 265 - .../gen_property_activitystreams_orderedItems.go | 7089 ------------------- .../activitystreams/property_origin/gen_doc.go | 17 - .../activitystreams/property_origin/gen_pkg.go | 265 - .../gen_property_activitystreams_origin.go | 7031 ------------------- .../activitystreams/property_outbox/gen_doc.go | 17 - .../activitystreams/property_outbox/gen_pkg.go | 27 - .../gen_property_activitystreams_outbox.go | 268 - .../activitystreams/property_partof/gen_doc.go | 17 - .../activitystreams/property_partof/gen_pkg.go | 43 - .../gen_property_activitystreams_partOf.go | 452 -- .../property_preferredusername/gen_doc.go | 17 - .../property_preferredusername/gen_pkg.go | 15 - ...n_property_activitystreams_preferredUsername.go | 284 - .../impl/activitystreams/property_prev/gen_doc.go | 17 - .../impl/activitystreams/property_prev/gen_pkg.go | 35 - .../gen_property_activitystreams_prev.go | 359 - .../activitystreams/property_preview/gen_doc.go | 17 - .../activitystreams/property_preview/gen_pkg.go | 265 - .../gen_property_activitystreams_preview.go | 7042 ------------------- .../activitystreams/property_published/gen_doc.go | 17 - .../activitystreams/property_published/gen_pkg.go | 15 - .../gen_property_activitystreams_published.go | 204 - .../activitystreams/property_radius/gen_doc.go | 17 - .../activitystreams/property_radius/gen_pkg.go | 15 - .../gen_property_activitystreams_radius.go | 203 - .../impl/activitystreams/property_rel/gen_doc.go | 17 - .../impl/activitystreams/property_rel/gen_pkg.go | 15 - .../gen_property_activitystreams_rel.go | 528 -- .../property_relationship/gen_doc.go | 17 - .../property_relationship/gen_pkg.go | 257 - .../gen_property_activitystreams_relationship.go | 6877 ------------------- .../activitystreams/property_replies/gen_doc.go | 17 - .../activitystreams/property_replies/gen_pkg.go | 35 - .../gen_property_activitystreams_replies.go | 360 - .../activitystreams/property_result/gen_doc.go | 17 - .../activitystreams/property_result/gen_pkg.go | 265 - .../gen_property_activitystreams_result.go | 7031 ------------------- .../activitystreams/property_shares/gen_doc.go | 17 - .../activitystreams/property_shares/gen_pkg.go | 35 - .../gen_property_activitystreams_shares.go | 360 - .../activitystreams/property_source/gen_doc.go | 17 - .../activitystreams/property_source/gen_pkg.go | 265 - .../gen_property_activitystreams_source.go | 3024 -------- .../activitystreams/property_startindex/gen_doc.go | 17 - .../activitystreams/property_startindex/gen_pkg.go | 15 - .../gen_property_activitystreams_startIndex.go | 204 - .../activitystreams/property_starttime/gen_doc.go | 17 - .../activitystreams/property_starttime/gen_pkg.go | 15 - .../gen_property_activitystreams_startTime.go | 204 - .../activitystreams/property_streams/gen_doc.go | 17 - .../activitystreams/property_streams/gen_pkg.go | 35 - .../gen_property_activitystreams_streams.go | 938 --- .../activitystreams/property_subject/gen_doc.go | 17 - .../activitystreams/property_subject/gen_pkg.go | 265 - .../gen_property_activitystreams_subject.go | 3024 -------- .../activitystreams/property_summary/gen_doc.go | 17 - .../activitystreams/property_summary/gen_pkg.go | 15 - .../gen_property_activitystreams_summary.go | 668 -- .../impl/activitystreams/property_tag/gen_doc.go | 17 - .../impl/activitystreams/property_tag/gen_pkg.go | 265 - .../gen_property_activitystreams_tag.go | 7028 ------------------- .../activitystreams/property_target/gen_doc.go | 17 - .../activitystreams/property_target/gen_pkg.go | 265 - .../gen_property_activitystreams_target.go | 7031 ------------------- .../impl/activitystreams/property_to/gen_doc.go | 17 - .../impl/activitystreams/property_to/gen_pkg.go | 265 - .../property_to/gen_property_activitystreams_to.go | 7028 ------------------- .../activitystreams/property_totalitems/gen_doc.go | 17 - .../activitystreams/property_totalitems/gen_pkg.go | 15 - .../gen_property_activitystreams_totalItems.go | 204 - .../impl/activitystreams/property_units/gen_doc.go | 17 - .../impl/activitystreams/property_units/gen_pkg.go | 15 - .../gen_property_activitystreams_units.go | 215 - .../activitystreams/property_updated/gen_doc.go | 17 - .../activitystreams/property_updated/gen_pkg.go | 15 - .../gen_property_activitystreams_updated.go | 204 - .../impl/activitystreams/property_url/gen_doc.go | 17 - .../impl/activitystreams/property_url/gen_pkg.go | 26 - .../gen_property_activitystreams_url.go | 796 --- .../impl/activitystreams/property_width/gen_doc.go | 17 - .../impl/activitystreams/property_width/gen_pkg.go | 15 - .../gen_property_activitystreams_width.go | 204 - .../impl/activitystreams/type_accept/gen_doc.go | 17 - .../impl/activitystreams/type_accept/gen_pkg.go | 207 - .../type_accept/gen_type_activitystreams_accept.go | 1976 ------ .../impl/activitystreams/type_activity/gen_doc.go | 17 - .../impl/activitystreams/type_activity/gen_pkg.go | 207 - .../gen_type_activitystreams_activity.go | 1956 ------ .../impl/activitystreams/type_add/gen_doc.go | 17 - .../impl/activitystreams/type_add/gen_pkg.go | 207 - .../type_add/gen_type_activitystreams_add.go | 1971 ------ .../impl/activitystreams/type_announce/gen_doc.go | 17 - .../impl/activitystreams/type_announce/gen_pkg.go | 207 - .../gen_type_activitystreams_announce.go | 1953 ------ .../activitystreams/type_application/gen_doc.go | 17 - .../activitystreams/type_application/gen_pkg.go | 233 - .../gen_type_activitystreams_application.go | 2193 ------ .../impl/activitystreams/type_arrive/gen_doc.go | 17 - .../impl/activitystreams/type_arrive/gen_pkg.go | 203 - .../type_arrive/gen_type_activitystreams_arrive.go | 1911 ------ .../impl/activitystreams/type_article/gen_doc.go | 17 - .../impl/activitystreams/type_article/gen_pkg.go | 187 - .../gen_type_activitystreams_article.go | 1732 ----- .../impl/activitystreams/type_audio/gen_doc.go | 17 - .../impl/activitystreams/type_audio/gen_pkg.go | 191 - .../type_audio/gen_type_activitystreams_audio.go | 1775 ----- .../impl/activitystreams/type_block/gen_doc.go | 17 - .../impl/activitystreams/type_block/gen_pkg.go | 207 - .../type_block/gen_type_activitystreams_block.go | 1944 ------ .../activitystreams/type_collection/gen_doc.go | 17 - .../activitystreams/type_collection/gen_pkg.go | 207 - .../gen_type_activitystreams_collection.go | 1957 ------ .../activitystreams/type_collectionpage/gen_doc.go | 17 - .../activitystreams/type_collectionpage/gen_pkg.go | 219 - .../gen_type_activitystreams_collectionpage.go | 2084 ------ .../impl/activitystreams/type_create/gen_doc.go | 17 - .../impl/activitystreams/type_create/gen_pkg.go | 207 - .../type_create/gen_type_activitystreams_create.go | 1948 ------ .../impl/activitystreams/type_delete/gen_doc.go | 17 - .../impl/activitystreams/type_delete/gen_pkg.go | 207 - .../type_delete/gen_type_activitystreams_delete.go | 1949 ------ .../impl/activitystreams/type_dislike/gen_doc.go | 17 - .../impl/activitystreams/type_dislike/gen_pkg.go | 207 - .../gen_type_activitystreams_dislike.go | 1941 ------ .../impl/activitystreams/type_document/gen_doc.go | 17 - .../impl/activitystreams/type_document/gen_pkg.go | 191 - .../gen_type_activitystreams_document.go | 1776 ----- .../impl/activitystreams/type_event/gen_doc.go | 17 - .../impl/activitystreams/type_event/gen_pkg.go | 187 - .../type_event/gen_type_activitystreams_event.go | 1731 ----- .../impl/activitystreams/type_flag/gen_doc.go | 17 - .../impl/activitystreams/type_flag/gen_pkg.go | 207 - .../type_flag/gen_type_activitystreams_flag.go | 1946 ------ .../impl/activitystreams/type_follow/gen_doc.go | 17 - .../impl/activitystreams/type_follow/gen_pkg.go | 207 - .../type_follow/gen_type_activitystreams_follow.go | 1950 ------ .../impl/activitystreams/type_group/gen_doc.go | 17 - .../impl/activitystreams/type_group/gen_pkg.go | 233 - .../type_group/gen_type_activitystreams_group.go | 2193 ------ .../impl/activitystreams/type_ignore/gen_doc.go | 17 - .../impl/activitystreams/type_ignore/gen_pkg.go | 207 - .../type_ignore/gen_type_activitystreams_ignore.go | 1950 ------ .../impl/activitystreams/type_image/gen_doc.go | 17 - .../impl/activitystreams/type_image/gen_pkg.go | 199 - .../type_image/gen_type_activitystreams_image.go | 1866 ----- .../type_intransitiveactivity/gen_doc.go | 17 - .../type_intransitiveactivity/gen_pkg.go | 203 - ...en_type_activitystreams_intransitiveactivity.go | 1915 ------ .../impl/activitystreams/type_invite/gen_doc.go | 17 - .../impl/activitystreams/type_invite/gen_pkg.go | 207 - .../type_invite/gen_type_activitystreams_invite.go | 1958 ------ .../impl/activitystreams/type_join/gen_doc.go | 17 - .../impl/activitystreams/type_join/gen_pkg.go | 207 - .../type_join/gen_type_activitystreams_join.go | 1948 ------ .../impl/activitystreams/type_leave/gen_doc.go | 17 - .../impl/activitystreams/type_leave/gen_pkg.go | 207 - .../type_leave/gen_type_activitystreams_leave.go | 1962 ------ .../impl/activitystreams/type_like/gen_doc.go | 17 - .../impl/activitystreams/type_like/gen_pkg.go | 207 - .../type_like/gen_type_activitystreams_like.go | 1945 ------ .../impl/activitystreams/type_link/gen_doc.go | 17 - .../impl/activitystreams/type_link/gen_pkg.go | 91 - .../type_link/gen_type_activitystreams_link.go | 731 -- .../impl/activitystreams/type_listen/gen_doc.go | 17 - .../impl/activitystreams/type_listen/gen_pkg.go | 207 - .../type_listen/gen_type_activitystreams_listen.go | 1944 ------ .../impl/activitystreams/type_mention/gen_doc.go | 17 - .../impl/activitystreams/type_mention/gen_pkg.go | 91 - .../gen_type_activitystreams_mention.go | 724 -- .../impl/activitystreams/type_move/gen_doc.go | 17 - .../impl/activitystreams/type_move/gen_pkg.go | 207 - .../type_move/gen_type_activitystreams_move.go | 1953 ------ .../impl/activitystreams/type_note/gen_doc.go | 17 - .../impl/activitystreams/type_note/gen_pkg.go | 187 - .../type_note/gen_type_activitystreams_note.go | 1731 ----- .../impl/activitystreams/type_object/gen_doc.go | 17 - .../impl/activitystreams/type_object/gen_pkg.go | 187 - .../type_object/gen_type_activitystreams_object.go | 1733 ----- .../impl/activitystreams/type_offer/gen_doc.go | 17 - .../impl/activitystreams/type_offer/gen_pkg.go | 207 - .../type_offer/gen_type_activitystreams_offer.go | 1957 ------ .../type_orderedcollection/gen_doc.go | 17 - .../type_orderedcollection/gen_pkg.go | 212 - .../gen_type_activitystreams_orderedcollection.go | 1999 ------ .../type_orderedcollectionpage/gen_doc.go | 17 - .../type_orderedcollectionpage/gen_pkg.go | 228 - ...n_type_activitystreams_orderedcollectionpage.go | 2166 ------ .../activitystreams/type_organization/gen_doc.go | 17 - .../activitystreams/type_organization/gen_pkg.go | 233 - .../gen_type_activitystreams_organization.go | 2193 ------ .../impl/activitystreams/type_page/gen_doc.go | 17 - .../impl/activitystreams/type_page/gen_pkg.go | 191 - .../type_page/gen_type_activitystreams_page.go | 1771 ----- .../impl/activitystreams/type_person/gen_doc.go | 17 - .../impl/activitystreams/type_person/gen_pkg.go | 233 - .../type_person/gen_type_activitystreams_person.go | 2193 ------ .../impl/activitystreams/type_place/gen_doc.go | 17 - .../impl/activitystreams/type_place/gen_pkg.go | 207 - .../type_place/gen_type_activitystreams_place.go | 1950 ------ .../impl/activitystreams/type_profile/gen_doc.go | 17 - .../impl/activitystreams/type_profile/gen_pkg.go | 191 - .../gen_type_activitystreams_profile.go | 1777 ----- .../impl/activitystreams/type_question/gen_doc.go | 17 - .../impl/activitystreams/type_question/gen_pkg.go | 219 - .../gen_type_activitystreams_question.go | 2087 ------ .../impl/activitystreams/type_read/gen_doc.go | 17 - .../impl/activitystreams/type_read/gen_pkg.go | 207 - .../type_read/gen_type_activitystreams_read.go | 1944 ------ .../impl/activitystreams/type_reject/gen_doc.go | 17 - .../impl/activitystreams/type_reject/gen_pkg.go | 207 - .../type_reject/gen_type_activitystreams_reject.go | 1957 ------ .../activitystreams/type_relationship/gen_doc.go | 17 - .../activitystreams/type_relationship/gen_pkg.go | 196 - .../gen_type_activitystreams_relationship.go | 1829 ----- .../impl/activitystreams/type_remove/gen_doc.go | 17 - .../impl/activitystreams/type_remove/gen_pkg.go | 207 - .../type_remove/gen_type_activitystreams_remove.go | 1967 ------ .../impl/activitystreams/type_service/gen_doc.go | 17 - .../impl/activitystreams/type_service/gen_pkg.go | 233 - .../gen_type_activitystreams_service.go | 2193 ------ .../type_tentativeaccept/gen_doc.go | 17 - .../type_tentativeaccept/gen_pkg.go | 207 - .../gen_type_activitystreams_tentativeaccept.go | 1952 ------ .../type_tentativereject/gen_doc.go | 17 - .../type_tentativereject/gen_pkg.go | 207 - .../gen_type_activitystreams_tentativereject.go | 1952 ------ .../impl/activitystreams/type_tombstone/gen_doc.go | 17 - .../impl/activitystreams/type_tombstone/gen_pkg.go | 195 - .../gen_type_activitystreams_tombstone.go | 1832 ----- .../impl/activitystreams/type_travel/gen_doc.go | 17 - .../impl/activitystreams/type_travel/gen_pkg.go | 203 - .../type_travel/gen_type_activitystreams_travel.go | 1911 ------ .../impl/activitystreams/type_undo/gen_doc.go | 17 - .../impl/activitystreams/type_undo/gen_pkg.go | 207 - .../type_undo/gen_type_activitystreams_undo.go | 1950 ------ .../impl/activitystreams/type_update/gen_doc.go | 17 - .../impl/activitystreams/type_update/gen_pkg.go | 207 - .../type_update/gen_type_activitystreams_update.go | 1947 ------ .../impl/activitystreams/type_video/gen_doc.go | 17 - .../impl/activitystreams/type_video/gen_pkg.go | 191 - .../type_video/gen_type_activitystreams_video.go | 1772 ----- .../impl/activitystreams/type_view/gen_doc.go | 17 - .../impl/activitystreams/type_view/gen_pkg.go | 207 - .../type_view/gen_type_activitystreams_view.go | 1947 ------ .../impl/forgefed/property_assignedto/gen_doc.go | 17 - .../impl/forgefed/property_assignedto/gen_pkg.go | 22 - .../gen_property_forgefed_assignedTo.go | 224 - .../impl/forgefed/property_committed/gen_doc.go | 17 - .../impl/forgefed/property_committed/gen_pkg.go | 15 - .../gen_property_forgefed_committed.go | 204 - .../impl/forgefed/property_committedby/gen_doc.go | 17 - .../impl/forgefed/property_committedby/gen_pkg.go | 257 - .../gen_property_forgefed_committedBy.go | 2933 -------- .../impl/forgefed/property_dependants/gen_doc.go | 17 - .../impl/forgefed/property_dependants/gen_pkg.go | 27 - .../gen_property_forgefed_dependants.go | 268 - .../impl/forgefed/property_dependedby/gen_doc.go | 17 - .../impl/forgefed/property_dependedby/gen_pkg.go | 22 - .../gen_property_forgefed_dependedBy.go | 622 -- .../impl/forgefed/property_dependencies/gen_doc.go | 17 - .../impl/forgefed/property_dependencies/gen_pkg.go | 27 - .../gen_property_forgefed_dependencies.go | 269 - .../impl/forgefed/property_dependson/gen_doc.go | 17 - .../impl/forgefed/property_dependson/gen_pkg.go | 22 - .../gen_property_forgefed_dependsOn.go | 619 -- .../impl/forgefed/property_description/gen_doc.go | 17 - .../impl/forgefed/property_description/gen_pkg.go | 257 - .../gen_property_forgefed_description.go | 2933 -------- .../impl/forgefed/property_earlyitems/gen_doc.go | 17 - .../impl/forgefed/property_earlyitems/gen_pkg.go | 265 - .../gen_property_forgefed_earlyItems.go | 7046 ------------------- .../impl/forgefed/property_filesadded/gen_doc.go | 17 - .../impl/forgefed/property_filesadded/gen_pkg.go | 15 - .../gen_property_forgefed_filesAdded.go | 531 -- .../forgefed/property_filesmodified/gen_doc.go | 17 - .../forgefed/property_filesmodified/gen_pkg.go | 15 - .../gen_property_forgefed_filesModified.go | 535 -- .../impl/forgefed/property_filesremoved/gen_doc.go | 17 - .../impl/forgefed/property_filesremoved/gen_pkg.go | 15 - .../gen_property_forgefed_filesRemoved.go | 535 -- .../impl/forgefed/property_forks/gen_doc.go | 17 - .../impl/forgefed/property_forks/gen_pkg.go | 27 - .../property_forks/gen_property_forgefed_forks.go | 268 - .../streams/impl/forgefed/property_hash/gen_doc.go | 17 - .../streams/impl/forgefed/property_hash/gen_pkg.go | 15 - .../property_hash/gen_property_forgefed_hash.go | 203 - .../impl/forgefed/property_isresolved/gen_doc.go | 17 - .../impl/forgefed/property_isresolved/gen_pkg.go | 15 - .../gen_property_forgefed_isResolved.go | 203 - .../streams/impl/forgefed/property_ref/gen_doc.go | 17 - .../streams/impl/forgefed/property_ref/gen_pkg.go | 15 - .../property_ref/gen_property_forgefed_ref.go | 203 - .../streams/impl/forgefed/property_team/gen_doc.go | 17 - .../streams/impl/forgefed/property_team/gen_pkg.go | 35 - .../property_team/gen_property_forgefed_team.go | 360 - .../forgefed/property_ticketstrackedby/gen_doc.go | 17 - .../forgefed/property_ticketstrackedby/gen_pkg.go | 257 - .../gen_property_forgefed_ticketsTrackedBy.go | 2933 -------- .../forgefed/property_tracksticketsfor/gen_doc.go | 17 - .../forgefed/property_tracksticketsfor/gen_pkg.go | 257 - .../gen_property_forgefed_tracksTicketsFor.go | 6880 ------------------- .../streams/impl/forgefed/type_branch/gen_doc.go | 17 - .../streams/impl/forgefed/type_branch/gen_pkg.go | 191 - .../type_branch/gen_type_forgefed_branch.go | 1778 ----- .../streams/impl/forgefed/type_commit/gen_doc.go | 17 - .../streams/impl/forgefed/type_commit/gen_pkg.go | 215 - .../type_commit/gen_type_forgefed_commit.go | 2040 ------ .../streams/impl/forgefed/type_push/gen_doc.go | 17 - .../streams/impl/forgefed/type_push/gen_pkg.go | 207 - .../forgefed/type_push/gen_type_forgefed_push.go | 1967 ------ .../impl/forgefed/type_repository/gen_doc.go | 17 - .../impl/forgefed/type_repository/gen_pkg.go | 191 - .../gen_type_forgefed_repository.go | 1786 ----- .../streams/impl/forgefed/type_ticket/gen_doc.go | 17 - .../streams/impl/forgefed/type_ticket/gen_pkg.go | 211 - .../type_ticket/gen_type_forgefed_ticket.go | 1998 ------ .../impl/forgefed/type_ticketdependency/gen_doc.go | 17 - .../impl/forgefed/type_ticketdependency/gen_pkg.go | 196 - .../gen_type_forgefed_ticketdependency.go | 1829 ----- .../streams/impl/jsonld/property_id/gen_doc.go | 17 - .../streams/impl/jsonld/property_id/gen_pkg.go | 15 - .../jsonld/property_id/gen_property_jsonld_id.go | 179 - .../streams/impl/jsonld/property_type/gen_doc.go | 17 - .../streams/impl/jsonld/property_type/gen_pkg.go | 15 - .../property_type/gen_property_jsonld_type.go | 596 -- .../streams/impl/toot/property_blurhash/gen_doc.go | 17 - .../streams/impl/toot/property_blurhash/gen_pkg.go | 15 - .../gen_property_toot_blurhash.go | 203 - .../impl/toot/property_discoverable/gen_doc.go | 17 - .../impl/toot/property_discoverable/gen_pkg.go | 15 - .../gen_property_toot_discoverable.go | 204 - .../streams/impl/toot/property_featured/gen_doc.go | 17 - .../streams/impl/toot/property_featured/gen_pkg.go | 27 - .../gen_property_toot_featured.go | 268 - .../toot/property_signaturealgorithm/gen_doc.go | 17 - .../toot/property_signaturealgorithm/gen_pkg.go | 15 - .../gen_property_toot_signatureAlgorithm.go | 204 - .../impl/toot/property_signaturevalue/gen_doc.go | 17 - .../impl/toot/property_signaturevalue/gen_pkg.go | 15 - .../gen_property_toot_signatureValue.go | 204 - .../impl/toot/property_voterscount/gen_doc.go | 17 - .../impl/toot/property_voterscount/gen_pkg.go | 15 - .../gen_property_toot_votersCount.go | 205 - .../streams/impl/toot/type_emoji/gen_doc.go | 17 - .../streams/impl/toot/type_emoji/gen_pkg.go | 187 - .../impl/toot/type_emoji/gen_type_toot_emoji.go | 1740 ----- .../impl/toot/type_identityproof/gen_doc.go | 17 - .../impl/toot/type_identityproof/gen_pkg.go | 195 - .../gen_type_toot_identityproof.go | 1809 ----- .../impl/w3idsecurityv1/property_owner/gen_doc.go | 17 - .../impl/w3idsecurityv1/property_owner/gen_pkg.go | 15 - .../gen_property_w3idsecurityv1_owner.go | 181 - .../w3idsecurityv1/property_publickey/gen_doc.go | 17 - .../w3idsecurityv1/property_publickey/gen_pkg.go | 22 - .../gen_property_w3idsecurityv1_publicKey.go | 621 -- .../property_publickeypem/gen_doc.go | 17 - .../property_publickeypem/gen_pkg.go | 15 - .../gen_property_w3idsecurityv1_publicKeyPem.go | 204 - .../impl/w3idsecurityv1/type_publickey/gen_doc.go | 17 - .../impl/w3idsecurityv1/type_publickey/gen_pkg.go | 54 - .../gen_type_w3idsecurityv1_publickey.go | 289 - vendor/github.com/go-fed/activity/streams/util.go | 66 - .../activity/streams/values/anyURI/gen_anyURI.go | 37 - .../activity/streams/values/bcp47/gen_bcp47.go | 26 - .../activity/streams/values/boolean/gen_boolean.go | 35 - .../streams/values/dateTime/gen_dateTime.go | 39 - .../streams/values/duration/gen_duration.go | 146 - .../activity/streams/values/float/gen_float.go | 26 - .../streams/values/langString/gen_langString.go | 63 - .../nonNegativeInteger/gen_nonNegativeInteger.go | 33 - .../activity/streams/values/rfc2045/gen_rfc2045.go | 26 - .../activity/streams/values/rfc5988/gen_rfc5988.go | 26 - .../activity/streams/values/string/gen_string.go | 26 - .../go-fed/activity/streams/vocab/gen_doc.go | 61 - .../go-fed/activity/streams/vocab/gen_pkg.go | 23 - ..._property_activitystreams_accuracy_interface.go | 62 - ...gen_property_activitystreams_actor_interface.go | 1813 ----- ..._property_activitystreams_altitude_interface.go | 64 - ...gen_property_activitystreams_anyOf_interface.go | 1794 ----- ...roperty_activitystreams_attachment_interface.go | 1800 ----- ...perty_activitystreams_attributedTo_interface.go | 1816 ----- ..._property_activitystreams_audience_interface.go | 1799 ----- .../gen_property_activitystreams_bcc_interface.go | 1783 ----- .../gen_property_activitystreams_bto_interface.go | 1783 ----- .../gen_property_activitystreams_cc_interface.go | 1779 ----- ...en_property_activitystreams_closed_interface.go | 1838 ----- ...n_property_activitystreams_content_interface.go | 208 - ...n_property_activitystreams_context_interface.go | 1805 ----- ...n_property_activitystreams_current_interface.go | 133 - ...n_property_activitystreams_deleted_interface.go | 63 - ...property_activitystreams_describes_interface.go | 743 -- ..._property_activitystreams_duration_interface.go | 67 - ...n_property_activitystreams_endTime_interface.go | 65 - ...gen_property_activitystreams_first_interface.go | 123 - ...property_activitystreams_followers_interface.go | 128 - ...property_activitystreams_following_interface.go | 129 - ...roperty_activitystreams_formerType_interface.go | 1770 ----- ...property_activitystreams_generator_interface.go | 1798 ----- ...en_property_activitystreams_height_interface.go | 63 - .../gen_property_activitystreams_href_interface.go | 60 - ..._property_activitystreams_hreflang_interface.go | 62 - .../gen_property_activitystreams_icon_interface.go | 249 - ...gen_property_activitystreams_image_interface.go | 242 - ...property_activitystreams_inReplyTo_interface.go | 1807 ----- ...gen_property_activitystreams_inbox_interface.go | 104 - ...roperty_activitystreams_instrument_interface.go | 1804 ----- ...gen_property_activitystreams_items_interface.go | 1794 ----- .../gen_property_activitystreams_last_interface.go | 122 - ..._property_activitystreams_latitude_interface.go | 62 - ...gen_property_activitystreams_liked_interface.go | 128 - ...gen_property_activitystreams_likes_interface.go | 105 - ..._property_activitystreams_location_interface.go | 1801 ----- ...property_activitystreams_longitude_interface.go | 62 - ...ystreams_manuallyApprovesFollowers_interface.go | 53 - ...property_activitystreams_mediaType_interface.go | 64 - .../gen_property_activitystreams_name_interface.go | 197 - .../gen_property_activitystreams_next_interface.go | 130 - ...en_property_activitystreams_object_interface.go | 1812 ----- ...gen_property_activitystreams_oneOf_interface.go | 1794 ----- ...perty_activitystreams_orderedItems_interface.go | 1806 ----- ...en_property_activitystreams_origin_interface.go | 1795 ----- ...en_property_activitystreams_outbox_interface.go | 104 - ...en_property_activitystreams_partOf_interface.go | 145 - ..._activitystreams_preferredUsername_interface.go | 89 - .../gen_property_activitystreams_prev_interface.go | 130 - ...n_property_activitystreams_preview_interface.go | 1796 ----- ...property_activitystreams_published_interface.go | 63 - ...en_property_activitystreams_radius_interface.go | 64 - .../gen_property_activitystreams_rel_interface.go | 145 - ...perty_activitystreams_relationship_interface.go | 1753 ----- ...n_property_activitystreams_replies_interface.go | 124 - ...en_property_activitystreams_result_interface.go | 1793 ----- ...en_property_activitystreams_shares_interface.go | 106 - ...en_property_activitystreams_source_interface.go | 773 --- ...roperty_activitystreams_startIndex_interface.go | 72 - ...property_activitystreams_startTime_interface.go | 65 - ...n_property_activitystreams_streams_interface.go | 252 - ...n_property_activitystreams_subject_interface.go | 770 --- ...n_property_activitystreams_summary_interface.go | 198 - .../gen_property_activitystreams_tag_interface.go | 1787 ----- ...en_property_activitystreams_target_interface.go | 1801 ----- .../gen_property_activitystreams_to_interface.go | 1779 ----- ...roperty_activitystreams_totalItems_interface.go | 73 - ...gen_property_activitystreams_units_interface.go | 79 - ...n_property_activitystreams_updated_interface.go | 63 - .../gen_property_activitystreams_url_interface.go | 244 - ...gen_property_activitystreams_width_interface.go | 63 - .../gen_property_forgefed_assignedTo_interface.go | 60 - .../gen_property_forgefed_committedBy_interface.go | 738 -- .../gen_property_forgefed_committed_interface.go | 60 - .../gen_property_forgefed_dependants_interface.go | 82 - .../gen_property_forgefed_dependedBy_interface.go | 156 - ...gen_property_forgefed_dependencies_interface.go | 82 - .../gen_property_forgefed_dependsOn_interface.go | 156 - .../gen_property_forgefed_description_interface.go | 752 -- .../gen_property_forgefed_earlyItems_interface.go | 1813 ----- .../gen_property_forgefed_filesAdded_interface.go | 132 - ...en_property_forgefed_filesModified_interface.go | 132 - ...gen_property_forgefed_filesRemoved_interface.go | 132 - .../vocab/gen_property_forgefed_forks_interface.go | 82 - .../vocab/gen_property_forgefed_hash_interface.go | 56 - .../gen_property_forgefed_isResolved_interface.go | 53 - .../vocab/gen_property_forgefed_ref_interface.go | 66 - .../vocab/gen_property_forgefed_team_interface.go | 142 - ...property_forgefed_ticketsTrackedBy_interface.go | 745 -- ...property_forgefed_tracksTicketsFor_interface.go | 1766 ----- .../vocab/gen_property_jsonld_id_interface.go | 52 - .../vocab/gen_property_jsonld_type_interface.go | 158 - .../vocab/gen_property_toot_blurhash_interface.go | 54 - .../gen_property_toot_discoverable_interface.go | 54 - .../vocab/gen_property_toot_featured_interface.go | 82 - ...n_property_toot_signatureAlgorithm_interface.go | 54 - .../gen_property_toot_signatureValue_interface.go | 54 - .../gen_property_toot_votersCount_interface.go | 56 - .../gen_property_w3idsecurityv1_owner_interface.go | 52 - ...operty_w3idsecurityv1_publicKeyPem_interface.go | 52 - ..._property_w3idsecurityv1_publicKey_interface.go | 159 - .../gen_type_activitystreams_accept_interface.go | 273 - .../gen_type_activitystreams_activity_interface.go | 254 - .../gen_type_activitystreams_add_interface.go | 273 - .../gen_type_activitystreams_announce_interface.go | 256 - ...n_type_activitystreams_application_interface.go | 275 - .../gen_type_activitystreams_arrive_interface.go | 250 - .../gen_type_activitystreams_article_interface.go | 220 - .../gen_type_activitystreams_audio_interface.go | 226 - .../gen_type_activitystreams_block_interface.go | 246 - ...en_type_activitystreams_collection_interface.go | 255 - ...ype_activitystreams_collectionpage_interface.go | 271 - .../gen_type_activitystreams_create_interface.go | 250 - .../gen_type_activitystreams_delete_interface.go | 251 - .../gen_type_activitystreams_dislike_interface.go | 244 - .../gen_type_activitystreams_document_interface.go | 223 - .../gen_type_activitystreams_event_interface.go | 218 - .../gen_type_activitystreams_flag_interface.go | 248 - .../gen_type_activitystreams_follow_interface.go | 252 - .../gen_type_activitystreams_group_interface.go | 274 - .../gen_type_activitystreams_ignore_interface.go | 247 - .../gen_type_activitystreams_image_interface.go | 243 - ...tivitystreams_intransitiveactivity_interface.go | 247 - .../gen_type_activitystreams_invite_interface.go | 260 - .../gen_type_activitystreams_join_interface.go | 250 - .../gen_type_activitystreams_leave_interface.go | 264 - .../gen_type_activitystreams_like_interface.go | 247 - .../gen_type_activitystreams_link_interface.go | 105 - .../gen_type_activitystreams_listen_interface.go | 246 - .../gen_type_activitystreams_mention_interface.go | 99 - .../gen_type_activitystreams_move_interface.go | 255 - .../gen_type_activitystreams_note_interface.go | 218 - .../gen_type_activitystreams_object_interface.go | 220 - .../gen_type_activitystreams_offer_interface.go | 254 - ..._activitystreams_orderedcollection_interface.go | 259 - ...ivitystreams_orderedcollectionpage_interface.go | 281 - ..._type_activitystreams_organization_interface.go | 275 - .../gen_type_activitystreams_page_interface.go | 222 - .../gen_type_activitystreams_person_interface.go | 274 - .../gen_type_activitystreams_place_interface.go | 252 - .../gen_type_activitystreams_profile_interface.go | 228 - .../gen_type_activitystreams_question_interface.go | 279 - .../gen_type_activitystreams_read_interface.go | 246 - .../gen_type_activitystreams_reject_interface.go | 254 - ..._type_activitystreams_relationship_interface.go | 238 - .../gen_type_activitystreams_remove_interface.go | 269 - .../gen_type_activitystreams_service_interface.go | 275 - ...pe_activitystreams_tentativeaccept_interface.go | 254 - ...pe_activitystreams_tentativereject_interface.go | 254 - ...gen_type_activitystreams_tombstone_interface.go | 246 - .../gen_type_activitystreams_travel_interface.go | 250 - .../gen_type_activitystreams_undo_interface.go | 252 - .../gen_type_activitystreams_update_interface.go | 249 - .../gen_type_activitystreams_video_interface.go | 223 - .../gen_type_activitystreams_view_interface.go | 249 - .../vocab/gen_type_forgefed_branch_interface.go | 229 - .../vocab/gen_type_forgefed_commit_interface.go | 269 - .../vocab/gen_type_forgefed_push_interface.go | 270 - .../gen_type_forgefed_repository_interface.go | 238 - .../vocab/gen_type_forgefed_ticket_interface.go | 263 - ...gen_type_forgefed_ticketdependency_interface.go | 242 - .../streams/vocab/gen_type_toot_emoji_interface.go | 228 - .../vocab/gen_type_toot_identityproof_interface.go | 223 - .../gen_type_w3idsecurityv1_publickey_interface.go | 46 - 728 files changed, 473935 deletions(-) delete mode 100644 vendor/github.com/go-fed/activity/LICENSE delete mode 100644 vendor/github.com/go-fed/activity/pub/README.md delete mode 100644 vendor/github.com/go-fed/activity/pub/activity.go delete mode 100644 vendor/github.com/go-fed/activity/pub/actor.go delete mode 100644 vendor/github.com/go-fed/activity/pub/base_actor.go delete mode 100644 vendor/github.com/go-fed/activity/pub/clock.go delete mode 100644 vendor/github.com/go-fed/activity/pub/common_behavior.go delete mode 100644 vendor/github.com/go-fed/activity/pub/database.go delete mode 100644 vendor/github.com/go-fed/activity/pub/delegate_actor.go delete mode 100644 vendor/github.com/go-fed/activity/pub/doc.go delete mode 100644 vendor/github.com/go-fed/activity/pub/federating_protocol.go delete mode 100644 vendor/github.com/go-fed/activity/pub/federating_wrapped_callbacks.go delete mode 100644 vendor/github.com/go-fed/activity/pub/handlers.go delete mode 100644 vendor/github.com/go-fed/activity/pub/property_interfaces.go delete mode 100644 vendor/github.com/go-fed/activity/pub/side_effect_actor.go delete mode 100644 vendor/github.com/go-fed/activity/pub/social_protocol.go delete mode 100644 vendor/github.com/go-fed/activity/pub/social_wrapped_callbacks.go delete mode 100644 vendor/github.com/go-fed/activity/pub/transport.go delete mode 100644 vendor/github.com/go-fed/activity/pub/util.go delete mode 100644 vendor/github.com/go-fed/activity/pub/version.go delete mode 100644 vendor/github.com/go-fed/activity/streams/README.md delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_consts.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_init.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_json_resolver.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_manager.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_disjoint.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_extendedby.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_extends.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_isorextends.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_property_constructors.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_type_constructors.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_disjoint.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_extendedby.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_extends.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_isorextends.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_property_constructors.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_type_constructors.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_jsonld_property_constructors.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_toot_disjoint.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_toot_extendedby.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_toot_extends.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_toot_isorextends.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_toot_property_constructors.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_toot_type_constructors.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_extends.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_resolver_utils.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_type_predicated_resolver.go delete mode 100644 vendor/github.com/go-fed/activity/streams/gen_type_resolver.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_block/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_block/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collection/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collection/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_create/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_create/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_delete/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_delete/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_dislike/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_document/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_document/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_event/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_event/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_flag/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_flag/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_follow/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_follow/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_group/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_group/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_ignore/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_image/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_image/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_invite/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_invite/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_join/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_join/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_leave/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_leave/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_like/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_like/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_link/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_link/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_listen/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_listen/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_mention/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_mention/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_move/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_move/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_note/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_note/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_object/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_object/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_offer/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_offer/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_organization/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_organization/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_page/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_page/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_person/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_person/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_place/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_place/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_profile/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_profile/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_question/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_question/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_read/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_read/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_reject/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_reject/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_relationship/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_remove/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_remove/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_service/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_service/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_travel/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_travel/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_undo/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_undo/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_update/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_update/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_video/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_video/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_view/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_view/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_assignedto/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_assignedto/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_assignedto/gen_property_forgefed_assignedTo.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committed/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committed/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committed/gen_property_forgefed_committed.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committedby/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committedby/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committedby/gen_property_forgefed_committedBy.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependants/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependants/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependants/gen_property_forgefed_dependants.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependedby/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependedby/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependedby/gen_property_forgefed_dependedBy.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependencies/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependencies/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependencies/gen_property_forgefed_dependencies.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependson/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependson/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependson/gen_property_forgefed_dependsOn.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_description/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_description/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_description/gen_property_forgefed_description.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems/gen_property_forgefed_earlyItems.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesadded/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesadded/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesadded/gen_property_forgefed_filesAdded.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified/gen_property_forgefed_filesModified.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved/gen_property_forgefed_filesRemoved.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_forks/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_forks/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_forks/gen_property_forgefed_forks.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_hash/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_hash/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_hash/gen_property_forgefed_hash.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_isresolved/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_isresolved/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_isresolved/gen_property_forgefed_isResolved.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ref/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ref/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ref/gen_property_forgefed_ref.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_team/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_team/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_team/gen_property_forgefed_team.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby/gen_property_forgefed_ticketsTrackedBy.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor/gen_property_forgefed_tracksTicketsFor.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_branch/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_branch/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_branch/gen_type_forgefed_branch.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_commit/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_commit/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_commit/gen_type_forgefed_commit.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_push/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_push/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_push/gen_type_forgefed_push.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_repository/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_repository/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_repository/gen_type_forgefed_repository.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticket/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticket/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticket/gen_type_forgefed_ticket.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency/gen_type_forgefed_ticketdependency.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/jsonld/property_id/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/jsonld/property_id/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/jsonld/property_type/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/jsonld/property_type/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go delete mode 100644 vendor/github.com/go-fed/activity/streams/util.go delete mode 100644 vendor/github.com/go-fed/activity/streams/values/anyURI/gen_anyURI.go delete mode 100644 vendor/github.com/go-fed/activity/streams/values/bcp47/gen_bcp47.go delete mode 100644 vendor/github.com/go-fed/activity/streams/values/boolean/gen_boolean.go delete mode 100644 vendor/github.com/go-fed/activity/streams/values/dateTime/gen_dateTime.go delete mode 100644 vendor/github.com/go-fed/activity/streams/values/duration/gen_duration.go delete mode 100644 vendor/github.com/go-fed/activity/streams/values/float/gen_float.go delete mode 100644 vendor/github.com/go-fed/activity/streams/values/langString/gen_langString.go delete mode 100644 vendor/github.com/go-fed/activity/streams/values/nonNegativeInteger/gen_nonNegativeInteger.go delete mode 100644 vendor/github.com/go-fed/activity/streams/values/rfc2045/gen_rfc2045.go delete mode 100644 vendor/github.com/go-fed/activity/streams/values/rfc5988/gen_rfc5988.go delete mode 100644 vendor/github.com/go-fed/activity/streams/values/string/gen_string.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_doc.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_pkg.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_accuracy_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_actor_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_altitude_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_audience_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_bto_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_cc_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_closed_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_content_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_context_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_current_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_deleted_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_describes_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_duration_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_endTime_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_first_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_followers_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_following_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_generator_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_height_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_href_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_hreflang_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_icon_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_image_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_inbox_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_items_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_last_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_latitude_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_liked_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_likes_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_location_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_longitude_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_manuallyApprovesFollowers_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_mediaType_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_name_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_next_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_object_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_origin_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_outbox_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_partOf_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_preferredUsername_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_prev_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_preview_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_published_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_radius_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_rel_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_replies_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_result_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_shares_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_source_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_startIndex_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_startTime_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_streams_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_subject_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_summary_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_tag_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_target_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_to_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_totalItems_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_units_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_updated_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_url_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_width_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_assignedTo_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_committedBy_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_committed_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_dependants_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_dependedBy_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_dependencies_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_dependsOn_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_description_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_earlyItems_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_filesAdded_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_filesModified_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_filesRemoved_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_forks_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_hash_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_isResolved_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_ref_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_team_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_ticketsTrackedBy_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_tracksTicketsFor_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_jsonld_id_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_jsonld_type_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_blurhash_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_discoverable_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_featured_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_signatureAlgorithm_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_signatureValue_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_votersCount_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_w3idsecurityv1_owner_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_w3idsecurityv1_publicKeyPem_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_property_w3idsecurityv1_publicKey_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_accept_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_activity_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_add_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_announce_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_application_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_arrive_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_article_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_audio_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_block_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_collection_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_collectionpage_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_create_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_delete_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_dislike_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_document_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_event_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_flag_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_follow_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_group_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_ignore_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_image_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_invite_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_join_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_leave_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_like_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_link_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_listen_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_mention_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_move_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_note_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_object_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_offer_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_organization_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_page_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_person_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_place_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_profile_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_question_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_read_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_reject_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_relationship_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_remove_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_service_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_tentativereject_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_tombstone_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_travel_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_undo_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_update_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_video_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_view_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_branch_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_commit_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_push_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_repository_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_ticket_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_ticketdependency_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_toot_emoji_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_toot_identityproof_interface.go delete mode 100644 vendor/github.com/go-fed/activity/streams/vocab/gen_type_w3idsecurityv1_publickey_interface.go (limited to 'vendor/github.com/go-fed') diff --git a/vendor/github.com/go-fed/activity/LICENSE b/vendor/github.com/go-fed/activity/LICENSE deleted file mode 100644 index a9e8aefad..000000000 --- a/vendor/github.com/go-fed/activity/LICENSE +++ /dev/null @@ -1,29 +0,0 @@ -BSD 3-Clause License - -Copyright (c) 2018, go-fed -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/go-fed/activity/pub/README.md b/vendor/github.com/go-fed/activity/pub/README.md deleted file mode 100644 index dafe176ea..000000000 --- a/vendor/github.com/go-fed/activity/pub/README.md +++ /dev/null @@ -1,270 +0,0 @@ -# pub - -Implements the Social and Federating Protocols in the ActivityPub specification. - -## Reference & Tutorial - -The [go-fed website](https://go-fed.org/) contains tutorials and reference -materials, in addition to the rest of this README. - -## How To Use - -``` -go get github.com/go-fed/activity -``` - -The root of all ActivityPub behavior is the `Actor`, which requires you to -implement a few interfaces: - -```golang -import ( - "github.com/go-fed/activity/pub" -) - -type myActivityPubApp struct { /* ... */ } -type myAppsDatabase struct { /* ... */ } -type myAppsClock struct { /* ... */ } - -var ( - // Your app will implement pub.CommonBehavior, and either - // pub.SocialProtocol, pub.FederatingProtocol, or both. - myApp = &myActivityPubApp{} - myCommonBehavior pub.CommonBehavior = myApp - mySocialProtocol pub.SocialProtocol = myApp - myFederatingProtocol pub.FederatingProtocol = myApp - // Your app's database implementation. - myDatabase pub.Database = &myAppsDatabase{} - // Your app's clock. - myClock pub.Clock = &myAppsClock{} -) - -// Only support the C2S Social protocol -actor := pub.NewSocialActor( - myCommonBehavior, - mySocialProtocol, - myDatabase, - myClock) -// OR -// -// Only support S2S Federating protocol -actor = pub.NewFederatingActor( - myCommonBehavior, - myFederatingProtocol, - myDatabase, - myClock) -// OR -// -// Support both C2S Social and S2S Federating protocol. -actor = pub.NewActor( - myCommonBehavior, - mySocialProtocol, - myFederatingProtocol, - myDatabase, - myClock) -``` - -Next, hook the `Actor` into your web server: - -```golang -// The application's actor -var actor pub.Actor -var outboxHandler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) { - c := context.Background() - // Populate c with request-specific information - if handled, err := actor.PostOutbox(c, w, r); err != nil { - // Write to w - return - } else if handled { - return - } else if handled, err = actor.GetOutbox(c, w, r); err != nil { - // Write to w - return - } else if handled { - return - } - // else: - // - // Handle non-ActivityPub request, such as serving a webpage. -} -var inboxHandler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) { - c := context.Background() - // Populate c with request-specific information - if handled, err := actor.PostInbox(c, w, r); err != nil { - // Write to w - return - } else if handled { - return - } else if handled, err = actor.GetInbox(c, w, r); err != nil { - // Write to w - return - } else if handled { - return - } - // else: - // - // Handle non-ActivityPub request, such as serving a webpage. -} -// Add the handlers to a HTTP server -serveMux := http.NewServeMux() -serveMux.HandleFunc("/actor/outbox", outboxHandler) -serveMux.HandleFunc("/actor/inbox", inboxHandler) -var server http.Server -server.Handler = serveMux -``` - -To serve ActivityStreams data: - -```golang -myHander := pub.NewActivityStreamsHandler(myDatabase, myClock) -var activityStreamsHandler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) { - c := context.Background() - // Populate c with request-specific information - if handled, err := myHandler(c, w, r); err != nil { - // Write to w - return - } else if handled { - return - } - // else: - // - // Handle non-ActivityPub request, such as serving a webpage. -} -serveMux.HandleFunc("/some/data/like/a/note", activityStreamsHandler) -``` - -### Dependency Injection - -Package `pub` relies on dependency injection to provide out-of-the-box support -for ActivityPub. The interfaces to be satisfied are: - -* `CommonBehavior` - Behavior needed regardless of which Protocol is used. -* `SocialProtocol` - Behavior needed for the Social Protocol. -* `FederatingProtocol` - Behavior needed for the Federating Protocol. -* `Database` - The data store abstraction, not tied to the `database/sql` -package. -* `Clock` - The server's internal clock. -* `Transport` - Responsible for the network that serves requests and deliveries -of ActivityStreams data. A `HttpSigTransport` type is provided. - -These implementations form the core of an application's behavior without -worrying about the particulars and pitfalls of the ActivityPub protocol. -Implementing these interfaces gives you greater assurance about being -ActivityPub compliant. - -### Application Logic - -The `SocialProtocol` and `FederatingProtocol` are responsible for returning -callback functions compatible with `streams.TypeResolver`. They also return -`SocialWrappedCallbacks` and `FederatingWrappedCallbacks`, which are nothing -more than a bundle of default behaviors for types like `Create`, `Update`, and -so on. - -Applications will want to focus on implementing their specific behaviors in the -callbacks, and have fine-grained control over customization: - -```golang -// Implements the FederatingProtocol interface. -// -// This illustration can also be applied for the Social Protocol. -func (m *myAppsFederatingProtocol) Callbacks(c context.Context) (wrapped pub.FederatingWrappedCallbacks, other []interface{}) { - // The context 'c' has request-specific logic and can be used to apply complex - // logic building the right behaviors, if desired. - // - // 'c' will later be passed through to the callbacks created below. - wrapped = pub.FederatingWrappedCallbacks{ - Create: func(ctx context.Context, create vocab.ActivityStreamsCreate) error { - // This function is wrapped by default behavior. - // - // More application specific logic can be written here. - // - // 'ctx' will have request-specific information from the HTTP handler. It - // is the same as the 'c' passed to the Callbacks method. - // 'create' has, at this point, already triggered the recommended - // ActivityPub side effect behavior. The application can process it - // further as needed. - return nil - }, - } - // The 'other' must contain functions that satisfy the signature pattern - // required by streams.JSONResolver. - // - // If they are not, at runtime errors will be returned to indicate this. - other = []interface{}{ - // The FederatingWrappedCallbacks has default behavior for an "Update" type, - // but since we are providing this behavior in "other" and not in the - // FederatingWrappedCallbacks.Update member, we will entirely replace the - // default behavior provided by go-fed. Be careful that this still - // implements ActivityPub properly. - func(ctx context.Context, update vocab.ActivityStreamsUpdate) error { - // This function is NOT wrapped by default behavior. - // - // Application specific logic can be written here. - // - // 'ctx' will have request-specific information from the HTTP handler. It - // is the same as the 'c' passed to the Callbacks method. - // 'update' will NOT trigger the recommended ActivityPub side effect - // behavior. The application should do so in addition to any other custom - // side effects required. - return nil - }, - // The "Listen" type has no default suggested behavior in ActivityPub, so - // this just makes this application able to handle "Listen" activities. - func(ctx context.Context, listen vocab.ActivityStreamsListen) error { - // This function is NOT wrapped by default behavior. There's not a - // FederatingWrappedCallbacks.Listen member to wrap. - // - // Application specific logic can be written here. - // - // 'ctx' will have request-specific information from the HTTP handler. It - // is the same as the 'c' passed to the Callbacks method. - // 'listen' can be processed with side effects as the application needs. - return nil - }, - } - return -} -``` - -The `pub` package supports applications that grow into more custom solutions by -overriding the default behaviors as needed. - -### ActivityStreams Extensions: Future-Proofing An Application - -Package `pub` relies on the `streams.TypeResolver` and `streams.JSONResolver` -code generated types. As new ActivityStreams extensions are developed and their -code is generated, `pub` will automatically pick up support for these -extensions. - -The steps to rapidly implement a new extension in a `pub` application are: - -1. Generate an OWL definition of the ActivityStreams extension. This definition -could be the same one defining the vocabulary at the `@context` IRI. -2. Run `astool` to autogenerate the golang types in the `streams` package. -3. Implement the application's callbacks in the `FederatingProtocol.Callbacks` -or `SocialProtocol.Callbacks` for the new behaviors needed. -4. Build the application, which builds `pub`, with the newly generated `streams` -code. No code changes in `pub` are required. - -Whether an author of an ActivityStreams extension or an application developer, -these quick steps should reduce the barrier to adopion in a statically-typed -environment. - -### DelegateActor - -For those that need a near-complete custom ActivityPub solution, or want to have -that possibility in the future after adopting go-fed, the `DelegateActor` -interface can be used to obtain an `Actor`: - -```golang -// Use custom ActivityPub implementation -actor = pub.NewCustomActor( - myDelegateActor, - isSocialProtocolEnabled, - isFederatedProtocolEnabled, - myAppsClock) -``` - -It does not guarantee that an implementation adheres to the ActivityPub -specification. It acts as a stepping stone for applications that want to build -up to a fully custom solution and not be locked into the `pub` package -implementation. diff --git a/vendor/github.com/go-fed/activity/pub/activity.go b/vendor/github.com/go-fed/activity/pub/activity.go deleted file mode 100644 index 6a1d445af..000000000 --- a/vendor/github.com/go-fed/activity/pub/activity.go +++ /dev/null @@ -1,49 +0,0 @@ -package pub - -import ( - "github.com/go-fed/activity/streams/vocab" -) - -// Activity represents any ActivityStreams Activity type. -// -// The Activity types provided in the streams package implement this. -type Activity interface { - // Activity is also a vocab.Type - vocab.Type - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() vocab.ActivityStreamsActorProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() vocab.ActivityStreamsCcProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() vocab.ActivityStreamsToProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) -} diff --git a/vendor/github.com/go-fed/activity/pub/actor.go b/vendor/github.com/go-fed/activity/pub/actor.go deleted file mode 100644 index c9cac28b4..000000000 --- a/vendor/github.com/go-fed/activity/pub/actor.go +++ /dev/null @@ -1,127 +0,0 @@ -package pub - -import ( - "context" - "github.com/go-fed/activity/streams/vocab" - "net/http" - "net/url" -) - -// Actor represents ActivityPub's actor concept. It conceptually has an inbox -// and outbox that receives either a POST or GET request, which triggers side -// effects in the federating application. -// -// An Actor within an application may federate server-to-server (Federation -// Protocol), client-to-server (Social API), or both. The Actor represents the -// server in either use case. -// -// An actor can be created by calling NewSocialActor (only the Social Protocol -// is supported), NewFederatingActor (only the Federating Protocol is -// supported), NewActor (both are supported), or NewCustomActor (neither are). -// -// Not all Actors have the same behaviors depending on the constructor used to -// create them. Refer to the constructor's documentation to determine the exact -// behavior of the Actor on an application. -// -// The behaviors documented here are common to all Actors returned by any -// constructor. -type Actor interface { - // PostInbox returns true if the request was handled as an ActivityPub - // POST to an actor's inbox. If false, the request was not an - // ActivityPub request and may still be handled by the caller in - // another way, such as serving a web page. - // - // If the error is nil, then the ResponseWriter's headers and response - // has already been written. If a non-nil error is returned, then no - // response has been written. - // - // If the Actor was constructed with the Federated Protocol enabled, - // side effects will occur. - // - // If the Federated Protocol is not enabled, writes the - // http.StatusMethodNotAllowed status code in the response. No side - // effects occur. - // - // The request and data of your application will be interpreted as - // having an HTTPS protocol scheme. - PostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) - // PostInboxScheme is similar to PostInbox, except clients are able to - // specify which protocol scheme to handle the incoming request and the - // data stored within the application (HTTP, HTTPS, etc). - PostInboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error) - // GetInbox returns true if the request was handled as an ActivityPub - // GET to an actor's inbox. If false, the request was not an ActivityPub - // request and may still be handled by the caller in another way, such - // as serving a web page. - // - // If the error is nil, then the ResponseWriter's headers and response - // has already been written. If a non-nil error is returned, then no - // response has been written. - // - // If the request is an ActivityPub request, the Actor will defer to the - // application to determine the correct authorization of the request and - // the resulting OrderedCollection to respond with. The Actor handles - // serializing this OrderedCollection and responding with the correct - // headers and http.StatusOK. - GetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) - // PostOutbox returns true if the request was handled as an ActivityPub - // POST to an actor's outbox. If false, the request was not an - // ActivityPub request and may still be handled by the caller in another - // way, such as serving a web page. - // - // If the error is nil, then the ResponseWriter's headers and response - // has already been written. If a non-nil error is returned, then no - // response has been written. - // - // If the Actor was constructed with the Social Protocol enabled, side - // effects will occur. - // - // If the Social Protocol is not enabled, writes the - // http.StatusMethodNotAllowed status code in the response. No side - // effects occur. - // - // If the Social and Federated Protocol are both enabled, it will handle - // the side effects of receiving an ActivityStream Activity, and then - // federate the Activity to peers. - // - // The request will be interpreted as having an HTTPS scheme. - PostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) - // PostOutboxScheme is similar to PostOutbox, except clients are able to - // specify which protocol scheme to handle the incoming request and the - // data stored within the application (HTTP, HTTPS, etc). - PostOutboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error) - // GetOutbox returns true if the request was handled as an ActivityPub - // GET to an actor's outbox. If false, the request was not an - // ActivityPub request. - // - // If the error is nil, then the ResponseWriter's headers and response - // has already been written. If a non-nil error is returned, then no - // response has been written. - // - // If the request is an ActivityPub request, the Actor will defer to the - // application to determine the correct authorization of the request and - // the resulting OrderedCollection to respond with. The Actor handles - // serializing this OrderedCollection and responding with the correct - // headers and http.StatusOK. - GetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) -} - -// FederatingActor is an Actor that allows programmatically delivering an -// Activity to a federating peer. -type FederatingActor interface { - Actor - // Send a federated activity. - // - // The provided url must be the outbox of the sender. All processing of - // the activity occurs similarly to the C2S flow: - // - If t is not an Activity, it is wrapped in a Create activity. - // - A new ID is generated for the activity. - // - The activity is added to the specified outbox. - // - The activity is prepared and delivered to recipients. - // - // Note that this function will only behave as expected if the - // implementation has been constructed to support federation. This - // method will guaranteed work for non-custom Actors. For custom actors, - // care should be used to not call this method if only C2S is supported. - Send(c context.Context, outbox *url.URL, t vocab.Type) (Activity, error) -} diff --git a/vendor/github.com/go-fed/activity/pub/base_actor.go b/vendor/github.com/go-fed/activity/pub/base_actor.go deleted file mode 100644 index 61192c51b..000000000 --- a/vendor/github.com/go-fed/activity/pub/base_actor.go +++ /dev/null @@ -1,494 +0,0 @@ -package pub - -import ( - "context" - "encoding/json" - "fmt" - "github.com/go-fed/activity/streams" - "github.com/go-fed/activity/streams/vocab" - "io/ioutil" - "net/http" - "net/url" -) - -// baseActor must satisfy the Actor interface. -var _ Actor = &baseActor{} - -// baseActor is an application-independent ActivityPub implementation. It does -// not implement the entire protocol, and relies on a delegate to do so. It -// only implements the part of the protocol that is side-effect-free, allowing -// an existing application to write a DelegateActor that glues their application -// into the ActivityPub world. -// -// It is preferred to use a DelegateActor provided by this library, so that the -// application does not need to worry about the ActivityPub implementation. -type baseActor struct { - // delegate contains application-specific delegation logic. - delegate DelegateActor - // enableSocialProtocol enables or disables the Social API, the client to - // server part of ActivityPub. Useful if permitting remote clients to - // act on behalf of the users of the client application. - enableSocialProtocol bool - // enableFederatedProtocol enables or disables the Federated Protocol, or the - // server to server part of ActivityPub. Useful to permit integrating - // with the rest of the federative web. - enableFederatedProtocol bool - // clock simply tracks the current time. - clock Clock -} - -// baseActorFederating must satisfy the FederatingActor interface. -var _ FederatingActor = &baseActorFederating{} - -// baseActorFederating is a baseActor that also satisfies the FederatingActor -// interface. -// -// The baseActor is preserved as an Actor which will not successfully cast to a -// FederatingActor. -type baseActorFederating struct { - baseActor -} - -// NewSocialActor builds a new Actor concept that handles only the Social -// Protocol part of ActivityPub. -// -// This Actor can be created once in an application and reused to handle -// multiple requests concurrently and for different endpoints. -// -// It leverages as much of go-fed as possible to ensure the implementation is -// compliant with the ActivityPub specification, while providing enough freedom -// to be productive without shooting one's self in the foot. -// -// Do not try to use NewSocialActor and NewFederatingActor together to cover -// both the Social and Federating parts of the protocol. Instead, use NewActor. -func NewSocialActor(c CommonBehavior, - c2s SocialProtocol, - db Database, - clock Clock) Actor { - return &baseActor{ - delegate: &sideEffectActor{ - common: c, - c2s: c2s, - db: db, - clock: clock, - }, - enableSocialProtocol: true, - clock: clock, - } -} - -// NewFederatingActor builds a new Actor concept that handles only the Federating -// Protocol part of ActivityPub. -// -// This Actor can be created once in an application and reused to handle -// multiple requests concurrently and for different endpoints. -// -// It leverages as much of go-fed as possible to ensure the implementation is -// compliant with the ActivityPub specification, while providing enough freedom -// to be productive without shooting one's self in the foot. -// -// Do not try to use NewSocialActor and NewFederatingActor together to cover -// both the Social and Federating parts of the protocol. Instead, use NewActor. -func NewFederatingActor(c CommonBehavior, - s2s FederatingProtocol, - db Database, - clock Clock) FederatingActor { - return &baseActorFederating{ - baseActor{ - delegate: &sideEffectActor{ - common: c, - s2s: s2s, - db: db, - clock: clock, - }, - enableFederatedProtocol: true, - clock: clock, - }, - } -} - -// NewActor builds a new Actor concept that handles both the Social and -// Federating Protocol parts of ActivityPub. -// -// This Actor can be created once in an application and reused to handle -// multiple requests concurrently and for different endpoints. -// -// It leverages as much of go-fed as possible to ensure the implementation is -// compliant with the ActivityPub specification, while providing enough freedom -// to be productive without shooting one's self in the foot. -func NewActor(c CommonBehavior, - c2s SocialProtocol, - s2s FederatingProtocol, - db Database, - clock Clock) FederatingActor { - return &baseActorFederating{ - baseActor{ - delegate: &sideEffectActor{ - common: c, - c2s: c2s, - s2s: s2s, - db: db, - clock: clock, - }, - enableSocialProtocol: true, - enableFederatedProtocol: true, - clock: clock, - }, - } -} - -// NewCustomActor allows clients to create a custom ActivityPub implementation -// for the Social Protocol, Federating Protocol, or both. -// -// It still uses the library as a high-level scaffold, which has the benefit of -// allowing applications to grow into a custom ActivityPub solution without -// having to refactor the code that passes HTTP requests into the Actor. -// -// It is possible to create a DelegateActor that is not ActivityPub compliant. -// Use with due care. -func NewCustomActor(delegate DelegateActor, - enableSocialProtocol, enableFederatedProtocol bool, - clock Clock) FederatingActor { - return &baseActorFederating{ - baseActor{ - delegate: delegate, - enableSocialProtocol: enableSocialProtocol, - enableFederatedProtocol: enableFederatedProtocol, - clock: clock, - }, - } -} - -// PostInbox implements the generic algorithm for handling a POST request to an -// actor's inbox independent on an application. It relies on a delegate to -// implement application specific functionality. -// -// Only supports serving data with identifiers having the HTTPS scheme. -func (b *baseActor) PostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) { - return b.PostInboxScheme(c, w, r, "https") -} - -// PostInbox implements the generic algorithm for handling a POST request to an -// actor's inbox independent on an application. It relies on a delegate to -// implement application specific functionality. -// -// Specifying the "scheme" allows for retrieving ActivityStreams content with -// identifiers such as HTTP, HTTPS, or other protocol schemes. -func (b *baseActor) PostInboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error) { - // Do nothing if it is not an ActivityPub POST request. - if !isActivityPubPost(r) { - return false, nil - } - // If the Federated Protocol is not enabled, then this endpoint is not - // enabled. - if !b.enableFederatedProtocol { - w.WriteHeader(http.StatusMethodNotAllowed) - return true, nil - } - // Check the peer request is authentic. - c, authenticated, err := b.delegate.AuthenticatePostInbox(c, w, r) - if err != nil { - return true, err - } else if !authenticated { - return true, nil - } - // Begin processing the request, but have not yet applied - // authorization (ex: blocks). Obtain the activity reject unknown - // activities. - raw, err := ioutil.ReadAll(r.Body) - if err != nil { - return true, err - } - var m map[string]interface{} - if err = json.Unmarshal(raw, &m); err != nil { - return true, err - } - asValue, err := streams.ToType(c, m) - if err != nil && !streams.IsUnmatchedErr(err) { - return true, err - } else if streams.IsUnmatchedErr(err) { - // Respond with bad request -- we do not understand the type. - w.WriteHeader(http.StatusBadRequest) - return true, nil - } - activity, ok := asValue.(Activity) - if !ok { - return true, fmt.Errorf("activity streams value is not an Activity: %T", asValue) - } - if activity.GetJSONLDId() == nil { - w.WriteHeader(http.StatusBadRequest) - return true, nil - } - // Allow server implementations to set context data with a hook. - c, err = b.delegate.PostInboxRequestBodyHook(c, r, activity) - if err != nil { - return true, err - } - // Check authorization of the activity. - authorized, err := b.delegate.AuthorizePostInbox(c, w, activity) - if err != nil { - return true, err - } else if !authorized { - return true, nil - } - // Post the activity to the actor's inbox and trigger side effects for - // that particular Activity type. It is up to the delegate to resolve - // the given map. - inboxId := requestId(r, scheme) - err = b.delegate.PostInbox(c, inboxId, activity) - if err != nil { - // Special case: We know it is a bad request if the object or - // target properties needed to be populated, but weren't. - // - // Send the rejection to the peer. - if err == ErrObjectRequired || err == ErrTargetRequired { - w.WriteHeader(http.StatusBadRequest) - return true, nil - } - return true, err - } - // Our side effects are complete, now delegate determining whether to - // do inbox forwarding, as well as the action to do it. - if err := b.delegate.InboxForwarding(c, inboxId, activity); err != nil { - return true, err - } - // Request has been processed. Begin responding to the request. - // - // Simply respond with an OK status to the peer. - w.WriteHeader(http.StatusOK) - return true, nil -} - -// GetInbox implements the generic algorithm for handling a GET request to an -// actor's inbox independent on an application. It relies on a delegate to -// implement application specific functionality. -func (b *baseActor) GetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) { - // Do nothing if it is not an ActivityPub GET request. - if !isActivityPubGet(r) { - return false, nil - } - // Delegate authenticating and authorizing the request. - c, authenticated, err := b.delegate.AuthenticateGetInbox(c, w, r) - if err != nil { - return true, err - } else if !authenticated { - return true, nil - } - // Everything is good to begin processing the request. - oc, err := b.delegate.GetInbox(c, r) - if err != nil { - return true, err - } - // Deduplicate the 'orderedItems' property by ID. - err = dedupeOrderedItems(oc) - if err != nil { - return true, err - } - // Request has been processed. Begin responding to the request. - // - // Serialize the OrderedCollection. - m, err := streams.Serialize(oc) - if err != nil { - return true, err - } - raw, err := json.Marshal(m) - if err != nil { - return true, err - } - // Write the response. - addResponseHeaders(w.Header(), b.clock, raw) - w.WriteHeader(http.StatusOK) - n, err := w.Write(raw) - if err != nil { - return true, err - } else if n != len(raw) { - return true, fmt.Errorf("ResponseWriter.Write wrote %d of %d bytes", n, len(raw)) - } - return true, nil -} - -// PostOutbox implements the generic algorithm for handling a POST request to an -// actor's outbox independent on an application. It relies on a delegate to -// implement application specific functionality. -// -// Only supports serving data with identifiers having the HTTPS scheme. -func (b *baseActor) PostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) { - return b.PostOutboxScheme(c, w, r, "https") -} - -// PostOutbox implements the generic algorithm for handling a POST request to an -// actor's outbox independent on an application. It relies on a delegate to -// implement application specific functionality. -// -// Specifying the "scheme" allows for retrieving ActivityStreams content with -// identifiers such as HTTP, HTTPS, or other protocol schemes. -func (b *baseActor) PostOutboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error) { - // Do nothing if it is not an ActivityPub POST request. - if !isActivityPubPost(r) { - return false, nil - } - // If the Social API is not enabled, then this endpoint is not enabled. - if !b.enableSocialProtocol { - w.WriteHeader(http.StatusMethodNotAllowed) - return true, nil - } - // Delegate authenticating and authorizing the request. - c, authenticated, err := b.delegate.AuthenticatePostOutbox(c, w, r) - if err != nil { - return true, err - } else if !authenticated { - return true, nil - } - // Everything is good to begin processing the request. - raw, err := ioutil.ReadAll(r.Body) - if err != nil { - return true, err - } - var m map[string]interface{} - if err = json.Unmarshal(raw, &m); err != nil { - return true, err - } - // Note that converting to a Type will NOT successfully convert types - // not known to go-fed. This prevents accidentally wrapping an Activity - // type unknown to go-fed in a Create below. Instead, - // streams.ErrUnhandledType will be returned here. - asValue, err := streams.ToType(c, m) - if err != nil && !streams.IsUnmatchedErr(err) { - return true, err - } else if streams.IsUnmatchedErr(err) { - // Respond with bad request -- we do not understand the type. - w.WriteHeader(http.StatusBadRequest) - return true, nil - } - // Allow server implementations to set context data with a hook. - c, err = b.delegate.PostOutboxRequestBodyHook(c, r, asValue) - if err != nil { - return true, err - } - // The HTTP request steps are complete, complete the rest of the outbox - // and delivery process. - outboxId := requestId(r, scheme) - activity, err := b.deliver(c, outboxId, asValue, m) - // Special case: We know it is a bad request if the object or - // target properties needed to be populated, but weren't. - // - // Send the rejection to the client. - if err == ErrObjectRequired || err == ErrTargetRequired { - w.WriteHeader(http.StatusBadRequest) - return true, nil - } else if err != nil { - return true, err - } - // Respond to the request with the new Activity's IRI location. - w.Header().Set(locationHeader, activity.GetJSONLDId().Get().String()) - w.WriteHeader(http.StatusCreated) - return true, nil -} - -// GetOutbox implements the generic algorithm for handling a Get request to an -// actor's outbox independent on an application. It relies on a delegate to -// implement application specific functionality. -func (b *baseActor) GetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) { - // Do nothing if it is not an ActivityPub GET request. - if !isActivityPubGet(r) { - return false, nil - } - // Delegate authenticating and authorizing the request. - c, authenticated, err := b.delegate.AuthenticateGetOutbox(c, w, r) - if err != nil { - return true, err - } else if !authenticated { - return true, nil - } - // Everything is good to begin processing the request. - oc, err := b.delegate.GetOutbox(c, r) - if err != nil { - return true, err - } - // Request has been processed. Begin responding to the request. - // - // Serialize the OrderedCollection. - m, err := streams.Serialize(oc) - if err != nil { - return true, err - } - raw, err := json.Marshal(m) - if err != nil { - return true, err - } - // Write the response. - addResponseHeaders(w.Header(), b.clock, raw) - w.WriteHeader(http.StatusOK) - n, err := w.Write(raw) - if err != nil { - return true, err - } else if n != len(raw) { - return true, fmt.Errorf("ResponseWriter.Write wrote %d of %d bytes", n, len(raw)) - } - return true, nil -} - -// deliver delegates all outbox handling steps and optionally will federate the -// activity if the federated protocol is enabled. -// -// This function is not exported so an Actor that only supports C2S cannot be -// type casted to a FederatingActor. It doesn't exactly fit the Send method -// signature anyways. -// -// Note: 'm' is nilable. -func (b *baseActor) deliver(c context.Context, outbox *url.URL, asValue vocab.Type, m map[string]interface{}) (activity Activity, err error) { - // If the value is not an Activity or type extending from Activity, then - // we need to wrap it in a Create Activity. - if !streams.IsOrExtendsActivityStreamsActivity(asValue) { - asValue, err = b.delegate.WrapInCreate(c, asValue, outbox) - if err != nil { - return - } - } - // At this point, this should be a safe conversion. If this error is - // triggered, then there is either a bug in the delegation of - // WrapInCreate, behavior is not lining up in the generated ExtendedBy - // code, or something else is incorrect with the type system. - var ok bool - activity, ok = asValue.(Activity) - if !ok { - err = fmt.Errorf("activity streams value is not an Activity: %T", asValue) - return - } - // Delegate generating new IDs for the activity and all new objects. - if err = b.delegate.AddNewIDs(c, activity); err != nil { - return - } - // Post the activity to the actor's outbox and trigger side effects for - // that particular Activity type. - // - // Since 'm' is nil-able and side effects may need access to literal nil - // values, such as for Update activities, ensure 'm' is non-nil. - if m == nil { - m, err = asValue.Serialize() - if err != nil { - return - } - } - deliverable, err := b.delegate.PostOutbox(c, activity, outbox, m) - if err != nil { - return - } - // Request has been processed and all side effects internal to this - // application server have finished. Begin side effects affecting other - // servers and/or the client who sent this request. - // - // If we are federating and the type is a deliverable one, then deliver - // the activity to federating peers. - if b.enableFederatedProtocol && deliverable { - if err = b.delegate.Deliver(c, outbox, activity); err != nil { - return - } - } - return -} - -// Send is programmatically accessible if the federated protocol is enabled. -func (b *baseActorFederating) Send(c context.Context, outbox *url.URL, t vocab.Type) (Activity, error) { - return b.deliver(c, outbox, t, nil) -} diff --git a/vendor/github.com/go-fed/activity/pub/clock.go b/vendor/github.com/go-fed/activity/pub/clock.go deleted file mode 100644 index bf19e49f7..000000000 --- a/vendor/github.com/go-fed/activity/pub/clock.go +++ /dev/null @@ -1,11 +0,0 @@ -package pub - -import ( - "time" -) - -// Clock determines the time. -type Clock interface { - // Now returns the current time. - Now() time.Time -} diff --git a/vendor/github.com/go-fed/activity/pub/common_behavior.go b/vendor/github.com/go-fed/activity/pub/common_behavior.go deleted file mode 100644 index c4a701560..000000000 --- a/vendor/github.com/go-fed/activity/pub/common_behavior.go +++ /dev/null @@ -1,89 +0,0 @@ -package pub - -import ( - "context" - "github.com/go-fed/activity/streams/vocab" - "net/http" - "net/url" -) - -// Common contains functions required for both the Social API and Federating -// Protocol. -// -// It is passed to the library as a dependency injection from the client -// application. -type CommonBehavior interface { - // AuthenticateGetInbox delegates the authentication of a GET to an - // inbox. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. - // - // If an error is returned, it is passed back to the caller of - // GetInbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authenticated' is ignored. - // - // If no error is returned, but authentication or authorization fails, - // then authenticated must be false and error nil. It is expected that - // the implementation handles writing to the ResponseWriter in this - // case. - // - // Finally, if the authentication and authorization succeeds, then - // authenticated must be true and error nil. The request will continue - // to be processed. - AuthenticateGetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) - // AuthenticateGetOutbox delegates the authentication of a GET to an - // outbox. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. - // - // If an error is returned, it is passed back to the caller of - // GetOutbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authenticated' is ignored. - // - // If no error is returned, but authentication or authorization fails, - // then authenticated must be false and error nil. It is expected that - // the implementation handles writing to the ResponseWriter in this - // case. - // - // Finally, if the authentication and authorization succeeds, then - // authenticated must be true and error nil. The request will continue - // to be processed. - AuthenticateGetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) - // GetOutbox returns the OrderedCollection inbox of the actor for this - // context. It is up to the implementation to provide the correct - // collection for the kind of authorization given in the request. - // - // AuthenticateGetOutbox will be called prior to this. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. - GetOutbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) - // NewTransport returns a new Transport on behalf of a specific actor. - // - // The actorBoxIRI will be either the inbox or outbox of an actor who is - // attempting to do the dereferencing or delivery. Any authentication - // scheme applied on the request must be based on this actor. The - // request must contain some sort of credential of the user, such as a - // HTTP Signature. - // - // The gofedAgent passed in should be used by the Transport - // implementation in the User-Agent, as well as the application-specific - // user agent string. The gofedAgent will indicate this library's use as - // well as the library's version number. - // - // Any server-wide rate-limiting that needs to occur should happen in a - // Transport implementation. This factory function allows this to be - // created, so peer servers are not DOS'd. - // - // Any retry logic should also be handled by the Transport - // implementation. - // - // Note that the library will not maintain a long-lived pointer to the - // returned Transport so that any private credentials are able to be - // garbage collected. - NewTransport(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error) -} diff --git a/vendor/github.com/go-fed/activity/pub/database.go b/vendor/github.com/go-fed/activity/pub/database.go deleted file mode 100644 index 0c2024e6b..000000000 --- a/vendor/github.com/go-fed/activity/pub/database.go +++ /dev/null @@ -1,139 +0,0 @@ -package pub - -import ( - "context" - "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -type Database interface { - // Lock takes a lock for the object at the specified id. If an error - // is returned, the lock must not have been taken. - // - // The lock must be able to succeed for an id that does not exist in - // the database. This means acquiring the lock does not guarantee the - // entry exists in the database. - // - // Locks are encouraged to be lightweight and in the Go layer, as some - // processes require tight loops acquiring and releasing locks. - // - // Used to ensure race conditions in multiple requests do not occur. - Lock(c context.Context, id *url.URL) error - // Unlock makes the lock for the object at the specified id available. - // If an error is returned, the lock must have still been freed. - // - // Used to ensure race conditions in multiple requests do not occur. - Unlock(c context.Context, id *url.URL) error - // InboxContains returns true if the OrderedCollection at 'inbox' - // contains the specified 'id'. - // - // The library makes this call only after acquiring a lock first. - InboxContains(c context.Context, inbox, id *url.URL) (contains bool, err error) - // GetInbox returns the first ordered collection page of the outbox at - // the specified IRI, for prepending new items. - // - // The library makes this call only after acquiring a lock first. - GetInbox(c context.Context, inboxIRI *url.URL) (inbox vocab.ActivityStreamsOrderedCollectionPage, err error) - // SetInbox saves the inbox value given from GetInbox, with new items - // prepended. Note that the new items must not be added as independent - // database entries. Separate calls to Create will do that. - // - // The library makes this call only after acquiring a lock first. - SetInbox(c context.Context, inbox vocab.ActivityStreamsOrderedCollectionPage) error - // Owns returns true if the database has an entry for the IRI and it - // exists in the database. - // - // The library makes this call only after acquiring a lock first. - Owns(c context.Context, id *url.URL) (owns bool, err error) - // ActorForOutbox fetches the actor's IRI for the given outbox IRI. - // - // The library makes this call only after acquiring a lock first. - ActorForOutbox(c context.Context, outboxIRI *url.URL) (actorIRI *url.URL, err error) - // ActorForInbox fetches the actor's IRI for the given outbox IRI. - // - // The library makes this call only after acquiring a lock first. - ActorForInbox(c context.Context, inboxIRI *url.URL) (actorIRI *url.URL, err error) - // OutboxForInbox fetches the corresponding actor's outbox IRI for the - // actor's inbox IRI. - // - // The library makes this call only after acquiring a lock first. - OutboxForInbox(c context.Context, inboxIRI *url.URL) (outboxIRI *url.URL, err error) - // Exists returns true if the database has an entry for the specified - // id. It may not be owned by this application instance. - // - // The library makes this call only after acquiring a lock first. - Exists(c context.Context, id *url.URL) (exists bool, err error) - // Get returns the database entry for the specified id. - // - // The library makes this call only after acquiring a lock first. - Get(c context.Context, id *url.URL) (value vocab.Type, err error) - // Create adds a new entry to the database which must be able to be - // keyed by its id. - // - // Note that Activity values received from federated peers may also be - // created in the database this way if the Federating Protocol is - // enabled. The client may freely decide to store only the id instead of - // the entire value. - // - // The library makes this call only after acquiring a lock first. - // - // Under certain conditions and network activities, Create may be called - // multiple times for the same ActivityStreams object. - Create(c context.Context, asType vocab.Type) error - // Update sets an existing entry to the database based on the value's - // id. - // - // Note that Activity values received from federated peers may also be - // updated in the database this way if the Federating Protocol is - // enabled. The client may freely decide to store only the id instead of - // the entire value. - // - // The library makes this call only after acquiring a lock first. - Update(c context.Context, asType vocab.Type) error - // Delete removes the entry with the given id. - // - // Delete is only called for federated objects. Deletes from the Social - // Protocol instead call Update to create a Tombstone. - // - // The library makes this call only after acquiring a lock first. - Delete(c context.Context, id *url.URL) error - // GetOutbox returns the first ordered collection page of the outbox - // at the specified IRI, for prepending new items. - // - // The library makes this call only after acquiring a lock first. - GetOutbox(c context.Context, outboxIRI *url.URL) (outbox vocab.ActivityStreamsOrderedCollectionPage, err error) - // SetOutbox saves the outbox value given from GetOutbox, with new items - // prepended. Note that the new items must not be added as independent - // database entries. Separate calls to Create will do that. - // - // The library makes this call only after acquiring a lock first. - SetOutbox(c context.Context, outbox vocab.ActivityStreamsOrderedCollectionPage) error - // NewID creates a new IRI id for the provided activity or object. The - // implementation does not need to set the 'id' property and simply - // needs to determine the value. - // - // The go-fed library will handle setting the 'id' property on the - // activity or object provided with the value returned. - NewID(c context.Context, t vocab.Type) (id *url.URL, err error) - // Followers obtains the Followers Collection for an actor with the - // given id. - // - // If modified, the library will then call Update. - // - // The library makes this call only after acquiring a lock first. - Followers(c context.Context, actorIRI *url.URL) (followers vocab.ActivityStreamsCollection, err error) - // Following obtains the Following Collection for an actor with the - // given id. - // - // If modified, the library will then call Update. - // - // The library makes this call only after acquiring a lock first. - Following(c context.Context, actorIRI *url.URL) (following vocab.ActivityStreamsCollection, err error) - // Liked obtains the Liked Collection for an actor with the - // given id. - // - // If modified, the library will then call Update. - // - // The library makes this call only after acquiring a lock first. - Liked(c context.Context, actorIRI *url.URL) (liked vocab.ActivityStreamsCollection, err error) -} diff --git a/vendor/github.com/go-fed/activity/pub/delegate_actor.go b/vendor/github.com/go-fed/activity/pub/delegate_actor.go deleted file mode 100644 index 03465abaa..000000000 --- a/vendor/github.com/go-fed/activity/pub/delegate_actor.go +++ /dev/null @@ -1,248 +0,0 @@ -package pub - -import ( - "context" - "github.com/go-fed/activity/streams/vocab" - "net/http" - "net/url" -) - -// DelegateActor contains the detailed interface an application must satisfy in -// order to implement the ActivityPub specification. -// -// Note that an implementation of this interface is implicitly provided in the -// calls to NewActor, NewSocialActor, and NewFederatingActor. -// -// Implementing the DelegateActor requires familiarity with the ActivityPub -// specification because it does not a strong enough abstraction for the client -// application to ignore the ActivityPub spec. It is very possible to implement -// this interface and build a foot-gun that trashes the fediverse without being -// ActivityPub compliant. Please use with due consideration. -// -// Alternatively, build an application that uses the parts of the pub library -// that do not require implementing a DelegateActor so that the ActivityPub -// implementation is completely provided out of the box. -type DelegateActor interface { - // Hook callback after parsing the request body for a federated request - // to the Actor's inbox. - // - // Can be used to set contextual information based on the Activity - // received. - // - // Only called if the Federated Protocol is enabled. - // - // Warning: Neither authentication nor authorization has taken place at - // this time. Doing anything beyond setting contextual information is - // strongly discouraged. - // - // If an error is returned, it is passed back to the caller of - // PostInbox. In this case, the DelegateActor implementation must not - // write a response to the ResponseWriter as is expected that the caller - // to PostInbox will do so when handling the error. - PostInboxRequestBodyHook(c context.Context, r *http.Request, activity Activity) (context.Context, error) - // Hook callback after parsing the request body for a client request - // to the Actor's outbox. - // - // Can be used to set contextual information based on the - // ActivityStreams object received. - // - // Only called if the Social API is enabled. - // - // Warning: Neither authentication nor authorization has taken place at - // this time. Doing anything beyond setting contextual information is - // strongly discouraged. - // - // If an error is returned, it is passed back to the caller of - // PostOutbox. In this case, the DelegateActor implementation must not - // write a response to the ResponseWriter as is expected that the caller - // to PostOutbox will do so when handling the error. - PostOutboxRequestBodyHook(c context.Context, r *http.Request, data vocab.Type) (context.Context, error) - // AuthenticatePostInbox delegates the authentication of a POST to an - // inbox. - // - // Only called if the Federated Protocol is enabled. - // - // If an error is returned, it is passed back to the caller of - // PostInbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authenticated' is ignored. - // - // If no error is returned, but authentication or authorization fails, - // then authenticated must be false and error nil. It is expected that - // the implementation handles writing to the ResponseWriter in this - // case. - // - // Finally, if the authentication and authorization succeeds, then - // authenticated must be true and error nil. The request will continue - // to be processed. - AuthenticatePostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) - // AuthenticateGetInbox delegates the authentication of a GET to an - // inbox. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. - // - // If an error is returned, it is passed back to the caller of - // GetInbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authenticated' is ignored. - // - // If no error is returned, but authentication or authorization fails, - // then authenticated must be false and error nil. It is expected that - // the implementation handles writing to the ResponseWriter in this - // case. - // - // Finally, if the authentication and authorization succeeds, then - // authenticated must be true and error nil. The request will continue - // to be processed. - AuthenticateGetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) - // AuthorizePostInbox delegates the authorization of an activity that - // has been sent by POST to an inbox. - // - // Only called if the Federated Protocol is enabled. - // - // If an error is returned, it is passed back to the caller of - // PostInbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authorized' is ignored. - // - // If no error is returned, but authorization fails, then authorized - // must be false and error nil. It is expected that the implementation - // handles writing to the ResponseWriter in this case. - // - // Finally, if the authentication and authorization succeeds, then - // authorized must be true and error nil. The request will continue - // to be processed. - AuthorizePostInbox(c context.Context, w http.ResponseWriter, activity Activity) (authorized bool, err error) - // PostInbox delegates the side effects of adding to the inbox and - // determining if it is a request that should be blocked. - // - // Only called if the Federated Protocol is enabled. - // - // As a side effect, PostInbox sets the federated data in the inbox, but - // not on its own in the database, as InboxForwarding (which is called - // later) must decide whether it has seen this activity before in order - // to determine whether to do the forwarding algorithm. - // - // If the error is ErrObjectRequired or ErrTargetRequired, then a Bad - // Request status is sent in the response. - PostInbox(c context.Context, inboxIRI *url.URL, activity Activity) error - // InboxForwarding delegates inbox forwarding logic when a POST request - // is received in the Actor's inbox. - // - // Only called if the Federated Protocol is enabled. - // - // The delegate is responsible for determining whether to do the inbox - // forwarding, as well as actually conducting it if it determines it - // needs to. - // - // As a side effect, InboxForwarding must set the federated data in the - // database, independently of the inbox, however it sees fit in order to - // determine whether it has seen the activity before. - // - // The provided url is the inbox of the recipient of the Activity. The - // Activity is examined for the information about who to inbox forward - // to. - // - // If an error is returned, it is returned to the caller of PostInbox. - InboxForwarding(c context.Context, inboxIRI *url.URL, activity Activity) error - // PostOutbox delegates the logic for side effects and adding to the - // outbox. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. In the case of the Social API being enabled, side - // effects of the Activity must occur. - // - // The delegate is responsible for adding the activity to the database's - // general storage for independent retrieval, and not just within the - // actor's outbox. - // - // If the error is ErrObjectRequired or ErrTargetRequired, then a Bad - // Request status is sent in the response. - // - // Note that 'rawJSON' is an unfortunate consequence where an 'Update' - // Activity is the only one that explicitly cares about 'null' values in - // JSON. Since go-fed does not differentiate between 'null' values and - // values that are simply not present, the 'rawJSON' map is ONLY needed - // for this narrow and specific use case. - PostOutbox(c context.Context, a Activity, outboxIRI *url.URL, rawJSON map[string]interface{}) (deliverable bool, e error) - // AddNewIDs sets new URL ids on the activity. It also does so for all - // 'object' properties if the Activity is a Create type. - // - // Only called if the Social API is enabled. - // - // If an error is returned, it is returned to the caller of PostOutbox. - AddNewIDs(c context.Context, a Activity) error - // Deliver sends a federated message. Called only if federation is - // enabled. - // - // Called if the Federated Protocol is enabled. - // - // The provided url is the outbox of the sender. The Activity contains - // the information about the intended recipients. - // - // If an error is returned, it is returned to the caller of PostOutbox. - Deliver(c context.Context, outbox *url.URL, activity Activity) error - // AuthenticatePostOutbox delegates the authentication and authorization - // of a POST to an outbox. - // - // Only called if the Social API is enabled. - // - // If an error is returned, it is passed back to the caller of - // PostOutbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authenticated' is ignored. - // - // If no error is returned, but authentication or authorization fails, - // then authenticated must be false and error nil. It is expected that - // the implementation handles writing to the ResponseWriter in this - // case. - // - // Finally, if the authentication and authorization succeeds, then - // authenticated must be true and error nil. The request will continue - // to be processed. - AuthenticatePostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) - // AuthenticateGetOutbox delegates the authentication of a GET to an - // outbox. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. - // - // If an error is returned, it is passed back to the caller of - // GetOutbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authenticated' is ignored. - // - // If no error is returned, but authentication or authorization fails, - // then authenticated must be false and error nil. It is expected that - // the implementation handles writing to the ResponseWriter in this - // case. - // - // Finally, if the authentication and authorization succeeds, then - // authenticated must be true and error nil. The request will continue - // to be processed. - AuthenticateGetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) - // WrapInCreate wraps the provided object in a Create ActivityStreams - // activity. The provided URL is the actor's outbox endpoint. - // - // Only called if the Social API is enabled. - WrapInCreate(c context.Context, value vocab.Type, outboxIRI *url.URL) (vocab.ActivityStreamsCreate, error) - // GetOutbox returns the OrderedCollection inbox of the actor for this - // context. It is up to the implementation to provide the correct - // collection for the kind of authorization given in the request. - // - // AuthenticateGetOutbox will be called prior to this. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. - GetOutbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) - // GetInbox returns the OrderedCollection inbox of the actor for this - // context. It is up to the implementation to provide the correct - // collection for the kind of authorization given in the request. - // - // AuthenticateGetInbox will be called prior to this. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. - GetInbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) -} diff --git a/vendor/github.com/go-fed/activity/pub/doc.go b/vendor/github.com/go-fed/activity/pub/doc.go deleted file mode 100644 index 93c778179..000000000 --- a/vendor/github.com/go-fed/activity/pub/doc.go +++ /dev/null @@ -1,9 +0,0 @@ -// Package pub implements the ActivityPub protocol. -// -// Note that every time the ActivityStreams types are changed (added, removed) -// due to code generation, the internal function toASType needs to be modified -// to know about these types. -// -// Note that every version change should also include a change in the version.go -// file. -package pub diff --git a/vendor/github.com/go-fed/activity/pub/federating_protocol.go b/vendor/github.com/go-fed/activity/pub/federating_protocol.go deleted file mode 100644 index edb22bc03..000000000 --- a/vendor/github.com/go-fed/activity/pub/federating_protocol.go +++ /dev/null @@ -1,124 +0,0 @@ -package pub - -import ( - "context" - "github.com/go-fed/activity/streams/vocab" - "net/http" - "net/url" -) - -// FederatingProtocol contains behaviors an application needs to satisfy for the -// full ActivityPub S2S implementation to be supported by this library. -// -// It is only required if the client application wants to support the server-to- -// server, or federating, protocol. -// -// It is passed to the library as a dependency injection from the client -// application. -type FederatingProtocol interface { - // Hook callback after parsing the request body for a federated request - // to the Actor's inbox. - // - // Can be used to set contextual information based on the Activity - // received. - // - // Only called if the Federated Protocol is enabled. - // - // Warning: Neither authentication nor authorization has taken place at - // this time. Doing anything beyond setting contextual information is - // strongly discouraged. - // - // If an error is returned, it is passed back to the caller of - // PostInbox. In this case, the DelegateActor implementation must not - // write a response to the ResponseWriter as is expected that the caller - // to PostInbox will do so when handling the error. - PostInboxRequestBodyHook(c context.Context, r *http.Request, activity Activity) (context.Context, error) - // AuthenticatePostInbox delegates the authentication of a POST to an - // inbox. - // - // If an error is returned, it is passed back to the caller of - // PostInbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authenticated' is ignored. - // - // If no error is returned, but authentication or authorization fails, - // then authenticated must be false and error nil. It is expected that - // the implementation handles writing to the ResponseWriter in this - // case. - // - // Finally, if the authentication and authorization succeeds, then - // authenticated must be true and error nil. The request will continue - // to be processed. - AuthenticatePostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) - // Blocked should determine whether to permit a set of actors given by - // their ids are able to interact with this particular end user due to - // being blocked or other application-specific logic. - // - // If an error is returned, it is passed back to the caller of - // PostInbox. - // - // If no error is returned, but authentication or authorization fails, - // then blocked must be true and error nil. An http.StatusForbidden - // will be written in the wresponse. - // - // Finally, if the authentication and authorization succeeds, then - // blocked must be false and error nil. The request will continue - // to be processed. - Blocked(c context.Context, actorIRIs []*url.URL) (blocked bool, err error) - // FederatingCallbacks returns the application logic that handles - // ActivityStreams received from federating peers. - // - // Note that certain types of callbacks will be 'wrapped' with default - // behaviors supported natively by the library. Other callbacks - // compatible with streams.TypeResolver can be specified by 'other'. - // - // For example, setting the 'Create' field in the - // FederatingWrappedCallbacks lets an application dependency inject - // additional behaviors they want to take place, including the default - // behavior supplied by this library. This is guaranteed to be compliant - // with the ActivityPub Social protocol. - // - // To override the default behavior, instead supply the function in - // 'other', which does not guarantee the application will be compliant - // with the ActivityPub Social Protocol. - // - // Applications are not expected to handle every single ActivityStreams - // type and extension. The unhandled ones are passed to DefaultCallback. - FederatingCallbacks(c context.Context) (wrapped FederatingWrappedCallbacks, other []interface{}, err error) - // DefaultCallback is called for types that go-fed can deserialize but - // are not handled by the application's callbacks returned in the - // Callbacks method. - // - // Applications are not expected to handle every single ActivityStreams - // type and extension, so the unhandled ones are passed to - // DefaultCallback. - DefaultCallback(c context.Context, activity Activity) error - // MaxInboxForwardingRecursionDepth determines how deep to search within - // an activity to determine if inbox forwarding needs to occur. - // - // Zero or negative numbers indicate infinite recursion. - MaxInboxForwardingRecursionDepth(c context.Context) int - // MaxDeliveryRecursionDepth determines how deep to search within - // collections owned by peers when they are targeted to receive a - // delivery. - // - // Zero or negative numbers indicate infinite recursion. - MaxDeliveryRecursionDepth(c context.Context) int - // FilterForwarding allows the implementation to apply business logic - // such as blocks, spam filtering, and so on to a list of potential - // Collections and OrderedCollections of recipients when inbox - // forwarding has been triggered. - // - // The activity is provided as a reference for more intelligent - // logic to be used, but the implementation must not modify it. - FilterForwarding(c context.Context, potentialRecipients []*url.URL, a Activity) (filteredRecipients []*url.URL, err error) - // GetInbox returns the OrderedCollection inbox of the actor for this - // context. It is up to the implementation to provide the correct - // collection for the kind of authorization given in the request. - // - // AuthenticateGetInbox will be called prior to this. - // - // Always called, regardless whether the Federated Protocol or Social - // API is enabled. - GetInbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) -} diff --git a/vendor/github.com/go-fed/activity/pub/federating_wrapped_callbacks.go b/vendor/github.com/go-fed/activity/pub/federating_wrapped_callbacks.go deleted file mode 100644 index a406acb7a..000000000 --- a/vendor/github.com/go-fed/activity/pub/federating_wrapped_callbacks.go +++ /dev/null @@ -1,907 +0,0 @@ -package pub - -import ( - "context" - "encoding/json" - "fmt" - "github.com/go-fed/activity/streams" - "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// OnFollowBehavior enumerates the different default actions that the go-fed -// library can provide when receiving a Follow Activity from a peer. -type OnFollowBehavior int - -const ( - // OnFollowDoNothing does not take any action when a Follow Activity - // is received. - OnFollowDoNothing OnFollowBehavior = iota - // OnFollowAutomaticallyAccept triggers the side effect of sending an - // Accept of this Follow request in response. - OnFollowAutomaticallyAccept - // OnFollowAutomaticallyAccept triggers the side effect of sending a - // Reject of this Follow request in response. - OnFollowAutomaticallyReject -) - -// FederatingWrappedCallbacks lists the callback functions that already have -// some side effect behavior provided by the pub library. -// -// These functions are wrapped for the Federating Protocol. -type FederatingWrappedCallbacks struct { - // Create handles additional side effects for the Create ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping callback for the Federating Protocol ensures the - // 'object' property is created in the database. - // - // Create calls Create for each object in the federated Activity. - Create func(context.Context, vocab.ActivityStreamsCreate) error - // Update handles additional side effects for the Update ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping callback for the Federating Protocol ensures the - // 'object' property is updated in the database. - // - // Update calls Update on the federated entry from the database, with a - // new value. - Update func(context.Context, vocab.ActivityStreamsUpdate) error - // Delete handles additional side effects for the Delete ActivityStreams - // type, specific to the application using go-fed. - // - // Delete removes the federated entry from the database. - Delete func(context.Context, vocab.ActivityStreamsDelete) error - // Follow handles additional side effects for the Follow ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping function can have one of several default behaviors, - // depending on the value of the OnFollow setting. - Follow func(context.Context, vocab.ActivityStreamsFollow) error - // OnFollow determines what action to take for this particular callback - // if a Follow Activity is handled. - OnFollow OnFollowBehavior - // Accept handles additional side effects for the Accept ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping function determines if this 'Accept' is in response to a - // 'Follow'. If so, then the 'actor' is added to the original 'actor's - // 'following' collection. - // - // Otherwise, no side effects are done by go-fed. - Accept func(context.Context, vocab.ActivityStreamsAccept) error - // Reject handles additional side effects for the Reject ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping function has no default side effects. However, if this - // 'Reject' is in response to a 'Follow' then the client MUST NOT go - // forward with adding the 'actor' to the original 'actor's 'following' - // collection by the client application. - Reject func(context.Context, vocab.ActivityStreamsReject) error - // Add handles additional side effects for the Add ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping function will add the 'object' IRIs to a specific - // 'target' collection if the 'target' collection(s) live on this - // server. - Add func(context.Context, vocab.ActivityStreamsAdd) error - // Remove handles additional side effects for the Remove ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping function will remove all 'object' IRIs from a specific - // 'target' collection if the 'target' collection(s) live on this - // server. - Remove func(context.Context, vocab.ActivityStreamsRemove) error - // Like handles additional side effects for the Like ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping function will add the activity to the "likes" collection - // on all 'object' targets owned by this server. - Like func(context.Context, vocab.ActivityStreamsLike) error - // Announce handles additional side effects for the Announce - // ActivityStreams type, specific to the application using go-fed. - // - // The wrapping function will add the activity to the "shares" - // collection on all 'object' targets owned by this server. - Announce func(context.Context, vocab.ActivityStreamsAnnounce) error - // Undo handles additional side effects for the Undo ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping function ensures the 'actor' on the 'Undo' - // is be the same as the 'actor' on all Activities being undone. - // It enforces that the actors on the Undo must correspond to all of the - // 'object' actors in some manner. - // - // It is expected that the application will implement the proper - // reversal of activities that are being undone. - Undo func(context.Context, vocab.ActivityStreamsUndo) error - // Block handles additional side effects for the Block ActivityStreams - // type, specific to the application using go-fed. - // - // The wrapping function provides no default side effects. It simply - // calls the wrapped function. However, note that Blocks should not be - // received from a federated peer, as delivering Blocks explicitly - // deviates from the original ActivityPub specification. - Block func(context.Context, vocab.ActivityStreamsBlock) error - - // Sidechannel data -- this is set at request handling time. These must - // be set before the callbacks are used. - - // db is the Database the FederatingWrappedCallbacks should use. - db Database - // inboxIRI is the inboxIRI that is handling this callback. - inboxIRI *url.URL - // addNewIds creates new 'id' entries on an activity and its objects if - // it is a Create activity. - addNewIds func(c context.Context, activity Activity) error - // deliver delivers an outgoing message. - deliver func(c context.Context, outboxIRI *url.URL, activity Activity) error - // newTransport creates a new Transport. - newTransport func(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error) -} - -// callbacks returns the WrappedCallbacks members into a single interface slice -// for use in streams.Resolver callbacks. -// -// If the given functions have a type that collides with the default behavior, -// then disable our default behavior -func (w FederatingWrappedCallbacks) callbacks(fns []interface{}) []interface{} { - enableCreate := true - enableUpdate := true - enableDelete := true - enableFollow := true - enableAccept := true - enableReject := true - enableAdd := true - enableRemove := true - enableLike := true - enableAnnounce := true - enableUndo := true - enableBlock := true - for _, fn := range fns { - switch fn.(type) { - default: - continue - case func(context.Context, vocab.ActivityStreamsCreate) error: - enableCreate = false - case func(context.Context, vocab.ActivityStreamsUpdate) error: - enableUpdate = false - case func(context.Context, vocab.ActivityStreamsDelete) error: - enableDelete = false - case func(context.Context, vocab.ActivityStreamsFollow) error: - enableFollow = false - case func(context.Context, vocab.ActivityStreamsAccept) error: - enableAccept = false - case func(context.Context, vocab.ActivityStreamsReject) error: - enableReject = false - case func(context.Context, vocab.ActivityStreamsAdd) error: - enableAdd = false - case func(context.Context, vocab.ActivityStreamsRemove) error: - enableRemove = false - case func(context.Context, vocab.ActivityStreamsLike) error: - enableLike = false - case func(context.Context, vocab.ActivityStreamsAnnounce) error: - enableAnnounce = false - case func(context.Context, vocab.ActivityStreamsUndo) error: - enableUndo = false - case func(context.Context, vocab.ActivityStreamsBlock) error: - enableBlock = false - } - } - if enableCreate { - fns = append(fns, w.create) - } - if enableUpdate { - fns = append(fns, w.update) - } - if enableDelete { - fns = append(fns, w.deleteFn) - } - if enableFollow { - fns = append(fns, w.follow) - } - if enableAccept { - fns = append(fns, w.accept) - } - if enableReject { - fns = append(fns, w.reject) - } - if enableAdd { - fns = append(fns, w.add) - } - if enableRemove { - fns = append(fns, w.remove) - } - if enableLike { - fns = append(fns, w.like) - } - if enableAnnounce { - fns = append(fns, w.announce) - } - if enableUndo { - fns = append(fns, w.undo) - } - if enableBlock { - fns = append(fns, w.block) - } - return fns -} - -// create implements the federating Create activity side effects. -func (w FederatingWrappedCallbacks) create(c context.Context, a vocab.ActivityStreamsCreate) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error { - t := iter.GetType() - if t == nil && iter.IsIRI() { - // Attempt to dereference the IRI instead - tport, err := w.newTransport(c, w.inboxIRI, goFedUserAgent()) - if err != nil { - return err - } - b, err := tport.Dereference(c, iter.GetIRI()) - if err != nil { - return err - } - var m map[string]interface{} - if err = json.Unmarshal(b, &m); err != nil { - return err - } - t, err = streams.ToType(c, m) - if err != nil { - return err - } - } else if t == nil { - return fmt.Errorf("cannot handle federated create: object is neither a value nor IRI") - } - id, err := GetId(t) - if err != nil { - return err - } - err = w.db.Lock(c, id) - if err != nil { - return err - } - defer w.db.Unlock(c, id) - if err := w.db.Create(c, t); err != nil { - return err - } - return nil - } - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - if err := loopFn(iter); err != nil { - return err - } - } - if w.Create != nil { - return w.Create(c, a) - } - return nil -} - -// update implements the federating Update activity side effects. -func (w FederatingWrappedCallbacks) update(c context.Context, a vocab.ActivityStreamsUpdate) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - if err := mustHaveActivityOriginMatchObjects(a); err != nil { - return err - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error { - t := iter.GetType() - if t == nil { - return fmt.Errorf("update requires an object to be wholly provided") - } - id, err := GetId(t) - if err != nil { - return err - } - err = w.db.Lock(c, id) - if err != nil { - return err - } - defer w.db.Unlock(c, id) - if err := w.db.Update(c, t); err != nil { - return err - } - return nil - } - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - if err := loopFn(iter); err != nil { - return err - } - } - if w.Update != nil { - return w.Update(c, a) - } - return nil -} - -// deleteFn implements the federating Delete activity side effects. -func (w FederatingWrappedCallbacks) deleteFn(c context.Context, a vocab.ActivityStreamsDelete) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - if err := mustHaveActivityOriginMatchObjects(a); err != nil { - return err - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error { - id, err := ToId(iter) - if err != nil { - return err - } - err = w.db.Lock(c, id) - if err != nil { - return err - } - defer w.db.Unlock(c, id) - if err := w.db.Delete(c, id); err != nil { - return err - } - return nil - } - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - if err := loopFn(iter); err != nil { - return err - } - } - if w.Delete != nil { - return w.Delete(c, a) - } - return nil -} - -// follow implements the federating Follow activity side effects. -func (w FederatingWrappedCallbacks) follow(c context.Context, a vocab.ActivityStreamsFollow) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - // Check that we own at least one of the 'object' properties, and ensure - // it is to the actor that owns this inbox. - // - // If not then don't send a response. It was federated to us as an FYI, - // by mistake, or some other reason. - if err := w.db.Lock(c, w.inboxIRI); err != nil { - return err - } - // WARNING: Unlock not deferred. - actorIRI, err := w.db.ActorForInbox(c, w.inboxIRI) - if err != nil { - w.db.Unlock(c, w.inboxIRI) - return err - } - w.db.Unlock(c, w.inboxIRI) - // Unlock must be called by now and every branch above. - isMe := false - if w.OnFollow != OnFollowDoNothing { - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - if id.String() == actorIRI.String() { - isMe = true - break - } - } - } - if isMe { - // Prepare the response. - var response Activity - if w.OnFollow == OnFollowAutomaticallyAccept { - response = streams.NewActivityStreamsAccept() - } else if w.OnFollow == OnFollowAutomaticallyReject { - response = streams.NewActivityStreamsReject() - } else { - return fmt.Errorf("unknown OnFollowBehavior: %d", w.OnFollow) - } - // Set us as the 'actor'. - me := streams.NewActivityStreamsActorProperty() - response.SetActivityStreamsActor(me) - me.AppendIRI(actorIRI) - // Set the Follow as the 'object' property. - op := streams.NewActivityStreamsObjectProperty() - response.SetActivityStreamsObject(op) - op.AppendActivityStreamsFollow(a) - // Add all actors on the original Follow to the 'to' property. - recipients := make([]*url.URL, 0) - to := streams.NewActivityStreamsToProperty() - response.SetActivityStreamsTo(to) - followActors := a.GetActivityStreamsActor() - for iter := followActors.Begin(); iter != followActors.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - to.AppendIRI(id) - recipients = append(recipients, id) - } - if w.OnFollow == OnFollowAutomaticallyAccept { - // If automatically accepting, then also update our - // followers collection with the new actors. - // - // If automatically rejecting, do not update the - // followers collection. - if err := w.db.Lock(c, actorIRI); err != nil { - return err - } - // WARNING: Unlock not deferred. - followers, err := w.db.Followers(c, actorIRI) - if err != nil { - w.db.Unlock(c, actorIRI) - return err - } - items := followers.GetActivityStreamsItems() - if items == nil { - items = streams.NewActivityStreamsItemsProperty() - followers.SetActivityStreamsItems(items) - } - for _, elem := range recipients { - items.PrependIRI(elem) - } - if err = w.db.Update(c, followers); err != nil { - w.db.Unlock(c, actorIRI) - return err - } - w.db.Unlock(c, actorIRI) - // Unlock must be called by now and every branch above. - } - // Lock without defer! - w.db.Lock(c, w.inboxIRI) - outboxIRI, err := w.db.OutboxForInbox(c, w.inboxIRI) - if err != nil { - w.db.Unlock(c, w.inboxIRI) - return err - } - w.db.Unlock(c, w.inboxIRI) - // Everything must be unlocked by now. - if err := w.addNewIds(c, response); err != nil { - return err - } else if err := w.deliver(c, outboxIRI, response); err != nil { - return err - } - } - if w.Follow != nil { - return w.Follow(c, a) - } - return nil -} - -// accept implements the federating Accept activity side effects. -func (w FederatingWrappedCallbacks) accept(c context.Context, a vocab.ActivityStreamsAccept) error { - op := a.GetActivityStreamsObject() - if op != nil && op.Len() > 0 { - // Get this actor's id. - if err := w.db.Lock(c, w.inboxIRI); err != nil { - return err - } - // WARNING: Unlock not deferred. - actorIRI, err := w.db.ActorForInbox(c, w.inboxIRI) - if err != nil { - w.db.Unlock(c, w.inboxIRI) - return err - } - w.db.Unlock(c, w.inboxIRI) - // Unlock must be called by now and every branch above. - // - // Determine if we are in a follow on the 'object' property. - // - // TODO: Handle Accept multiple Follow. - var maybeMyFollowIRI *url.URL - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - t := iter.GetType() - if t == nil && iter.IsIRI() { - // Attempt to dereference the IRI instead - tport, err := w.newTransport(c, w.inboxIRI, goFedUserAgent()) - if err != nil { - return err - } - b, err := tport.Dereference(c, iter.GetIRI()) - if err != nil { - return err - } - var m map[string]interface{} - if err = json.Unmarshal(b, &m); err != nil { - return err - } - t, err = streams.ToType(c, m) - if err != nil { - return err - } - } else if t == nil { - return fmt.Errorf("cannot handle federated create: object is neither a value nor IRI") - } - // Ensure it is a Follow. - if !streams.IsOrExtendsActivityStreamsFollow(t) { - continue - } - follow, ok := t.(Activity) - if !ok { - return fmt.Errorf("a Follow in an Accept does not satisfy the Activity interface") - } - followId, err := GetId(follow) - if err != nil { - return err - } - // Ensure that we are one of the actors on the Follow. - actors := follow.GetActivityStreamsActor() - for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - if id.String() == actorIRI.String() { - maybeMyFollowIRI = followId - break - } - } - // Continue breaking if we found ourselves - if maybeMyFollowIRI != nil { - break - } - } - // If we received an Accept whose 'object' is a Follow with an - // Accept that we sent, add to the following collection. - if maybeMyFollowIRI != nil { - // Verify our Follow request exists and the peer didn't - // fabricate it. - activityActors := a.GetActivityStreamsActor() - if activityActors == nil || activityActors.Len() == 0 { - return fmt.Errorf("an Accept with a Follow has no actors") - } - // This may be a duplicate check if we dereferenced the - // Follow above. TODO: Separate this logic to avoid - // redundancy. - // - // Use an anonymous function to properly scope the - // database lock, immediately call it. - err = func() error { - if err := w.db.Lock(c, maybeMyFollowIRI); err != nil { - return err - } - defer w.db.Unlock(c, maybeMyFollowIRI) - t, err := w.db.Get(c, maybeMyFollowIRI) - if err != nil { - return err - } - if !streams.IsOrExtendsActivityStreamsFollow(t) { - return fmt.Errorf("peer gave an Accept wrapping a Follow but provided a non-Follow id") - } - follow, ok := t.(Activity) - if !ok { - return fmt.Errorf("a Follow in an Accept does not satisfy the Activity interface") - } - // Ensure that we are one of the actors on the Follow. - ok = false - actors := follow.GetActivityStreamsActor() - for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - if id.String() == actorIRI.String() { - ok = true - break - } - } - if !ok { - return fmt.Errorf("peer gave an Accept wrapping a Follow but we are not the actor on that Follow") - } - // Build map of original Accept actors - acceptActors := make(map[string]bool) - for iter := activityActors.Begin(); iter != activityActors.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - acceptActors[id.String()] = false - } - // Verify all actor(s) were on the original Follow. - followObj := follow.GetActivityStreamsObject() - for iter := followObj.Begin(); iter != followObj.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - if _, ok := acceptActors[id.String()]; ok { - acceptActors[id.String()] = true - } - } - for _, found := range acceptActors { - if !found { - return fmt.Errorf("peer gave an Accept wrapping a Follow but was not an object in the original Follow") - } - } - return nil - }() - if err != nil { - return err - } - // Add the peer to our following collection. - if err := w.db.Lock(c, actorIRI); err != nil { - return err - } - // WARNING: Unlock not deferred. - following, err := w.db.Following(c, actorIRI) - if err != nil { - w.db.Unlock(c, actorIRI) - return err - } - items := following.GetActivityStreamsItems() - if items == nil { - items = streams.NewActivityStreamsItemsProperty() - following.SetActivityStreamsItems(items) - } - for iter := activityActors.Begin(); iter != activityActors.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - w.db.Unlock(c, actorIRI) - return err - } - items.PrependIRI(id) - } - if err = w.db.Update(c, following); err != nil { - w.db.Unlock(c, actorIRI) - return err - } - w.db.Unlock(c, actorIRI) - // Unlock must be called by now and every branch above. - } - } - if w.Accept != nil { - return w.Accept(c, a) - } - return nil -} - -// reject implements the federating Reject activity side effects. -func (w FederatingWrappedCallbacks) reject(c context.Context, a vocab.ActivityStreamsReject) error { - if w.Reject != nil { - return w.Reject(c, a) - } - return nil -} - -// add implements the federating Add activity side effects. -func (w FederatingWrappedCallbacks) add(c context.Context, a vocab.ActivityStreamsAdd) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - target := a.GetActivityStreamsTarget() - if target == nil || target.Len() == 0 { - return ErrTargetRequired - } - if err := add(c, op, target, w.db); err != nil { - return err - } - if w.Add != nil { - return w.Add(c, a) - } - return nil -} - -// remove implements the federating Remove activity side effects. -func (w FederatingWrappedCallbacks) remove(c context.Context, a vocab.ActivityStreamsRemove) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - target := a.GetActivityStreamsTarget() - if target == nil || target.Len() == 0 { - return ErrTargetRequired - } - if err := remove(c, op, target, w.db); err != nil { - return err - } - if w.Remove != nil { - return w.Remove(c, a) - } - return nil -} - -// like implements the federating Like activity side effects. -func (w FederatingWrappedCallbacks) like(c context.Context, a vocab.ActivityStreamsLike) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - id, err := GetId(a) - if err != nil { - return err - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error { - objId, err := ToId(iter) - if err != nil { - return err - } - if err := w.db.Lock(c, objId); err != nil { - return err - } - defer w.db.Unlock(c, objId) - if owns, err := w.db.Owns(c, objId); err != nil { - return err - } else if !owns { - return nil - } - t, err := w.db.Get(c, objId) - if err != nil { - return err - } - l, ok := t.(likeser) - if !ok { - return fmt.Errorf("cannot add Like to likes collection for type %T", t) - } - // Get 'likes' property on the object, creating default if - // necessary. - likes := l.GetActivityStreamsLikes() - if likes == nil { - likes = streams.NewActivityStreamsLikesProperty() - l.SetActivityStreamsLikes(likes) - } - // Get 'likes' value, defaulting to a collection. - likesT := likes.GetType() - if likesT == nil { - col := streams.NewActivityStreamsCollection() - likesT = col - likes.SetActivityStreamsCollection(col) - } - // Prepend the activity's 'id' on the 'likes' Collection or - // OrderedCollection. - if col, ok := likesT.(itemser); ok { - items := col.GetActivityStreamsItems() - if items == nil { - items = streams.NewActivityStreamsItemsProperty() - col.SetActivityStreamsItems(items) - } - items.PrependIRI(id) - } else if oCol, ok := likesT.(orderedItemser); ok { - oItems := oCol.GetActivityStreamsOrderedItems() - if oItems == nil { - oItems = streams.NewActivityStreamsOrderedItemsProperty() - oCol.SetActivityStreamsOrderedItems(oItems) - } - oItems.PrependIRI(id) - } else { - return fmt.Errorf("likes type is neither a Collection nor an OrderedCollection: %T", likesT) - } - err = w.db.Update(c, t) - if err != nil { - return err - } - return nil - } - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - if err := loopFn(iter); err != nil { - return err - } - } - if w.Like != nil { - return w.Like(c, a) - } - return nil -} - -// announce implements the federating Announce activity side effects. -func (w FederatingWrappedCallbacks) announce(c context.Context, a vocab.ActivityStreamsAnnounce) error { - id, err := GetId(a) - if err != nil { - return err - } - op := a.GetActivityStreamsObject() - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error { - objId, err := ToId(iter) - if err != nil { - return err - } - if err := w.db.Lock(c, objId); err != nil { - return err - } - defer w.db.Unlock(c, objId) - if owns, err := w.db.Owns(c, objId); err != nil { - return err - } else if !owns { - return nil - } - t, err := w.db.Get(c, objId) - if err != nil { - return err - } - s, ok := t.(shareser) - if !ok { - return fmt.Errorf("cannot add Announce to Shares collection for type %T", t) - } - // Get 'shares' property on the object, creating default if - // necessary. - shares := s.GetActivityStreamsShares() - if shares == nil { - shares = streams.NewActivityStreamsSharesProperty() - s.SetActivityStreamsShares(shares) - } - // Get 'shares' value, defaulting to a collection. - sharesT := shares.GetType() - if sharesT == nil { - col := streams.NewActivityStreamsCollection() - sharesT = col - shares.SetActivityStreamsCollection(col) - } - // Prepend the activity's 'id' on the 'shares' Collection or - // OrderedCollection. - if col, ok := sharesT.(itemser); ok { - items := col.GetActivityStreamsItems() - if items == nil { - items = streams.NewActivityStreamsItemsProperty() - col.SetActivityStreamsItems(items) - } - items.PrependIRI(id) - } else if oCol, ok := sharesT.(orderedItemser); ok { - oItems := oCol.GetActivityStreamsOrderedItems() - if oItems == nil { - oItems = streams.NewActivityStreamsOrderedItemsProperty() - oCol.SetActivityStreamsOrderedItems(oItems) - } - oItems.PrependIRI(id) - } else { - return fmt.Errorf("shares type is neither a Collection nor an OrderedCollection: %T", sharesT) - } - err = w.db.Update(c, t) - if err != nil { - return err - } - return nil - } - if op != nil { - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - if err := loopFn(iter); err != nil { - return err - } - } - } - if w.Announce != nil { - return w.Announce(c, a) - } - return nil -} - -// undo implements the federating Undo activity side effects. -func (w FederatingWrappedCallbacks) undo(c context.Context, a vocab.ActivityStreamsUndo) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - actors := a.GetActivityStreamsActor() - if err := mustHaveActivityActorsMatchObjectActors(c, actors, op, w.newTransport, w.inboxIRI); err != nil { - return err - } - if w.Undo != nil { - return w.Undo(c, a) - } - return nil -} - -// block implements the federating Block activity side effects. -func (w FederatingWrappedCallbacks) block(c context.Context, a vocab.ActivityStreamsBlock) error { - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - if w.Block != nil { - return w.Block(c, a) - } - return nil -} diff --git a/vendor/github.com/go-fed/activity/pub/handlers.go b/vendor/github.com/go-fed/activity/pub/handlers.go deleted file mode 100644 index e77d02569..000000000 --- a/vendor/github.com/go-fed/activity/pub/handlers.go +++ /dev/null @@ -1,113 +0,0 @@ -package pub - -import ( - "context" - "encoding/json" - "errors" - "fmt" - "net/http" - - "github.com/go-fed/activity/streams" -) - -var ErrNotFound = errors.New("go-fed/activity: ActivityStreams data not found") - -// HandlerFunc determines whether an incoming HTTP request is an ActivityStreams -// GET request, and if so attempts to serve ActivityStreams data. -// -// If an error is returned, then the calling function is responsible for writing -// to the ResponseWriter as part of error handling. -// -// If 'isASRequest' is false and there is no error, then the calling function -// may continue processing the request, and the HandlerFunc will not have -// written anything to the ResponseWriter. For example, a webpage may be served -// instead. -// -// If 'isASRequest' is true and there is no error, then the HandlerFunc -// successfully served the request and wrote to the ResponseWriter. -// -// Callers are responsible for authorized access to this resource. -type HandlerFunc func(c context.Context, w http.ResponseWriter, r *http.Request) (isASRequest bool, err error) - -// NewActivityStreamsHandler creates a HandlerFunc to serve ActivityStreams -// requests which are coming from other clients or servers that wish to obtain -// an ActivityStreams representation of data. -// -// Strips retrieved ActivityStreams values of sensitive fields ('bto' and 'bcc') -// before responding with them. Sets the appropriate HTTP status code for -// Tombstone Activities as well. -// -// Defaults to supporting content to be retrieved by HTTPS only. -func NewActivityStreamsHandler(db Database, clock Clock) HandlerFunc { - return NewActivityStreamsHandlerScheme(db, clock, "https") -} - -// NewActivityStreamsHandlerScheme creates a HandlerFunc to serve -// ActivityStreams requests which are coming from other clients or servers that -// wish to obtain an ActivityStreams representation of data provided by the -// specified protocol scheme. -// -// Strips retrieved ActivityStreams values of sensitive fields ('bto' and 'bcc') -// before responding with them. Sets the appropriate HTTP status code for -// Tombstone Activities as well. -// -// Specifying the "scheme" allows for retrieving ActivityStreams content with -// identifiers such as HTTP, HTTPS, or other protocol schemes. -// -// Returns ErrNotFound when the database does not retrieve any data and no -// errors occurred during retrieval. -func NewActivityStreamsHandlerScheme(db Database, clock Clock, scheme string) HandlerFunc { - return func(c context.Context, w http.ResponseWriter, r *http.Request) (isASRequest bool, err error) { - // Do nothing if it is not an ActivityPub GET request - if !isActivityPubGet(r) { - return - } - isASRequest = true - id := requestId(r, scheme) - // Lock and obtain a copy of the requested ActivityStreams value - err = db.Lock(c, id) - if err != nil { - return - } - // WARNING: Unlock not deferred - t, err := db.Get(c, id) - if err != nil { - db.Unlock(c, id) - return - } - db.Unlock(c, id) - // Unlock must have been called by this point and in every - // branch above - if t == nil { - err = ErrNotFound - return - } - // Remove sensitive fields. - clearSensitiveFields(t) - // Serialize the fetched value. - m, err := streams.Serialize(t) - if err != nil { - return - } - raw, err := json.Marshal(m) - if err != nil { - return - } - // Construct the response. - addResponseHeaders(w.Header(), clock, raw) - // Write the response. - if streams.IsOrExtendsActivityStreamsTombstone(t) { - w.WriteHeader(http.StatusGone) - } else { - w.WriteHeader(http.StatusOK) - } - n, err := w.Write(raw) - if err != nil { - return - } else if n != len(raw) { - err = fmt.Errorf("only wrote %d of %d bytes", n, len(raw)) - return - } - return - } -} diff --git a/vendor/github.com/go-fed/activity/pub/property_interfaces.go b/vendor/github.com/go-fed/activity/pub/property_interfaces.go deleted file mode 100644 index b40134462..000000000 --- a/vendor/github.com/go-fed/activity/pub/property_interfaces.go +++ /dev/null @@ -1,117 +0,0 @@ -package pub - -import ( - "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// inReplyToer is an ActivityStreams type with an 'inReplyTo' property -type inReplyToer interface { - GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty -} - -// objecter is an ActivityStreams type with an 'object' property -type objecter interface { - GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty -} - -// targeter is an ActivityStreams type with a 'target' property -type targeter interface { - GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty -} - -// tagger is an ActivityStreams type with a 'tag' property -type tagger interface { - GetActivityStreamsTag() vocab.ActivityStreamsTagProperty -} - -// hrefer is an ActivityStreams type with a 'href' property -type hrefer interface { - GetActivityStreamsHref() vocab.ActivityStreamsHrefProperty -} - -// itemser is an ActivityStreams type with an 'items' property -type itemser interface { - GetActivityStreamsItems() vocab.ActivityStreamsItemsProperty - SetActivityStreamsItems(vocab.ActivityStreamsItemsProperty) -} - -// orderedItemser is an ActivityStreams type with an 'orderedItems' property -type orderedItemser interface { - GetActivityStreamsOrderedItems() vocab.ActivityStreamsOrderedItemsProperty - SetActivityStreamsOrderedItems(vocab.ActivityStreamsOrderedItemsProperty) -} - -// publisheder is an ActivityStreams type with a 'published' property -type publisheder interface { - GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty -} - -// updateder is an ActivityStreams type with an 'updateder' property -type updateder interface { - GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty -} - -// toer is an ActivityStreams type with a 'to' property -type toer interface { - GetActivityStreamsTo() vocab.ActivityStreamsToProperty - SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) -} - -// btoer is an ActivityStreams type with a 'bto' property -type btoer interface { - GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty - SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) -} - -// ccer is an ActivityStreams type with a 'cc' property -type ccer interface { - GetActivityStreamsCc() vocab.ActivityStreamsCcProperty - SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) -} - -// bccer is an ActivityStreams type with a 'bcc' property -type bccer interface { - GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty - SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) -} - -// audiencer is an ActivityStreams type with an 'audience' property -type audiencer interface { - GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty - SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) -} - -// inboxer is an ActivityStreams type with an 'inbox' property -type inboxer interface { - GetActivityStreamsInbox() vocab.ActivityStreamsInboxProperty -} - -// attributedToer is an ActivityStreams type with an 'attributedTo' property -type attributedToer interface { - GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty - SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) -} - -// likeser is an ActivityStreams type with a 'likes' property -type likeser interface { - GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty - SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) -} - -// shareser is an ActivityStreams type with a 'shares' property -type shareser interface { - GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty - SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) -} - -// actorer is an ActivityStreams type with an 'actor' property -type actorer interface { - GetActivityStreamsActor() vocab.ActivityStreamsActorProperty - SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) -} - -// appendIRIer is an ActivityStreams type that can Append IRIs. -type appendIRIer interface { - AppendIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/pub/side_effect_actor.go b/vendor/github.com/go-fed/activity/pub/side_effect_actor.go deleted file mode 100644 index c8b5375eb..000000000 --- a/vendor/github.com/go-fed/activity/pub/side_effect_actor.go +++ /dev/null @@ -1,810 +0,0 @@ -package pub - -import ( - "context" - "encoding/json" - "fmt" - "github.com/go-fed/activity/streams" - "github.com/go-fed/activity/streams/vocab" - "net/http" - "net/url" -) - -// sideEffectActor must satisfy the DelegateActor interface. -var _ DelegateActor = &sideEffectActor{} - -// sideEffectActor is a DelegateActor that handles the ActivityPub -// implementation side effects, but requires a more opinionated application to -// be written. -// -// Note that when using the sideEffectActor with an application that good-faith -// implements its required interfaces, the ActivityPub specification is -// guaranteed to be correctly followed. -type sideEffectActor struct { - common CommonBehavior - s2s FederatingProtocol - c2s SocialProtocol - db Database - clock Clock -} - -// PostInboxRequestBodyHook defers to the delegate. -func (a *sideEffectActor) PostInboxRequestBodyHook(c context.Context, r *http.Request, activity Activity) (context.Context, error) { - return a.s2s.PostInboxRequestBodyHook(c, r, activity) -} - -// PostOutboxRequestBodyHook defers to the delegate. -func (a *sideEffectActor) PostOutboxRequestBodyHook(c context.Context, r *http.Request, data vocab.Type) (context.Context, error) { - return a.c2s.PostOutboxRequestBodyHook(c, r, data) -} - -// AuthenticatePostInbox defers to the delegate to authenticate the request. -func (a *sideEffectActor) AuthenticatePostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) { - return a.s2s.AuthenticatePostInbox(c, w, r) -} - -// AuthenticateGetInbox defers to the delegate to authenticate the request. -func (a *sideEffectActor) AuthenticateGetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) { - return a.common.AuthenticateGetInbox(c, w, r) -} - -// AuthenticatePostOutbox defers to the delegate to authenticate the request. -func (a *sideEffectActor) AuthenticatePostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) { - return a.c2s.AuthenticatePostOutbox(c, w, r) -} - -// AuthenticateGetOutbox defers to the delegate to authenticate the request. -func (a *sideEffectActor) AuthenticateGetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) { - return a.common.AuthenticateGetOutbox(c, w, r) -} - -// GetOutbox delegates to the SocialProtocol. -func (a *sideEffectActor) GetOutbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) { - return a.common.GetOutbox(c, r) -} - -// GetInbox delegates to the FederatingProtocol. -func (a *sideEffectActor) GetInbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) { - return a.s2s.GetInbox(c, r) -} - -// AuthorizePostInbox defers to the federating protocol whether the peer request -// is authorized based on the actors' ids. -func (a *sideEffectActor) AuthorizePostInbox(c context.Context, w http.ResponseWriter, activity Activity) (authorized bool, err error) { - authorized = false - actor := activity.GetActivityStreamsActor() - if actor == nil { - err = fmt.Errorf("no actors in post to inbox") - return - } - var iris []*url.URL - for i := 0; i < actor.Len(); i++ { - iter := actor.At(i) - if iter.IsIRI() { - iris = append(iris, iter.GetIRI()) - } else if t := iter.GetType(); t != nil { - iris = append(iris, activity.GetJSONLDId().Get()) - } else { - err = fmt.Errorf("actor at index %d is missing an id", i) - return - } - } - // Determine if the actor(s) sending this request are blocked. - var blocked bool - if blocked, err = a.s2s.Blocked(c, iris); err != nil { - return - } else if blocked { - w.WriteHeader(http.StatusForbidden) - return - } - authorized = true - return -} - -// PostInbox handles the side effects of determining whether to block the peer's -// request, adding the activity to the actor's inbox, and triggering side -// effects based on the activity's type. -func (a *sideEffectActor) PostInbox(c context.Context, inboxIRI *url.URL, activity Activity) error { - isNew, err := a.addToInboxIfNew(c, inboxIRI, activity) - if err != nil { - return err - } - if isNew { - wrapped, other, err := a.s2s.FederatingCallbacks(c) - if err != nil { - return err - } - // Populate side channels. - wrapped.db = a.db - wrapped.inboxIRI = inboxIRI - wrapped.newTransport = a.common.NewTransport - wrapped.deliver = a.Deliver - wrapped.addNewIds = a.AddNewIDs - res, err := streams.NewTypeResolver(wrapped.callbacks(other)...) - if err != nil { - return err - } - if err = res.Resolve(c, activity); err != nil && !streams.IsUnmatchedErr(err) { - return err - } else if streams.IsUnmatchedErr(err) { - err = a.s2s.DefaultCallback(c, activity) - if err != nil { - return err - } - } - } - return nil -} - -// InboxForwarding implements the 3-part inbox forwarding algorithm specified in -// the ActivityPub specification. Does not modify the Activity, but may send -// outbound requests as a side effect. -// -// InboxForwarding sets the federated data in the database. -func (a *sideEffectActor) InboxForwarding(c context.Context, inboxIRI *url.URL, activity Activity) error { - // 1. Must be first time we have seen this Activity. - // - // Obtain the id of the activity - id := activity.GetJSONLDId() - // Acquire a lock for the id. To be held for the rest of execution. - err := a.db.Lock(c, id.Get()) - if err != nil { - return err - } - // WARNING: Unlock is not deferred - // - // If the database already contains the activity, exit early. - exists, err := a.db.Exists(c, id.Get()) - if err != nil { - a.db.Unlock(c, id.Get()) - return err - } else if exists { - a.db.Unlock(c, id.Get()) - return nil - } - // Attempt to create the activity entry. - err = a.db.Create(c, activity) - if err != nil { - a.db.Unlock(c, id.Get()) - return err - } - a.db.Unlock(c, id.Get()) - // Unlock by this point and in every branch above. - // - // 2. The values of 'to', 'cc', or 'audience' are Collections owned by - // this server. - var r []*url.URL - to := activity.GetActivityStreamsTo() - if to != nil { - for iter := to.Begin(); iter != to.End(); iter = iter.Next() { - val, err := ToId(iter) - if err != nil { - return err - } - r = append(r, val) - } - } - cc := activity.GetActivityStreamsCc() - if cc != nil { - for iter := cc.Begin(); iter != cc.End(); iter = iter.Next() { - val, err := ToId(iter) - if err != nil { - return err - } - r = append(r, val) - } - } - audience := activity.GetActivityStreamsAudience() - if audience != nil { - for iter := audience.Begin(); iter != audience.End(); iter = iter.Next() { - val, err := ToId(iter) - if err != nil { - return err - } - r = append(r, val) - } - } - // Find all IRIs owned by this server. We need to find all of them so - // that forwarding can properly occur. - var myIRIs []*url.URL - for _, iri := range r { - if err != nil { - return err - } - err = a.db.Lock(c, iri) - if err != nil { - return err - } - // WARNING: Unlock is not deferred - if owns, err := a.db.Owns(c, iri); err != nil { - a.db.Unlock(c, iri) - return err - } else if !owns { - a.db.Unlock(c, iri) - continue - } - a.db.Unlock(c, iri) - // Unlock by this point and in every branch above. - myIRIs = append(myIRIs, iri) - } - // Finally, load our IRIs to determine if they are a Collection or - // OrderedCollection. - // - // Load the unfiltered IRIs. - var colIRIs []*url.URL - col := make(map[string]itemser) - oCol := make(map[string]orderedItemser) - for _, iri := range myIRIs { - err = a.db.Lock(c, iri) - if err != nil { - return err - } - // WARNING: Not Unlocked - t, err := a.db.Get(c, iri) - if err != nil { - return err - } - if streams.IsOrExtendsActivityStreamsOrderedCollection(t) { - if im, ok := t.(orderedItemser); ok { - oCol[iri.String()] = im - colIRIs = append(colIRIs, iri) - defer a.db.Unlock(c, iri) - } else { - a.db.Unlock(c, iri) - } - } else if streams.IsOrExtendsActivityStreamsCollection(t) { - if im, ok := t.(itemser); ok { - col[iri.String()] = im - colIRIs = append(colIRIs, iri) - defer a.db.Unlock(c, iri) - } else { - a.db.Unlock(c, iri) - } - } else { - a.db.Unlock(c, iri) - } - } - // If we own none of the Collection IRIs in 'to', 'cc', or 'audience' - // then no need to do inbox forwarding. We have nothing to forward to. - if len(colIRIs) == 0 { - return nil - } - // 3. The values of 'inReplyTo', 'object', 'target', or 'tag' are owned - // by this server. This is only a boolean trigger: As soon as we get - // a hit that we own something, then we should do inbox forwarding. - maxDepth := a.s2s.MaxInboxForwardingRecursionDepth(c) - ownsValue, err := a.hasInboxForwardingValues(c, inboxIRI, activity, maxDepth, 0) - if err != nil { - return err - } - // If we don't own any of the 'inReplyTo', 'object', 'target', or 'tag' - // values, then no need to do inbox forwarding. - if !ownsValue { - return nil - } - // Do the inbox forwarding since the above conditions hold true. Support - // the behavior of letting the application filter out the resulting - // collections to be targeted. - toSend, err := a.s2s.FilterForwarding(c, colIRIs, activity) - if err != nil { - return err - } - recipients := make([]*url.URL, 0, len(toSend)) - for _, iri := range toSend { - if c, ok := col[iri.String()]; ok { - if it := c.GetActivityStreamsItems(); it != nil { - for iter := it.Begin(); iter != it.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - recipients = append(recipients, id) - } - } - } else if oc, ok := oCol[iri.String()]; ok { - if oit := oc.GetActivityStreamsOrderedItems(); oit != nil { - for iter := oit.Begin(); iter != oit.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - recipients = append(recipients, id) - } - } - } - } - return a.deliverToRecipients(c, inboxIRI, activity, recipients) -} - -// PostOutbox handles the side effects of adding the activity to the actor's -// outbox, and triggering side effects based on the activity's type. -// -// This implementation assumes all types are meant to be delivered except for -// the ActivityStreams Block type. -func (a *sideEffectActor) PostOutbox(c context.Context, activity Activity, outboxIRI *url.URL, rawJSON map[string]interface{}) (deliverable bool, err error) { - // TODO: Determine this if c2s is nil - deliverable = true - if a.c2s != nil { - var wrapped SocialWrappedCallbacks - var other []interface{} - wrapped, other, err = a.c2s.SocialCallbacks(c) - if err != nil { - return - } - // Populate side channels. - wrapped.db = a.db - wrapped.outboxIRI = outboxIRI - wrapped.rawActivity = rawJSON - wrapped.clock = a.clock - wrapped.newTransport = a.common.NewTransport - undeliverable := false - wrapped.undeliverable = &undeliverable - var res *streams.TypeResolver - res, err = streams.NewTypeResolver(wrapped.callbacks(other)...) - if err != nil { - return - } - if err = res.Resolve(c, activity); err != nil && !streams.IsUnmatchedErr(err) { - return - } else if streams.IsUnmatchedErr(err) { - deliverable = true - err = a.c2s.DefaultCallback(c, activity) - if err != nil { - return - } - } else { - deliverable = !undeliverable - } - } - err = a.addToOutbox(c, outboxIRI, activity) - return -} - -// AddNewIDs creates new 'id' entries on an activity and its objects if it is a -// Create activity. -func (a *sideEffectActor) AddNewIDs(c context.Context, activity Activity) error { - id, err := a.db.NewID(c, activity) - if err != nil { - return err - } - activityId := streams.NewJSONLDIdProperty() - activityId.Set(id) - activity.SetJSONLDId(activityId) - if streams.IsOrExtendsActivityStreamsCreate(activity) { - o, ok := activity.(objecter) - if !ok { - return fmt.Errorf("cannot add new id for Create: %T has no object property", activity) - } - if oProp := o.GetActivityStreamsObject(); oProp != nil { - for iter := oProp.Begin(); iter != oProp.End(); iter = iter.Next() { - t := iter.GetType() - if t == nil { - return fmt.Errorf("cannot add new id for object in Create: object is not embedded as a value literal") - } - id, err = a.db.NewID(c, t) - if err != nil { - return err - } - objId := streams.NewJSONLDIdProperty() - objId.Set(id) - t.SetJSONLDId(objId) - } - } - } - return nil -} - -// deliver will complete the peer-to-peer sending of a federated message to -// another server. -// -// Must be called if at least the federated protocol is supported. -func (a *sideEffectActor) Deliver(c context.Context, outboxIRI *url.URL, activity Activity) error { - recipients, err := a.prepare(c, outboxIRI, activity) - if err != nil { - return err - } - return a.deliverToRecipients(c, outboxIRI, activity, recipients) -} - -// WrapInCreate wraps an object with a Create activity. -func (a *sideEffectActor) WrapInCreate(c context.Context, obj vocab.Type, outboxIRI *url.URL) (create vocab.ActivityStreamsCreate, err error) { - err = a.db.Lock(c, outboxIRI) - if err != nil { - return - } - // WARNING: No deferring the Unlock - actorIRI, err := a.db.ActorForOutbox(c, outboxIRI) - if err != nil { - a.db.Unlock(c, outboxIRI) - return - } - a.db.Unlock(c, outboxIRI) - // Unlock the lock at this point and every branch above - return wrapInCreate(c, obj, actorIRI) -} - -// deliverToRecipients will take a prepared Activity and send it to specific -// recipients on behalf of an actor. -func (a *sideEffectActor) deliverToRecipients(c context.Context, boxIRI *url.URL, activity Activity, recipients []*url.URL) error { - m, err := streams.Serialize(activity) - if err != nil { - return err - } - b, err := json.Marshal(m) - if err != nil { - return err - } - tp, err := a.common.NewTransport(c, boxIRI, goFedUserAgent()) - if err != nil { - return err - } - return tp.BatchDeliver(c, b, recipients) -} - -// addToOutbox adds the activity to the outbox and creates the activity in the -// internal database as its own entry. -func (a *sideEffectActor) addToOutbox(c context.Context, outboxIRI *url.URL, activity Activity) error { - // Set the activity in the database first. - id := activity.GetJSONLDId() - err := a.db.Lock(c, id.Get()) - if err != nil { - return err - } - // WARNING: Unlock not deferred - err = a.db.Create(c, activity) - if err != nil { - a.db.Unlock(c, id.Get()) - return err - } - a.db.Unlock(c, id.Get()) - // WARNING: Unlock(c, id) should be called by this point and in every - // return before here. - // - // Acquire a lock to read the outbox. Defer release. - err = a.db.Lock(c, outboxIRI) - if err != nil { - return err - } - defer a.db.Unlock(c, outboxIRI) - outbox, err := a.db.GetOutbox(c, outboxIRI) - if err != nil { - return err - } - // Prepend the activity to the list of 'orderedItems'. - oi := outbox.GetActivityStreamsOrderedItems() - if oi == nil { - oi = streams.NewActivityStreamsOrderedItemsProperty() - } - oi.PrependIRI(id.Get()) - outbox.SetActivityStreamsOrderedItems(oi) - // Save in the database. - err = a.db.SetOutbox(c, outbox) - return err -} - -// addToInboxIfNew will add the activity to the inbox at the specified IRI if -// the activity's ID has not yet been added to the inbox. -// -// It does not add the activity to this database's know federated data. -// -// Returns true when the activity is novel. -func (a *sideEffectActor) addToInboxIfNew(c context.Context, inboxIRI *url.URL, activity Activity) (isNew bool, err error) { - // Acquire a lock to read the inbox. Defer release. - err = a.db.Lock(c, inboxIRI) - if err != nil { - return - } - defer a.db.Unlock(c, inboxIRI) - // Obtain the id of the activity - id := activity.GetJSONLDId() - // If the inbox already contains the URL, early exit. - contains, err := a.db.InboxContains(c, inboxIRI, id.Get()) - if err != nil { - return - } else if contains { - return - } - // It is a new id, acquire the inbox. - isNew = true - inbox, err := a.db.GetInbox(c, inboxIRI) - if err != nil { - return - } - // Prepend the activity to the list of 'orderedItems'. - oi := inbox.GetActivityStreamsOrderedItems() - if oi == nil { - oi = streams.NewActivityStreamsOrderedItemsProperty() - } - oi.PrependIRI(id.Get()) - inbox.SetActivityStreamsOrderedItems(oi) - // Save in the database. - err = a.db.SetInbox(c, inbox) - return -} - -// Given an ActivityStreams value, recursively examines ownership of the id or -// href and the ones on properties applicable to inbox forwarding. -// -// Recursion may be limited by providing a 'maxDepth' greater than zero. A -// value of zero or a negative number will result in infinite recursion. -func (a *sideEffectActor) hasInboxForwardingValues(c context.Context, inboxIRI *url.URL, val vocab.Type, maxDepth, currDepth int) (bool, error) { - // Stop recurring if we are exceeding the maximum depth and the maximum - // is a positive number. - if maxDepth > 0 && currDepth >= maxDepth { - return false, nil - } - // Determine if we own the 'id' of any values on the properties we care - // about. - types, iris := getInboxForwardingValues(val) - // For IRIs, simply check if we own them. - for _, iri := range iris { - err := a.db.Lock(c, iri) - if err != nil { - return false, err - } - // WARNING: Unlock is not deferred - if owns, err := a.db.Owns(c, iri); err != nil { - a.db.Unlock(c, iri) - return false, err - } else if owns { - a.db.Unlock(c, iri) - return true, nil - } - a.db.Unlock(c, iri) - // Unlock by this point and in every branch above - } - // For embedded literals, check the id. - for _, val := range types { - id, err := GetId(val) - if err != nil { - return false, err - } - err = a.db.Lock(c, id) - if err != nil { - return false, err - } - // WARNING: Unlock is not deferred - if owns, err := a.db.Owns(c, id); err != nil { - a.db.Unlock(c, id) - return false, err - } else if owns { - a.db.Unlock(c, id) - return true, nil - } - a.db.Unlock(c, id) - // Unlock by this point and in every branch above - } - // Recur Preparation: Try fetching the IRIs so we can recur into them. - for _, iri := range iris { - // Dereferencing the IRI. - tport, err := a.common.NewTransport(c, inboxIRI, goFedUserAgent()) - if err != nil { - return false, err - } - b, err := tport.Dereference(c, iri) - if err != nil { - // Do not fail the entire process if the data is - // missing. - continue - } - var m map[string]interface{} - if err = json.Unmarshal(b, &m); err != nil { - return false, err - } - t, err := streams.ToType(c, m) - if err != nil { - // Do not fail the entire process if we cannot handle - // the type. - continue - } - types = append(types, t) - } - // Recur. - for _, nextVal := range types { - if has, err := a.hasInboxForwardingValues(c, inboxIRI, nextVal, maxDepth, currDepth+1); err != nil { - return false, err - } else if has { - return true, nil - } - } - return false, nil -} - -// prepare takes a deliverableObject and returns a list of the proper recipient -// target URIs. Additionally, the deliverableObject will have any hidden -// hidden recipients ("bto" and "bcc") stripped from it. -// -// Only call if both the social and federated protocol are supported. -func (a *sideEffectActor) prepare(c context.Context, outboxIRI *url.URL, activity Activity) (r []*url.URL, err error) { - // Get inboxes of recipients - if to := activity.GetActivityStreamsTo(); to != nil { - for iter := to.Begin(); iter != to.End(); iter = iter.Next() { - var val *url.URL - val, err = ToId(iter) - if err != nil { - return - } - r = append(r, val) - } - } - if bto := activity.GetActivityStreamsBto(); bto != nil { - for iter := bto.Begin(); iter != bto.End(); iter = iter.Next() { - var val *url.URL - val, err = ToId(iter) - if err != nil { - return - } - r = append(r, val) - } - } - if cc := activity.GetActivityStreamsCc(); cc != nil { - for iter := cc.Begin(); iter != cc.End(); iter = iter.Next() { - var val *url.URL - val, err = ToId(iter) - if err != nil { - return - } - r = append(r, val) - } - } - if bcc := activity.GetActivityStreamsBcc(); bcc != nil { - for iter := bcc.Begin(); iter != bcc.End(); iter = iter.Next() { - var val *url.URL - val, err = ToId(iter) - if err != nil { - return - } - r = append(r, val) - } - } - if audience := activity.GetActivityStreamsAudience(); audience != nil { - for iter := audience.Begin(); iter != audience.End(); iter = iter.Next() { - var val *url.URL - val, err = ToId(iter) - if err != nil { - return - } - r = append(r, val) - } - } - // 1. When an object is being delivered to the originating actor's - // followers, a server MAY reduce the number of receiving actors - // delivered to by identifying all followers which share the same - // sharedInbox who would otherwise be individual recipients and - // instead deliver objects to said sharedInbox. - // 2. If an object is addressed to the Public special collection, a - // server MAY deliver that object to all known sharedInbox endpoints - // on the network. - r = filterURLs(r, IsPublic) - t, err := a.common.NewTransport(c, outboxIRI, goFedUserAgent()) - if err != nil { - return nil, err - } - receiverActors, err := a.resolveInboxes(c, t, r, 0, a.s2s.MaxDeliveryRecursionDepth(c)) - if err != nil { - return nil, err - } - targets, err := getInboxes(receiverActors) - if err != nil { - return nil, err - } - // Get inboxes of sender. - err = a.db.Lock(c, outboxIRI) - if err != nil { - return - } - // WARNING: No deferring the Unlock - actorIRI, err := a.db.ActorForOutbox(c, outboxIRI) - if err != nil { - a.db.Unlock(c, outboxIRI) - return - } - a.db.Unlock(c, outboxIRI) - // Get the inbox on the sender. - err = a.db.Lock(c, actorIRI) - if err != nil { - return nil, err - } - // BEGIN LOCK - thisActor, err := a.db.Get(c, actorIRI) - a.db.Unlock(c, actorIRI) - // END LOCK -- Still need to handle err - if err != nil { - return nil, err - } - // Post-processing - var ignore *url.URL - ignore, err = getInbox(thisActor) - if err != nil { - return nil, err - } - r = dedupeIRIs(targets, []*url.URL{ignore}) - stripHiddenRecipients(activity) - return r, nil -} - -// resolveInboxes takes a list of Actor id URIs and returns them as concrete -// instances of actorObject. It attempts to apply recursively when it encounters -// a target that is a Collection or OrderedCollection. -// -// If maxDepth is zero or negative, then recursion is infinitely applied. -// -// If a recipient is a Collection or OrderedCollection, then the server MUST -// dereference the collection, WITH the user's credentials. -// -// Note that this also applies to CollectionPage and OrderedCollectionPage. -func (a *sideEffectActor) resolveInboxes(c context.Context, t Transport, r []*url.URL, depth, maxDepth int) (actors []vocab.Type, err error) { - if maxDepth > 0 && depth >= maxDepth { - return - } - for _, u := range r { - var act vocab.Type - var more []*url.URL - // TODO: Determine if more logic is needed here for inaccessible - // collections owned by peer servers. - act, more, err = a.dereferenceForResolvingInboxes(c, t, u) - if err != nil { - // Missing recipient -- skip. - continue - } - var recurActors []vocab.Type - recurActors, err = a.resolveInboxes(c, t, more, depth+1, maxDepth) - if err != nil { - return - } - if act != nil { - actors = append(actors, act) - } - actors = append(actors, recurActors...) - } - return -} - -// dereferenceForResolvingInboxes dereferences an IRI solely for finding an -// actor's inbox IRI to deliver to. -// -// The returned actor could be nil, if it wasn't an actor (ex: a Collection or -// OrderedCollection). -func (a *sideEffectActor) dereferenceForResolvingInboxes(c context.Context, t Transport, actorIRI *url.URL) (actor vocab.Type, moreActorIRIs []*url.URL, err error) { - var resp []byte - resp, err = t.Dereference(c, actorIRI) - if err != nil { - return - } - var m map[string]interface{} - if err = json.Unmarshal(resp, &m); err != nil { - return - } - actor, err = streams.ToType(c, m) - if err != nil { - return - } - // Attempt to see if the 'actor' is really some sort of type that has - // an 'items' or 'orderedItems' property. - if v, ok := actor.(itemser); ok { - if i := v.GetActivityStreamsItems(); i != nil { - for iter := i.Begin(); iter != i.End(); iter = iter.Next() { - var id *url.URL - id, err = ToId(iter) - if err != nil { - return - } - moreActorIRIs = append(moreActorIRIs, id) - } - } - actor = nil - } else if v, ok := actor.(orderedItemser); ok { - if i := v.GetActivityStreamsOrderedItems(); i != nil { - for iter := i.Begin(); iter != i.End(); iter = iter.Next() { - var id *url.URL - id, err = ToId(iter) - if err != nil { - return - } - moreActorIRIs = append(moreActorIRIs, id) - } - } - actor = nil - } - return -} diff --git a/vendor/github.com/go-fed/activity/pub/social_protocol.go b/vendor/github.com/go-fed/activity/pub/social_protocol.go deleted file mode 100644 index 7b7862c66..000000000 --- a/vendor/github.com/go-fed/activity/pub/social_protocol.go +++ /dev/null @@ -1,82 +0,0 @@ -package pub - -import ( - "context" - "github.com/go-fed/activity/streams/vocab" - "net/http" -) - -// SocialProtocol contains behaviors an application needs to satisfy for the -// full ActivityPub C2S implementation to be supported by this library. -// -// It is only required if the client application wants to support the client-to- -// server, or social, protocol. -// -// It is passed to the library as a dependency injection from the client -// application. -type SocialProtocol interface { - // Hook callback after parsing the request body for a client request - // to the Actor's outbox. - // - // Can be used to set contextual information based on the - // ActivityStreams object received. - // - // Only called if the Social API is enabled. - // - // Warning: Neither authentication nor authorization has taken place at - // this time. Doing anything beyond setting contextual information is - // strongly discouraged. - // - // If an error is returned, it is passed back to the caller of - // PostOutbox. In this case, the DelegateActor implementation must not - // write a response to the ResponseWriter as is expected that the caller - // to PostOutbox will do so when handling the error. - PostOutboxRequestBodyHook(c context.Context, r *http.Request, data vocab.Type) (context.Context, error) - // AuthenticatePostOutbox delegates the authentication of a POST to an - // outbox. - // - // Only called if the Social API is enabled. - // - // If an error is returned, it is passed back to the caller of - // PostOutbox. In this case, the implementation must not write a - // response to the ResponseWriter as is expected that the client will - // do so when handling the error. The 'authenticated' is ignored. - // - // If no error is returned, but authentication or authorization fails, - // then authenticated must be false and error nil. It is expected that - // the implementation handles writing to the ResponseWriter in this - // case. - // - // Finally, if the authentication and authorization succeeds, then - // authenticated must be true and error nil. The request will continue - // to be processed. - AuthenticatePostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) - // SocialCallbacks returns the application logic that handles - // ActivityStreams received from C2S clients. - // - // Note that certain types of callbacks will be 'wrapped' with default - // behaviors supported natively by the library. Other callbacks - // compatible with streams.TypeResolver can be specified by 'other'. - // - // For example, setting the 'Create' field in the SocialWrappedCallbacks - // lets an application dependency inject additional behaviors they want - // to take place, including the default behavior supplied by this - // library. This is guaranteed to be compliant with the ActivityPub - // Social protocol. - // - // To override the default behavior, instead supply the function in - // 'other', which does not guarantee the application will be compliant - // with the ActivityPub Social Protocol. - // - // Applications are not expected to handle every single ActivityStreams - // type and extension. The unhandled ones are passed to DefaultCallback. - SocialCallbacks(c context.Context) (wrapped SocialWrappedCallbacks, other []interface{}, err error) - // DefaultCallback is called for types that go-fed can deserialize but - // are not handled by the application's callbacks returned in the - // Callbacks method. - // - // Applications are not expected to handle every single ActivityStreams - // type and extension, so the unhandled ones are passed to - // DefaultCallback. - DefaultCallback(c context.Context, activity Activity) error -} diff --git a/vendor/github.com/go-fed/activity/pub/social_wrapped_callbacks.go b/vendor/github.com/go-fed/activity/pub/social_wrapped_callbacks.go deleted file mode 100644 index b4b1204e2..000000000 --- a/vendor/github.com/go-fed/activity/pub/social_wrapped_callbacks.go +++ /dev/null @@ -1,531 +0,0 @@ -package pub - -import ( - "context" - "fmt" - "github.com/go-fed/activity/streams" - "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// SocialWrappedCallbacks lists the callback functions that already have some -// side effect behavior provided by the pub library. -// -// These functions are wrapped for the Social Protocol. -type SocialWrappedCallbacks struct { - // Create handles additional side effects for the Create ActivityStreams - // type. - // - // The wrapping callback copies the actor(s) to the 'attributedTo' - // property and copies recipients between the Create activity and all - // objects. It then saves the entry in the database. - Create func(context.Context, vocab.ActivityStreamsCreate) error - // Update handles additional side effects for the Update ActivityStreams - // type. - // - // The wrapping callback applies new top-level values on an object to - // the stored objects. Any top-level null literals will be deleted on - // the stored objects as well. - Update func(context.Context, vocab.ActivityStreamsUpdate) error - // Delete handles additional side effects for the Delete ActivityStreams - // type. - // - // The wrapping callback replaces the object(s) with tombstones in the - // database. - Delete func(context.Context, vocab.ActivityStreamsDelete) error - // Follow handles additional side effects for the Follow ActivityStreams - // type. - // - // The wrapping callback only ensures the 'Follow' has at least one - // 'object' entry, but otherwise has no default side effect. - Follow func(context.Context, vocab.ActivityStreamsFollow) error - // Add handles additional side effects for the Add ActivityStreams - // type. - // - // - // The wrapping function will add the 'object' IRIs to a specific - // 'target' collection if the 'target' collection(s) live on this - // server. - Add func(context.Context, vocab.ActivityStreamsAdd) error - // Remove handles additional side effects for the Remove ActivityStreams - // type. - // - // The wrapping function will remove all 'object' IRIs from a specific - // 'target' collection if the 'target' collection(s) live on this - // server. - Remove func(context.Context, vocab.ActivityStreamsRemove) error - // Like handles additional side effects for the Like ActivityStreams - // type. - // - // The wrapping function will add the objects on the activity to the - // "liked" collection of this actor. - Like func(context.Context, vocab.ActivityStreamsLike) error - // Undo handles additional side effects for the Undo ActivityStreams - // type. - // - // - // The wrapping function ensures the 'actor' on the 'Undo' - // is be the same as the 'actor' on all Activities being undone. - // It enforces that the actors on the Undo must correspond to all of the - // 'object' actors in some manner. - // - // It is expected that the application will implement the proper - // reversal of activities that are being undone. - Undo func(context.Context, vocab.ActivityStreamsUndo) error - // Block handles additional side effects for the Block ActivityStreams - // type. - // - // The wrapping callback only ensures the 'Block' has at least one - // 'object' entry, but otherwise has no default side effect. It is up - // to the wrapped application function to properly enforce the new - // blocking behavior. - // - // Note that go-fed does not federate 'Block' activities received in the - // Social Protocol. - Block func(context.Context, vocab.ActivityStreamsBlock) error - - // Sidechannel data -- this is set at request handling time. These must - // be set before the callbacks are used. - - // db is the Database the SocialWrappedCallbacks should use. It must be - // set before calling the callbacks. - db Database - // outboxIRI is the outboxIRI that is handling this callback. - outboxIRI *url.URL - // rawActivity is the JSON map literal received when deserializing the - // request body. - rawActivity map[string]interface{} - // clock is the server's clock. - clock Clock - // newTransport creates a new Transport. - newTransport func(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error) - // undeliverable is a sidechannel out, indicating if the handled activity - // should not be delivered to a peer. - // - // Its provided default value will always be used when a custom function - // is called. - undeliverable *bool -} - -// callbacks returns the WrappedCallbacks members into a single interface slice -// for use in streams.Resolver callbacks. -// -// If the given functions have a type that collides with the default behavior, -// then disable our default behavior -func (w SocialWrappedCallbacks) callbacks(fns []interface{}) []interface{} { - enableCreate := true - enableUpdate := true - enableDelete := true - enableFollow := true - enableAdd := true - enableRemove := true - enableLike := true - enableUndo := true - enableBlock := true - for _, fn := range fns { - switch fn.(type) { - default: - continue - case func(context.Context, vocab.ActivityStreamsCreate) error: - enableCreate = false - case func(context.Context, vocab.ActivityStreamsUpdate) error: - enableUpdate = false - case func(context.Context, vocab.ActivityStreamsDelete) error: - enableDelete = false - case func(context.Context, vocab.ActivityStreamsFollow) error: - enableFollow = false - case func(context.Context, vocab.ActivityStreamsAdd) error: - enableAdd = false - case func(context.Context, vocab.ActivityStreamsRemove) error: - enableRemove = false - case func(context.Context, vocab.ActivityStreamsLike) error: - enableLike = false - case func(context.Context, vocab.ActivityStreamsUndo) error: - enableUndo = false - case func(context.Context, vocab.ActivityStreamsBlock) error: - enableBlock = false - } - } - if enableCreate { - fns = append(fns, w.create) - } - if enableUpdate { - fns = append(fns, w.update) - } - if enableDelete { - fns = append(fns, w.deleteFn) - } - if enableFollow { - fns = append(fns, w.follow) - } - if enableAdd { - fns = append(fns, w.add) - } - if enableRemove { - fns = append(fns, w.remove) - } - if enableLike { - fns = append(fns, w.like) - } - if enableUndo { - fns = append(fns, w.undo) - } - if enableBlock { - fns = append(fns, w.block) - } - return fns -} - -// create implements the social Create activity side effects. -func (w SocialWrappedCallbacks) create(c context.Context, a vocab.ActivityStreamsCreate) error { - *w.undeliverable = false - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - // Obtain all actor IRIs. - actors := a.GetActivityStreamsActor() - createActorIds := make(map[string]*url.URL) - if actors != nil { - createActorIds = make(map[string]*url.URL, actors.Len()) - for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - createActorIds[id.String()] = id - } - } - // Obtain each object's 'attributedTo' IRIs. - objectAttributedToIds := make([]map[string]*url.URL, op.Len()) - for i := range objectAttributedToIds { - objectAttributedToIds[i] = make(map[string]*url.URL) - } - for i := 0; i < op.Len(); i++ { - t := op.At(i).GetType() - attrToer, ok := t.(attributedToer) - if !ok { - continue - } - attr := attrToer.GetActivityStreamsAttributedTo() - if attr == nil { - attr = streams.NewActivityStreamsAttributedToProperty() - attrToer.SetActivityStreamsAttributedTo(attr) - } - for iter := attr.Begin(); iter != attr.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - objectAttributedToIds[i][id.String()] = id - } - } - // Put all missing actor IRIs onto all object attributedTo properties. - for k, v := range createActorIds { - for i, attributedToMap := range objectAttributedToIds { - if _, ok := attributedToMap[k]; !ok { - t := op.At(i).GetType() - attrToer, ok := t.(attributedToer) - if !ok { - continue - } - attr := attrToer.GetActivityStreamsAttributedTo() - attr.AppendIRI(v) - } - } - } - // Put all missing object attributedTo IRIs onto the actor property - // if there is one. - if actors != nil { - for _, attributedToMap := range objectAttributedToIds { - for k, v := range attributedToMap { - if _, ok := createActorIds[k]; !ok { - actors.AppendIRI(v) - } - } - } - } - // Copy over the 'to', 'bto', 'cc', 'bcc', and 'audience' recipients - // between the activity and all child objects and vice versa. - if err := normalizeRecipients(a); err != nil { - return err - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(i int) error { - obj := op.At(i).GetType() - id, err := GetId(obj) - if err != nil { - return err - } - err = w.db.Lock(c, id) - if err != nil { - return err - } - defer w.db.Unlock(c, id) - if err := w.db.Create(c, obj); err != nil { - return err - } - return nil - } - // Persist all objects we've created, which will include sensitive - // recipients such as 'bcc' and 'bto'. - for i := 0; i < op.Len(); i++ { - if err := loopFn(i); err != nil { - return err - } - } - if w.Create != nil { - return w.Create(c, a) - } - return nil -} - -// update implements the social Update activity side effects. -func (w SocialWrappedCallbacks) update(c context.Context, a vocab.ActivityStreamsUpdate) error { - *w.undeliverable = false - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - // Obtain all object ids, which should be owned by this server. - objIds := make([]*url.URL, 0, op.Len()) - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - objIds = append(objIds, id) - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(idx int, loopId *url.URL) error { - err := w.db.Lock(c, loopId) - if err != nil { - return err - } - defer w.db.Unlock(c, loopId) - t, err := w.db.Get(c, loopId) - if err != nil { - return err - } - m, err := t.Serialize() - if err != nil { - return err - } - // Copy over new top-level values. - objType := op.At(idx).GetType() - if objType == nil { - return fmt.Errorf("object at index %d is not a literal type value", idx) - } - newM, err := objType.Serialize() - if err != nil { - return err - } - for k, v := range newM { - m[k] = v - } - // Delete top-level values where the raw Activity had nils. - for k, v := range w.rawActivity { - if _, ok := m[k]; v == nil && ok { - delete(m, k) - } - } - newT, err := streams.ToType(c, m) - if err != nil { - return err - } - if err = w.db.Update(c, newT); err != nil { - return err - } - return nil - } - for i, id := range objIds { - if err := loopFn(i, id); err != nil { - return err - } - } - if w.Update != nil { - return w.Update(c, a) - } - return nil -} - -// deleteFn implements the social Delete activity side effects. -func (w SocialWrappedCallbacks) deleteFn(c context.Context, a vocab.ActivityStreamsDelete) error { - *w.undeliverable = false - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - // Obtain all object ids, which should be owned by this server. - objIds := make([]*url.URL, 0, op.Len()) - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - objIds = append(objIds, id) - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(idx int, loopId *url.URL) error { - err := w.db.Lock(c, loopId) - if err != nil { - return err - } - defer w.db.Unlock(c, loopId) - t, err := w.db.Get(c, loopId) - if err != nil { - return err - } - tomb := toTombstone(t, loopId, w.clock.Now()) - if err := w.db.Update(c, tomb); err != nil { - return err - } - return nil - } - for i, id := range objIds { - if err := loopFn(i, id); err != nil { - return err - } - } - if w.Delete != nil { - return w.Delete(c, a) - } - return nil -} - -// follow implements the social Follow activity side effects. -func (w SocialWrappedCallbacks) follow(c context.Context, a vocab.ActivityStreamsFollow) error { - *w.undeliverable = false - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - if w.Follow != nil { - return w.Follow(c, a) - } - return nil -} - -// add implements the social Add activity side effects. -func (w SocialWrappedCallbacks) add(c context.Context, a vocab.ActivityStreamsAdd) error { - *w.undeliverable = false - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - target := a.GetActivityStreamsTarget() - if target == nil || target.Len() == 0 { - return ErrTargetRequired - } - if err := add(c, op, target, w.db); err != nil { - return err - } - if w.Add != nil { - return w.Add(c, a) - } - return nil -} - -// remove implements the social Remove activity side effects. -func (w SocialWrappedCallbacks) remove(c context.Context, a vocab.ActivityStreamsRemove) error { - *w.undeliverable = false - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - target := a.GetActivityStreamsTarget() - if target == nil || target.Len() == 0 { - return ErrTargetRequired - } - if err := remove(c, op, target, w.db); err != nil { - return err - } - if w.Remove != nil { - return w.Remove(c, a) - } - return nil -} - -// like implements the social Like activity side effects. -func (w SocialWrappedCallbacks) like(c context.Context, a vocab.ActivityStreamsLike) error { - *w.undeliverable = false - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - // Get this actor's IRI. - if err := w.db.Lock(c, w.outboxIRI); err != nil { - return err - } - // WARNING: Unlock not deferred. - actorIRI, err := w.db.ActorForOutbox(c, w.outboxIRI) - if err != nil { - w.db.Unlock(c, w.outboxIRI) - return err - } - w.db.Unlock(c, w.outboxIRI) - // Unlock must be called by now and every branch above. - // - // Now obtain this actor's 'liked' collection. - if err := w.db.Lock(c, actorIRI); err != nil { - return err - } - defer w.db.Unlock(c, actorIRI) - liked, err := w.db.Liked(c, actorIRI) - if err != nil { - return err - } - likedItems := liked.GetActivityStreamsItems() - if likedItems == nil { - likedItems = streams.NewActivityStreamsItemsProperty() - liked.SetActivityStreamsItems(likedItems) - } - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - objId, err := ToId(iter) - if err != nil { - return err - } - likedItems.PrependIRI(objId) - } - err = w.db.Update(c, liked) - if err != nil { - return err - } - if w.Like != nil { - return w.Like(c, a) - } - return nil -} - -// undo implements the social Undo activity side effects. -func (w SocialWrappedCallbacks) undo(c context.Context, a vocab.ActivityStreamsUndo) error { - *w.undeliverable = false - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - actors := a.GetActivityStreamsActor() - if err := mustHaveActivityActorsMatchObjectActors(c, actors, op, w.newTransport, w.outboxIRI); err != nil { - return err - } - if w.Undo != nil { - return w.Undo(c, a) - } - return nil -} - -// block implements the social Block activity side effects. -func (w SocialWrappedCallbacks) block(c context.Context, a vocab.ActivityStreamsBlock) error { - *w.undeliverable = true - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return ErrObjectRequired - } - if w.Block != nil { - return w.Block(c, a) - } - return nil -} diff --git a/vendor/github.com/go-fed/activity/pub/transport.go b/vendor/github.com/go-fed/activity/pub/transport.go deleted file mode 100644 index bdc58a97a..000000000 --- a/vendor/github.com/go-fed/activity/pub/transport.go +++ /dev/null @@ -1,207 +0,0 @@ -package pub - -import ( - "bytes" - "context" - "crypto" - "fmt" - "io/ioutil" - "net/http" - "net/url" - "strings" - "sync" - - "github.com/go-fed/httpsig" -) - -const ( - // acceptHeaderValue is the Accept header value indicating that the - // response should contain an ActivityStreams object. - acceptHeaderValue = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"" -) - -// isSuccess returns true if the HTTP status code is either OK, Created, or -// Accepted. -func isSuccess(code int) bool { - return code == http.StatusOK || - code == http.StatusCreated || - code == http.StatusAccepted -} - -// Transport makes ActivityStreams calls to other servers in order to send or -// receive ActivityStreams data. -// -// It is responsible for setting the appropriate request headers, signing the -// requests if needed, and facilitating the traffic between this server and -// another. -// -// The transport is exclusively used to issue requests on behalf of an actor, -// and is never sending requests on behalf of the server in general. -// -// It may be reused multiple times, but never concurrently. -type Transport interface { - // Dereference fetches the ActivityStreams object located at this IRI - // with a GET request. - Dereference(c context.Context, iri *url.URL) ([]byte, error) - // Deliver sends an ActivityStreams object. - Deliver(c context.Context, b []byte, to *url.URL) error - // BatchDeliver sends an ActivityStreams object to multiple recipients. - BatchDeliver(c context.Context, b []byte, recipients []*url.URL) error -} - -// Transport must be implemented by HttpSigTransport. -var _ Transport = &HttpSigTransport{} - -// HttpSigTransport makes a dereference call using HTTP signatures to -// authenticate the request on behalf of a particular actor. -// -// No rate limiting is applied. -// -// Only one request is tried per call. -type HttpSigTransport struct { - client HttpClient - appAgent string - gofedAgent string - clock Clock - getSigner httpsig.Signer - getSignerMu *sync.Mutex - postSigner httpsig.Signer - postSignerMu *sync.Mutex - pubKeyId string - privKey crypto.PrivateKey -} - -// NewHttpSigTransport returns a new Transport. -// -// It sends requests specifically on behalf of a specific actor on this server. -// The actor's credentials are used to add an HTTP Signature to requests, which -// requires an actor's private key, a unique identifier for their public key, -// and an HTTP Signature signing algorithm. -// -// The client lets users issue requests through any HTTP client, including the -// standard library's HTTP client. -// -// The appAgent uniquely identifies the calling application's requests, so peers -// may aid debugging the requests incoming from this server. Note that the -// agent string will also include one for go-fed, so at minimum peer servers can -// reach out to the go-fed library to aid in notifying implementors of malformed -// or unsupported requests. -func NewHttpSigTransport( - client HttpClient, - appAgent string, - clock Clock, - getSigner, postSigner httpsig.Signer, - pubKeyId string, - privKey crypto.PrivateKey) *HttpSigTransport { - return &HttpSigTransport{ - client: client, - appAgent: appAgent, - gofedAgent: goFedUserAgent(), - clock: clock, - getSigner: getSigner, - getSignerMu: &sync.Mutex{}, - postSigner: postSigner, - postSignerMu: &sync.Mutex{}, - pubKeyId: pubKeyId, - privKey: privKey, - } -} - -// Dereference sends a GET request signed with an HTTP Signature to obtain an -// ActivityStreams value. -func (h HttpSigTransport) Dereference(c context.Context, iri *url.URL) ([]byte, error) { - req, err := http.NewRequest("GET", iri.String(), nil) - if err != nil { - return nil, err - } - req = req.WithContext(c) - req.Header.Add(acceptHeader, acceptHeaderValue) - req.Header.Add("Accept-Charset", "utf-8") - req.Header.Add("Date", h.clock.Now().UTC().Format("Mon, 02 Jan 2006 15:04:05")+" GMT") - req.Header.Add("User-Agent", fmt.Sprintf("%s %s", h.appAgent, h.gofedAgent)) - req.Header.Set("Host", iri.Host) - h.getSignerMu.Lock() - err = h.getSigner.SignRequest(h.privKey, h.pubKeyId, req, nil) - h.getSignerMu.Unlock() - if err != nil { - return nil, err - } - resp, err := h.client.Do(req) - if err != nil { - return nil, err - } - defer resp.Body.Close() - if resp.StatusCode != http.StatusOK { - return nil, fmt.Errorf("GET request to %s failed (%d): %s", iri.String(), resp.StatusCode, resp.Status) - } - return ioutil.ReadAll(resp.Body) -} - -// Deliver sends a POST request with an HTTP Signature. -func (h HttpSigTransport) Deliver(c context.Context, b []byte, to *url.URL) error { - req, err := http.NewRequest("POST", to.String(), bytes.NewReader(b)) - if err != nil { - return err - } - req = req.WithContext(c) - req.Header.Add(contentTypeHeader, contentTypeHeaderValue) - req.Header.Add("Accept-Charset", "utf-8") - req.Header.Add("Date", h.clock.Now().UTC().Format("Mon, 02 Jan 2006 15:04:05")+" GMT") - req.Header.Add("User-Agent", fmt.Sprintf("%s %s", h.appAgent, h.gofedAgent)) - req.Header.Set("Host", to.Host) - h.postSignerMu.Lock() - err = h.postSigner.SignRequest(h.privKey, h.pubKeyId, req, b) - h.postSignerMu.Unlock() - if err != nil { - return err - } - resp, err := h.client.Do(req) - if err != nil { - return err - } - defer resp.Body.Close() - if !isSuccess(resp.StatusCode) { - return fmt.Errorf("POST request to %s failed (%d): %s", to.String(), resp.StatusCode, resp.Status) - } - return nil -} - -// BatchDeliver sends concurrent POST requests. Returns an error if any of the -// requests had an error. -func (h HttpSigTransport) BatchDeliver(c context.Context, b []byte, recipients []*url.URL) error { - var wg sync.WaitGroup - errCh := make(chan error, len(recipients)) - for _, recipient := range recipients { - wg.Add(1) - go func(r *url.URL) { - defer wg.Done() - if err := h.Deliver(c, b, r); err != nil { - errCh <- err - } - }(recipient) - } - wg.Wait() - errs := make([]string, 0, len(recipients)) -outer: - for { - select { - case e := <-errCh: - errs = append(errs, e.Error()) - default: - break outer - } - } - if len(errs) > 0 { - return fmt.Errorf("batch deliver had at least one failure: %s", strings.Join(errs, "; ")) - } - return nil -} - -// HttpClient sends http requests, and is an abstraction only needed by the -// HttpSigTransport. The standard library's Client satisfies this interface. -type HttpClient interface { - Do(req *http.Request) (*http.Response, error) -} - -// HttpClient must be implemented by http.Client. -var _ HttpClient = &http.Client{} diff --git a/vendor/github.com/go-fed/activity/pub/util.go b/vendor/github.com/go-fed/activity/pub/util.go deleted file mode 100644 index 942e937dc..000000000 --- a/vendor/github.com/go-fed/activity/pub/util.go +++ /dev/null @@ -1,995 +0,0 @@ -package pub - -import ( - "bytes" - "context" - "crypto/sha256" - "encoding/base64" - "encoding/json" - "errors" - "fmt" - "github.com/go-fed/activity/streams" - "github.com/go-fed/activity/streams/vocab" - "net/http" - "net/url" - "strings" - "time" -) - -var ( - // ErrObjectRequired indicates the activity needs its object property - // set. Can be returned by DelegateActor's PostInbox or PostOutbox so a - // Bad Request response is set. - ErrObjectRequired = errors.New("object property required on the provided activity") - // ErrTargetRequired indicates the activity needs its target property - // set. Can be returned by DelegateActor's PostInbox or PostOutbox so a - // Bad Request response is set. - ErrTargetRequired = errors.New("target property required on the provided activity") -) - -// activityStreamsMediaTypes contains all of the accepted ActivityStreams media -// types. Generated at init time. -var activityStreamsMediaTypes []string - -func init() { - activityStreamsMediaTypes = []string{ - "application/activity+json", - } - jsonLdType := "application/ld+json" - for _, semi := range []string{";", " ;", " ; ", "; "} { - for _, profile := range []string{ - "profile=https://www.w3.org/ns/activitystreams", - "profile=\"https://www.w3.org/ns/activitystreams\"", - } { - activityStreamsMediaTypes = append( - activityStreamsMediaTypes, - fmt.Sprintf("%s%s%s", jsonLdType, semi, profile)) - } - } -} - -// headerIsActivityPubMediaType returns true if the header string contains one -// of the accepted ActivityStreams media types. -// -// Note we don't try to build a comprehensive parser and instead accept a -// tolerable amount of whitespace since the HTTP specification is ambiguous -// about the format and significance of whitespace. -func headerIsActivityPubMediaType(header string) bool { - for _, mediaType := range activityStreamsMediaTypes { - if strings.Contains(header, mediaType) { - return true - } - } - return false -} - -const ( - // The Content-Type header. - contentTypeHeader = "Content-Type" - // The Accept header. - acceptHeader = "Accept" -) - -// isActivityPubPost returns true if the request is a POST request that has the -// ActivityStreams content type header -func isActivityPubPost(r *http.Request) bool { - return r.Method == "POST" && headerIsActivityPubMediaType(r.Header.Get(contentTypeHeader)) -} - -// isActivityPubGet returns true if the request is a GET request that has the -// ActivityStreams content type header -func isActivityPubGet(r *http.Request) bool { - return r.Method == "GET" && headerIsActivityPubMediaType(r.Header.Get(acceptHeader)) -} - -// dedupeOrderedItems deduplicates the 'orderedItems' within an ordered -// collection type. Deduplication happens by the 'id' property. -func dedupeOrderedItems(oc orderedItemser) error { - oi := oc.GetActivityStreamsOrderedItems() - if oi == nil { - return nil - } - seen := make(map[string]bool, oi.Len()) - for i := 0; i < oi.Len(); { - var id *url.URL - - iter := oi.At(i) - asType := iter.GetType() - if asType != nil { - var err error - id, err = GetId(asType) - if err != nil { - return err - } - } else if iter.IsIRI() { - id = iter.GetIRI() - } else { - return fmt.Errorf("element %d in OrderedCollection does not have an ID nor is an IRI", i) - } - if seen[id.String()] { - oi.Remove(i) - } else { - seen[id.String()] = true - i++ - } - } - return nil -} - -const ( - // The Location header - locationHeader = "Location" - // Contains the ActivityStreams Content-Type value. - contentTypeHeaderValue = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"" - // The Date header. - dateHeader = "Date" - // The Digest header. - digestHeader = "Digest" - // The delimiter used in the Digest header. - digestDelimiter = "=" - // SHA-256 string for the Digest header. - sha256Digest = "SHA-256" -) - -// addResponseHeaders sets headers needed in the HTTP response, such but not -// limited to the Content-Type, Date, and Digest headers. -func addResponseHeaders(h http.Header, c Clock, responseContent []byte) { - h.Set(contentTypeHeader, contentTypeHeaderValue) - // RFC 7231 §7.1.1.2 - h.Set(dateHeader, c.Now().UTC().Format("Mon, 02 Jan 2006 15:04:05")+" GMT") - // RFC 3230 and RFC 5843 - var b bytes.Buffer - b.WriteString(sha256Digest) - b.WriteString(digestDelimiter) - hashed := sha256.Sum256(responseContent) - b.WriteString(base64.StdEncoding.EncodeToString(hashed[:])) - h.Set(digestHeader, b.String()) -} - -// IdProperty is a property that can readily have its id obtained -type IdProperty interface { - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() vocab.Type - // IsIRI returns true if this property is an IRI. - IsIRI() bool -} - -// ToId returns an IdProperty's id. -func ToId(i IdProperty) (*url.URL, error) { - if i.GetType() != nil { - return GetId(i.GetType()) - } else if i.IsIRI() { - return i.GetIRI(), nil - } - return nil, fmt.Errorf("cannot determine id of activitystreams property") -} - -// GetId will attempt to find the 'id' property or, if it happens to be a -// Link or derived from Link type, the 'href' property instead. -// -// Returns an error if the id is not set and either the 'href' property is not -// valid on this type, or it is also not set. -func GetId(t vocab.Type) (*url.URL, error) { - if id := t.GetJSONLDId(); id != nil { - return id.Get(), nil - } else if h, ok := t.(hrefer); ok { - if href := h.GetActivityStreamsHref(); href != nil { - return href.Get(), nil - } - } - return nil, fmt.Errorf("cannot determine id of activitystreams value") -} - -// getInboxForwardingValues obtains the 'inReplyTo', 'object', 'target', and -// 'tag' values on an ActivityStreams value. -func getInboxForwardingValues(o vocab.Type) (t []vocab.Type, iri []*url.URL) { - // 'inReplyTo' - if i, ok := o.(inReplyToer); ok { - if irt := i.GetActivityStreamsInReplyTo(); irt != nil { - for iter := irt.Begin(); iter != irt.End(); iter = iter.Next() { - if tv := iter.GetType(); tv != nil { - t = append(t, tv) - } else { - iri = append(iri, iter.GetIRI()) - } - } - } - } - // 'tag' - if i, ok := o.(tagger); ok { - if tag := i.GetActivityStreamsTag(); tag != nil { - for iter := tag.Begin(); iter != tag.End(); iter = iter.Next() { - if tv := iter.GetType(); tv != nil { - t = append(t, tv) - } else { - iri = append(iri, iter.GetIRI()) - } - } - } - } - // 'object' - if i, ok := o.(objecter); ok { - if obj := i.GetActivityStreamsObject(); obj != nil { - for iter := obj.Begin(); iter != obj.End(); iter = iter.Next() { - if tv := iter.GetType(); tv != nil { - t = append(t, tv) - } else { - iri = append(iri, iter.GetIRI()) - } - } - } - } - // 'target' - if i, ok := o.(targeter); ok { - if tar := i.GetActivityStreamsTarget(); tar != nil { - for iter := tar.Begin(); iter != tar.End(); iter = iter.Next() { - if tv := iter.GetType(); tv != nil { - t = append(t, tv) - } else { - iri = append(iri, iter.GetIRI()) - } - } - } - } - return -} - -// wrapInCreate will automatically wrap the provided object in a Create -// activity. This will copy over the 'to', 'bto', 'cc', 'bcc', and 'audience' -// properties. It will also copy over the published time if present. -func wrapInCreate(ctx context.Context, o vocab.Type, actor *url.URL) (c vocab.ActivityStreamsCreate, err error) { - c = streams.NewActivityStreamsCreate() - // Object property - oProp := streams.NewActivityStreamsObjectProperty() - oProp.AppendType(o) - c.SetActivityStreamsObject(oProp) - // Actor Property - actorProp := streams.NewActivityStreamsActorProperty() - actorProp.AppendIRI(actor) - c.SetActivityStreamsActor(actorProp) - // Published Property - if v, ok := o.(publisheder); ok { - c.SetActivityStreamsPublished(v.GetActivityStreamsPublished()) - } - // Copying over properties. - if v, ok := o.(toer); ok { - if to := v.GetActivityStreamsTo(); to != nil { - activityTo := streams.NewActivityStreamsToProperty() - for iter := to.Begin(); iter != to.End(); iter = iter.Next() { - var id *url.URL - id, err = ToId(iter) - if err != nil { - return - } - activityTo.AppendIRI(id) - } - c.SetActivityStreamsTo(activityTo) - } - } - if v, ok := o.(btoer); ok { - if bto := v.GetActivityStreamsBto(); bto != nil { - activityBto := streams.NewActivityStreamsBtoProperty() - for iter := bto.Begin(); iter != bto.End(); iter = iter.Next() { - var id *url.URL - id, err = ToId(iter) - if err != nil { - return - } - activityBto.AppendIRI(id) - } - c.SetActivityStreamsBto(activityBto) - } - } - if v, ok := o.(ccer); ok { - if cc := v.GetActivityStreamsCc(); cc != nil { - activityCc := streams.NewActivityStreamsCcProperty() - for iter := cc.Begin(); iter != cc.End(); iter = iter.Next() { - var id *url.URL - id, err = ToId(iter) - if err != nil { - return - } - activityCc.AppendIRI(id) - } - c.SetActivityStreamsCc(activityCc) - } - } - if v, ok := o.(bccer); ok { - if bcc := v.GetActivityStreamsBcc(); bcc != nil { - activityBcc := streams.NewActivityStreamsBccProperty() - for iter := bcc.Begin(); iter != bcc.End(); iter = iter.Next() { - var id *url.URL - id, err = ToId(iter) - if err != nil { - return - } - activityBcc.AppendIRI(id) - } - c.SetActivityStreamsBcc(activityBcc) - } - } - if v, ok := o.(audiencer); ok { - if aud := v.GetActivityStreamsAudience(); aud != nil { - activityAudience := streams.NewActivityStreamsAudienceProperty() - for iter := aud.Begin(); iter != aud.End(); iter = iter.Next() { - var id *url.URL - id, err = ToId(iter) - if err != nil { - return - } - activityAudience.AppendIRI(id) - } - c.SetActivityStreamsAudience(activityAudience) - } - } - return -} - -// filterURLs removes urls whose strings match the provided filter -func filterURLs(u []*url.URL, fn func(s string) bool) []*url.URL { - i := 0 - for i < len(u) { - if fn(u[i].String()) { - u = append(u[:i], u[i+1:]...) - } else { - i++ - } - } - return u -} - -const ( - // PublicActivityPubIRI is the IRI that indicates an Activity is meant - // to be visible for general public consumption. - PublicActivityPubIRI = "https://www.w3.org/ns/activitystreams#Public" - publicJsonLD = "Public" - publicJsonLDAS = "as:Public" -) - -// IsPublic determines if an IRI string is the Public collection as defined in -// the spec, including JSON-LD compliant collections. -func IsPublic(s string) bool { - return s == PublicActivityPubIRI || s == publicJsonLD || s == publicJsonLDAS -} - -// getInboxes extracts the 'inbox' IRIs from actor types. -func getInboxes(t []vocab.Type) (u []*url.URL, err error) { - for _, elem := range t { - var iri *url.URL - iri, err = getInbox(elem) - if err != nil { - return - } - u = append(u, iri) - } - return -} - -// getInbox extracts the 'inbox' IRI from an actor type. -func getInbox(t vocab.Type) (u *url.URL, err error) { - ib, ok := t.(inboxer) - if !ok { - err = fmt.Errorf("actor type %T has no inbox", t) - return - } - inbox := ib.GetActivityStreamsInbox() - return ToId(inbox) -} - -// dedupeIRIs will deduplicate final inbox IRIs. The ignore list is applied to -// the final list. -func dedupeIRIs(recipients, ignored []*url.URL) (out []*url.URL) { - ignoredMap := make(map[string]bool, len(ignored)) - for _, elem := range ignored { - ignoredMap[elem.String()] = true - } - outMap := make(map[string]bool, len(recipients)) - for _, k := range recipients { - kStr := k.String() - if !ignoredMap[kStr] && !outMap[kStr] { - out = append(out, k) - outMap[kStr] = true - } - } - return -} - -// stripHiddenRecipients removes "bto" and "bcc" from the activity. -// -// Note that this requirement of the specification is under "Section 6: Client -// to Server Interactions", the Social API, and not the Federative API. -func stripHiddenRecipients(activity Activity) { - activity.SetActivityStreamsBto(nil) - activity.SetActivityStreamsBcc(nil) - op := activity.GetActivityStreamsObject() - if op != nil { - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - if v, ok := iter.GetType().(btoer); ok { - v.SetActivityStreamsBto(nil) - } - if v, ok := iter.GetType().(bccer); ok { - v.SetActivityStreamsBcc(nil) - } - } - } -} - -// mustHaveActivityOriginMatchObjects ensures that the Host in the activity id -// IRI matches all of the Hosts in the object id IRIs. -func mustHaveActivityOriginMatchObjects(a Activity) error { - originIRI, err := GetId(a) - if err != nil { - return err - } - originHost := originIRI.Host - op := a.GetActivityStreamsObject() - if op == nil || op.Len() == 0 { - return nil - } - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - iri, err := ToId(iter) - if err != nil { - return err - } - if originHost != iri.Host { - return fmt.Errorf("object %q: not in activity origin", iri) - } - } - return nil -} - -// normalizeRecipients ensures the activity and object have the same 'to', -// 'bto', 'cc', 'bcc', and 'audience' properties. Copy the Activity's recipients -// to objects, and the objects to the activity, but does NOT copy objects' -// recipients to each other. -func normalizeRecipients(a vocab.ActivityStreamsCreate) error { - // Phase 0: Acquire all recipients on the activity. - // - // Obtain the actorTo map - actorToMap := make(map[string]*url.URL) - actorTo := a.GetActivityStreamsTo() - if actorTo == nil { - actorTo = streams.NewActivityStreamsToProperty() - a.SetActivityStreamsTo(actorTo) - } - for iter := actorTo.Begin(); iter != actorTo.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - actorToMap[id.String()] = id - } - // Obtain the actorBto map - actorBtoMap := make(map[string]*url.URL) - actorBto := a.GetActivityStreamsBto() - if actorBto == nil { - actorBto = streams.NewActivityStreamsBtoProperty() - a.SetActivityStreamsBto(actorBto) - } - for iter := actorBto.Begin(); iter != actorBto.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - actorBtoMap[id.String()] = id - } - // Obtain the actorCc map - actorCcMap := make(map[string]*url.URL) - actorCc := a.GetActivityStreamsCc() - if actorCc == nil { - actorCc = streams.NewActivityStreamsCcProperty() - a.SetActivityStreamsCc(actorCc) - } - for iter := actorCc.Begin(); iter != actorCc.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - actorCcMap[id.String()] = id - } - // Obtain the actorBcc map - actorBccMap := make(map[string]*url.URL) - actorBcc := a.GetActivityStreamsBcc() - if actorBcc == nil { - actorBcc = streams.NewActivityStreamsBccProperty() - a.SetActivityStreamsBcc(actorBcc) - } - for iter := actorBcc.Begin(); iter != actorBcc.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - actorBccMap[id.String()] = id - } - // Obtain the actorAudience map - actorAudienceMap := make(map[string]*url.URL) - actorAudience := a.GetActivityStreamsAudience() - if actorAudience == nil { - actorAudience = streams.NewActivityStreamsAudienceProperty() - a.SetActivityStreamsAudience(actorAudience) - } - for iter := actorAudience.Begin(); iter != actorAudience.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - actorAudienceMap[id.String()] = id - } - // Obtain the objects maps for each recipient type. - o := a.GetActivityStreamsObject() - objsTo := make([]map[string]*url.URL, o.Len()) - objsBto := make([]map[string]*url.URL, o.Len()) - objsCc := make([]map[string]*url.URL, o.Len()) - objsBcc := make([]map[string]*url.URL, o.Len()) - objsAudience := make([]map[string]*url.URL, o.Len()) - for i := 0; i < o.Len(); i++ { - iter := o.At(i) - // Phase 1: Acquire all existing recipients on the object. - // - // Object to - objsTo[i] = make(map[string]*url.URL) - var oTo vocab.ActivityStreamsToProperty - if tr, ok := iter.GetType().(toer); !ok { - return fmt.Errorf("the Create object at %d has no 'to' property", i) - } else { - oTo = tr.GetActivityStreamsTo() - if oTo == nil { - oTo = streams.NewActivityStreamsToProperty() - tr.SetActivityStreamsTo(oTo) - } - } - for iter := oTo.Begin(); iter != oTo.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - objsTo[i][id.String()] = id - } - // Object bto - objsBto[i] = make(map[string]*url.URL) - var oBto vocab.ActivityStreamsBtoProperty - if tr, ok := iter.GetType().(btoer); !ok { - return fmt.Errorf("the Create object at %d has no 'bto' property", i) - } else { - oBto = tr.GetActivityStreamsBto() - if oBto == nil { - oBto = streams.NewActivityStreamsBtoProperty() - tr.SetActivityStreamsBto(oBto) - } - } - for iter := oBto.Begin(); iter != oBto.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - objsBto[i][id.String()] = id - } - // Object cc - objsCc[i] = make(map[string]*url.URL) - var oCc vocab.ActivityStreamsCcProperty - if tr, ok := iter.GetType().(ccer); !ok { - return fmt.Errorf("the Create object at %d has no 'cc' property", i) - } else { - oCc = tr.GetActivityStreamsCc() - if oCc == nil { - oCc = streams.NewActivityStreamsCcProperty() - tr.SetActivityStreamsCc(oCc) - } - } - for iter := oCc.Begin(); iter != oCc.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - objsCc[i][id.String()] = id - } - // Object bcc - objsBcc[i] = make(map[string]*url.URL) - var oBcc vocab.ActivityStreamsBccProperty - if tr, ok := iter.GetType().(bccer); !ok { - return fmt.Errorf("the Create object at %d has no 'bcc' property", i) - } else { - oBcc = tr.GetActivityStreamsBcc() - if oBcc == nil { - oBcc = streams.NewActivityStreamsBccProperty() - tr.SetActivityStreamsBcc(oBcc) - } - } - for iter := oBcc.Begin(); iter != oBcc.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - objsBcc[i][id.String()] = id - } - // Object audience - objsAudience[i] = make(map[string]*url.URL) - var oAudience vocab.ActivityStreamsAudienceProperty - if tr, ok := iter.GetType().(audiencer); !ok { - return fmt.Errorf("the Create object at %d has no 'audience' property", i) - } else { - oAudience = tr.GetActivityStreamsAudience() - if oAudience == nil { - oAudience = streams.NewActivityStreamsAudienceProperty() - tr.SetActivityStreamsAudience(oAudience) - } - } - for iter := oAudience.Begin(); iter != oAudience.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - objsAudience[i][id.String()] = id - } - // Phase 2: Apply missing recipients to the object from the - // activity. - // - // Activity to -> Object to - for k, v := range actorToMap { - if _, ok := objsTo[i][k]; !ok { - oTo.AppendIRI(v) - } - } - // Activity bto -> Object bto - for k, v := range actorBtoMap { - if _, ok := objsBto[i][k]; !ok { - oBto.AppendIRI(v) - } - } - // Activity cc -> Object cc - for k, v := range actorCcMap { - if _, ok := objsCc[i][k]; !ok { - oCc.AppendIRI(v) - } - } - // Activity bcc -> Object bcc - for k, v := range actorBccMap { - if _, ok := objsBcc[i][k]; !ok { - oBcc.AppendIRI(v) - } - } - // Activity audience -> Object audience - for k, v := range actorAudienceMap { - if _, ok := objsAudience[i][k]; !ok { - oAudience.AppendIRI(v) - } - } - } - // Phase 3: Apply missing recipients to the activity from the objects. - // - // Object to -> Activity to - for i := 0; i < len(objsTo); i++ { - for k, v := range objsTo[i] { - if _, ok := actorToMap[k]; !ok { - actorTo.AppendIRI(v) - } - } - } - // Object bto -> Activity bto - for i := 0; i < len(objsBto); i++ { - for k, v := range objsBto[i] { - if _, ok := actorBtoMap[k]; !ok { - actorBto.AppendIRI(v) - } - } - } - // Object cc -> Activity cc - for i := 0; i < len(objsCc); i++ { - for k, v := range objsCc[i] { - if _, ok := actorCcMap[k]; !ok { - actorCc.AppendIRI(v) - } - } - } - // Object bcc -> Activity bcc - for i := 0; i < len(objsBcc); i++ { - for k, v := range objsBcc[i] { - if _, ok := actorBccMap[k]; !ok { - actorBcc.AppendIRI(v) - } - } - } - // Object audience -> Activity audience - for i := 0; i < len(objsAudience); i++ { - for k, v := range objsAudience[i] { - if _, ok := actorAudienceMap[k]; !ok { - actorAudience.AppendIRI(v) - } - } - } - return nil -} - -// toTombstone creates a Tombstone object for the given ActivityStreams value. -func toTombstone(obj vocab.Type, id *url.URL, now time.Time) vocab.ActivityStreamsTombstone { - tomb := streams.NewActivityStreamsTombstone() - // id property - idProp := streams.NewJSONLDIdProperty() - idProp.Set(id) - tomb.SetJSONLDId(idProp) - // formerType property - former := streams.NewActivityStreamsFormerTypeProperty() - tomb.SetActivityStreamsFormerType(former) - // Populate Former Type - former.AppendXMLSchemaString(obj.GetTypeName()) - // Copy over the published property if it existed - if pubber, ok := obj.(publisheder); ok { - if pub := pubber.GetActivityStreamsPublished(); pub != nil { - tomb.SetActivityStreamsPublished(pub) - } - } - // Copy over the updated property if it existed - if upder, ok := obj.(updateder); ok { - if upd := upder.GetActivityStreamsUpdated(); upd != nil { - tomb.SetActivityStreamsUpdated(upd) - } - } - // Set deleted time to now. - deleted := streams.NewActivityStreamsDeletedProperty() - deleted.Set(now) - tomb.SetActivityStreamsDeleted(deleted) - return tomb -} - -// mustHaveActivityActorsMatchObjectActors ensures that the actors on types in -// the 'object' property are all listed in the 'actor' property. -func mustHaveActivityActorsMatchObjectActors(c context.Context, - actors vocab.ActivityStreamsActorProperty, - op vocab.ActivityStreamsObjectProperty, - newTransport func(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error), - boxIRI *url.URL) error { - activityActorMap := make(map[string]bool, actors.Len()) - for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - activityActorMap[id.String()] = true - } - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - iri, err := ToId(iter) - if err != nil { - return err - } - // Attempt to dereference the IRI, regardless whether it is a - // type or IRI - tport, err := newTransport(c, boxIRI, goFedUserAgent()) - if err != nil { - return err - } - b, err := tport.Dereference(c, iri) - if err != nil { - return err - } - var m map[string]interface{} - if err = json.Unmarshal(b, &m); err != nil { - return err - } - t, err := streams.ToType(c, m) - if err != nil { - return err - } - ac, ok := t.(actorer) - if !ok { - return fmt.Errorf("cannot verify actors: object value has no 'actor' property") - } - objActors := ac.GetActivityStreamsActor() - for iter := objActors.Begin(); iter != objActors.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - if !activityActorMap[id.String()] { - return fmt.Errorf("activity does not have all actors from its object's actors") - } - } - } - return nil -} - -// add implements the logic of adding object ids to a target Collection or -// OrderedCollection. This logic is shared by both the C2S and S2S protocols. -func add(c context.Context, - op vocab.ActivityStreamsObjectProperty, - target vocab.ActivityStreamsTargetProperty, - db Database) error { - opIds := make([]*url.URL, 0, op.Len()) - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - opIds = append(opIds, id) - } - targetIds := make([]*url.URL, 0, op.Len()) - for iter := target.Begin(); iter != target.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - targetIds = append(targetIds, id) - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(t *url.URL) error { - if err := db.Lock(c, t); err != nil { - return err - } - defer db.Unlock(c, t) - if owns, err := db.Owns(c, t); err != nil { - return err - } else if !owns { - return nil - } - tp, err := db.Get(c, t) - if err != nil { - return err - } - if streams.IsOrExtendsActivityStreamsOrderedCollection(tp) { - oi, ok := tp.(orderedItemser) - if !ok { - return fmt.Errorf("type extending from OrderedCollection cannot convert to orderedItemser interface") - } - oiProp := oi.GetActivityStreamsOrderedItems() - if oiProp == nil { - oiProp = streams.NewActivityStreamsOrderedItemsProperty() - oi.SetActivityStreamsOrderedItems(oiProp) - } - for _, objId := range opIds { - oiProp.AppendIRI(objId) - } - } else if streams.IsOrExtendsActivityStreamsCollection(tp) { - i, ok := tp.(itemser) - if !ok { - return fmt.Errorf("type extending from Collection cannot convert to itemser interface") - } - iProp := i.GetActivityStreamsItems() - if iProp == nil { - iProp = streams.NewActivityStreamsItemsProperty() - i.SetActivityStreamsItems(iProp) - } - for _, objId := range opIds { - iProp.AppendIRI(objId) - } - } else { - return fmt.Errorf("target in Add is neither a Collection nor an OrderedCollection") - } - err = db.Update(c, tp) - if err != nil { - return err - } - return nil - } - for _, t := range targetIds { - if err := loopFn(t); err != nil { - return err - } - } - return nil -} - -// remove implements the logic of removing object ids to a target Collection or -// OrderedCollection. This logic is shared by both the C2S and S2S protocols. -func remove(c context.Context, - op vocab.ActivityStreamsObjectProperty, - target vocab.ActivityStreamsTargetProperty, - db Database) error { - opIds := make(map[string]bool, op.Len()) - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - opIds[id.String()] = true - } - targetIds := make([]*url.URL, 0, op.Len()) - for iter := target.Begin(); iter != target.End(); iter = iter.Next() { - id, err := ToId(iter) - if err != nil { - return err - } - targetIds = append(targetIds, id) - } - // Create anonymous loop function to be able to properly scope the defer - // for the database lock at each iteration. - loopFn := func(t *url.URL) error { - if err := db.Lock(c, t); err != nil { - return err - } - defer db.Unlock(c, t) - if owns, err := db.Owns(c, t); err != nil { - return err - } else if !owns { - return nil - } - tp, err := db.Get(c, t) - if err != nil { - return err - } - if streams.IsOrExtendsActivityStreamsOrderedCollection(tp) { - oi, ok := tp.(orderedItemser) - if !ok { - return fmt.Errorf("type extending from OrderedCollection cannot convert to orderedItemser interface") - } - oiProp := oi.GetActivityStreamsOrderedItems() - if oiProp != nil { - for i := 0; i < oiProp.Len(); /*Conditional*/ { - id, err := ToId(oiProp.At(i)) - if err != nil { - return err - } - if opIds[id.String()] { - oiProp.Remove(i) - } else { - i++ - } - } - } - } else if streams.IsOrExtendsActivityStreamsCollection(tp) { - i, ok := tp.(itemser) - if !ok { - return fmt.Errorf("type extending from Collection cannot convert to itemser interface") - } - iProp := i.GetActivityStreamsItems() - if iProp != nil { - for i := 0; i < iProp.Len(); /*Conditional*/ { - id, err := ToId(iProp.At(i)) - if err != nil { - return err - } - if opIds[id.String()] { - iProp.Remove(i) - } else { - i++ - } - } - } - } else { - return fmt.Errorf("target in Remove is neither a Collection nor an OrderedCollection") - } - err = db.Update(c, tp) - if err != nil { - return err - } - return nil - } - for _, t := range targetIds { - if err := loopFn(t); err != nil { - return err - } - } - return nil -} - -// clearSensitiveFields removes the 'bto' and 'bcc' entries on the given value -// and recursively on every 'object' property value. -func clearSensitiveFields(obj vocab.Type) { - if t, ok := obj.(btoer); ok { - t.SetActivityStreamsBto(nil) - } - if t, ok := obj.(bccer); ok { - t.SetActivityStreamsBcc(nil) - } - if t, ok := obj.(objecter); ok { - op := t.GetActivityStreamsObject() - if op != nil { - for iter := op.Begin(); iter != op.End(); iter = iter.Next() { - clearSensitiveFields(iter.GetType()) - } - } - } -} - -// requestId forms an ActivityPub id based on the HTTP request. Always assumes -// that the id is HTTPS. -func requestId(r *http.Request, scheme string) *url.URL { - id := r.URL - id.Host = r.Host - id.Scheme = scheme - return id -} diff --git a/vendor/github.com/go-fed/activity/pub/version.go b/vendor/github.com/go-fed/activity/pub/version.go deleted file mode 100644 index 23b958ce5..000000000 --- a/vendor/github.com/go-fed/activity/pub/version.go +++ /dev/null @@ -1,15 +0,0 @@ -package pub - -import ( - "fmt" -) - -const ( - // Version string, used in the User-Agent - version = "v1.0.0" -) - -// goFedUserAgent returns the user agent string for the go-fed library. -func goFedUserAgent() string { - return fmt.Sprintf("(go-fed/activity %s)", version) -} diff --git a/vendor/github.com/go-fed/activity/streams/README.md b/vendor/github.com/go-fed/activity/streams/README.md deleted file mode 100644 index 00ae95d85..000000000 --- a/vendor/github.com/go-fed/activity/streams/README.md +++ /dev/null @@ -1,152 +0,0 @@ -# streams - -ActivityStreams vocabularies automatically code-generated with `astool`. - -## Reference & Tutorial - -The [go-fed website](https://go-fed.org/) contains tutorials and reference -materials, in addition to the rest of this README. - -## How To Use - -``` -go get github.com/go-fed/activity -``` - -All generated types and properties are interfaces in -`github.com/go-fed/streams/vocab`, but note that the constructors and supporting -functions live in `github.com/go-fed/streams`. - -To create a type and set properties: - -```golang -var actorURL *url.URL = // ... - -// A new "Create" Activity. -create := streams.NewActivityStreamsCreate() -// A new "actor" property. -actor := streams.NewActivityStreamsActorProperty() -actor.AppendIRI(actorURL) -// Set the "actor" property on the "Create" Activity. -create.SetActivityStreamsActor(actor) -``` - -To process properties on a type: - -```golang -// Returns true if the "Update" has at least one "object" with an IRI value. -func hasObjectWithIRIValue(update vocab.ActivityStreamsUpdate) bool { - objectProperty := update.GetActivityStreamsObject() - // Any property may be nil if it was either empty in the original JSON or - // never set on the golang type. - if objectProperty == nil { - return false - } - // The "object" property is non-functional: it could have multiple values. The - // generated code has slightly different methods for a functional property - // versus a non-functional one. - // - // While it may be easy to ignore multiple values in other languages - // (accidentally or purposefully), go-fed is designed to make it hard to do - // so. - for iter := objectProperty.Begin(); iter != objectProperty.End(); iter = iter.Next() { - // If this particular value is an IRI, return true. - if iter.IsIRI() { - return true - } - } - // All values are literal embedded values and not IRIs. - return false -} -``` - -The ActivityStreams type hierarchy of "extends" and "disjoint" is not the same -as the Object Oriented definition of inheritance. It is also not the same as -golang's interface duck-typing. Helper functions are provided to guarantee that -an application's logic can correctly apply the type hierarchy. - -```golang -thing := // Pick a type from streams.NewActivityStreams() -if streams.ActivityStreamsObjectIsDisjointWith(thing) { - fmt.Printf("The \"Object\" type is Disjoint with the %T type.\n", thing) -} -if streams.ActivityStreamsLinkIsExtendedBy(thing) { - fmt.Printf("The %T type Extends from the \"Link\" type.\n", thing) -} -if streams.ActivityStreamsActivityExtends(thing) { - fmt.Printf("The \"Activity\" type extends from the %T type.\n", thing) -} -``` - -When given a generic JSON payload, it can be resolved to a concrete type by -creating a `streams.JSONResolver` and giving it a callback function that accepts -the interesting concrete type: - -```golang -// Callbacks must be in the form: -// func(context.Context, ) error -createCallback := func(c context.Context, create vocab.ActivityStreamsCreate) error { - // Do something with 'create' - fmt.Printf("createCallback called: %T\n", create) - return nil -} -updateCallback := func(c context.Context, update vocab.ActivityStreamsUpdate) error { - // Do something with 'update' - fmt.Printf("updateCallback called: %T\n", update) - return nil -} -jsonResolver, err := streams.NewJSONResolver(createCallback, updateCallback) -if err != nil { - // Something in the setup was wrong. For example, a callback has an - // unsupported signature and would never be called - panic(err) -} -// Create a context, which allows you to pass data opaquely through the -// JSONResolver. -c := context.Background() -// Example 15 of the ActivityStreams specification. -b := []byte(`{ - "@context": "https://www.w3.org/ns/activitystreams", - "summary": "Sally created a note", - "type": "Create", - "actor": { - "type": "Person", - "name": "Sally" - }, - "object": { - "type": "Note", - "name": "A Simple Note", - "content": "This is a simple note" - } -}`) -var jsonMap map[string]interface{} -if err = json.Unmarshal(b, &jsonMap); err != nil { - panic(err) -} -// The createCallback function will be called. -err = jsonResolver.Resolve(c, jsonMap) -if err != nil && !streams.IsUnmatchedErr(err) { - // Something went wrong - panic(err) -} else if streams.IsUnmatchedErr(err) { - // Everything went right but the callback didn't match or the ActivityStreams - // type is one that wasn't code generated. - fmt.Println("No match: ", err) -} -``` - -A `streams.TypeResolver` is similar but uses the golang types instead. It -accepts the generic `vocab.Type`. This is the abstraction when needing to handle -any ActivityStreams type. The function `ToType` can convert a JSON-decoded-map -into this kind of value if needed. - -A `streams.PredicatedTypeResolver` lets you apply a boolean predicate function -that acts as a check whether a callback is allowed to be invoked. - -## FAQ - -### Why Are Empty Properties Nil And Not Zero-Valued? - -Due to implementation design decisions, it would require a lot of plumbing to -ensure this would work properly. It would also require allocation of a -non-trivial amount of memory. diff --git a/vendor/github.com/go-fed/activity/streams/gen_consts.go b/vendor/github.com/go-fed/activity/streams/gen_consts.go deleted file mode 100644 index 795d0e90c..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_consts.go +++ /dev/null @@ -1,504 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -// ActivityStreamsAcceptName is the string literal of the name for the Accept type in the ActivityStreams vocabulary. -var ActivityStreamsAcceptName string = "Accept" - -// ActivityStreamsActivityName is the string literal of the name for the Activity type in the ActivityStreams vocabulary. -var ActivityStreamsActivityName string = "Activity" - -// ActivityStreamsAddName is the string literal of the name for the Add type in the ActivityStreams vocabulary. -var ActivityStreamsAddName string = "Add" - -// ActivityStreamsAnnounceName is the string literal of the name for the Announce type in the ActivityStreams vocabulary. -var ActivityStreamsAnnounceName string = "Announce" - -// ActivityStreamsApplicationName is the string literal of the name for the Application type in the ActivityStreams vocabulary. -var ActivityStreamsApplicationName string = "Application" - -// ActivityStreamsArriveName is the string literal of the name for the Arrive type in the ActivityStreams vocabulary. -var ActivityStreamsArriveName string = "Arrive" - -// ActivityStreamsArticleName is the string literal of the name for the Article type in the ActivityStreams vocabulary. -var ActivityStreamsArticleName string = "Article" - -// ActivityStreamsAudioName is the string literal of the name for the Audio type in the ActivityStreams vocabulary. -var ActivityStreamsAudioName string = "Audio" - -// ActivityStreamsBlockName is the string literal of the name for the Block type in the ActivityStreams vocabulary. -var ActivityStreamsBlockName string = "Block" - -// ForgeFedBranchName is the string literal of the name for the Branch type in the ForgeFed vocabulary. -var ForgeFedBranchName string = "Branch" - -// ActivityStreamsCollectionName is the string literal of the name for the Collection type in the ActivityStreams vocabulary. -var ActivityStreamsCollectionName string = "Collection" - -// ActivityStreamsCollectionPageName is the string literal of the name for the CollectionPage type in the ActivityStreams vocabulary. -var ActivityStreamsCollectionPageName string = "CollectionPage" - -// ForgeFedCommitName is the string literal of the name for the Commit type in the ForgeFed vocabulary. -var ForgeFedCommitName string = "Commit" - -// ActivityStreamsCreateName is the string literal of the name for the Create type in the ActivityStreams vocabulary. -var ActivityStreamsCreateName string = "Create" - -// ActivityStreamsDeleteName is the string literal of the name for the Delete type in the ActivityStreams vocabulary. -var ActivityStreamsDeleteName string = "Delete" - -// ActivityStreamsDislikeName is the string literal of the name for the Dislike type in the ActivityStreams vocabulary. -var ActivityStreamsDislikeName string = "Dislike" - -// ActivityStreamsDocumentName is the string literal of the name for the Document type in the ActivityStreams vocabulary. -var ActivityStreamsDocumentName string = "Document" - -// TootEmojiName is the string literal of the name for the Emoji type in the Toot vocabulary. -var TootEmojiName string = "Emoji" - -// ActivityStreamsEventName is the string literal of the name for the Event type in the ActivityStreams vocabulary. -var ActivityStreamsEventName string = "Event" - -// ActivityStreamsFlagName is the string literal of the name for the Flag type in the ActivityStreams vocabulary. -var ActivityStreamsFlagName string = "Flag" - -// ActivityStreamsFollowName is the string literal of the name for the Follow type in the ActivityStreams vocabulary. -var ActivityStreamsFollowName string = "Follow" - -// ActivityStreamsGroupName is the string literal of the name for the Group type in the ActivityStreams vocabulary. -var ActivityStreamsGroupName string = "Group" - -// TootIdentityProofName is the string literal of the name for the IdentityProof type in the Toot vocabulary. -var TootIdentityProofName string = "IdentityProof" - -// ActivityStreamsIgnoreName is the string literal of the name for the Ignore type in the ActivityStreams vocabulary. -var ActivityStreamsIgnoreName string = "Ignore" - -// ActivityStreamsImageName is the string literal of the name for the Image type in the ActivityStreams vocabulary. -var ActivityStreamsImageName string = "Image" - -// ActivityStreamsIntransitiveActivityName is the string literal of the name for the IntransitiveActivity type in the ActivityStreams vocabulary. -var ActivityStreamsIntransitiveActivityName string = "IntransitiveActivity" - -// ActivityStreamsInviteName is the string literal of the name for the Invite type in the ActivityStreams vocabulary. -var ActivityStreamsInviteName string = "Invite" - -// ActivityStreamsJoinName is the string literal of the name for the Join type in the ActivityStreams vocabulary. -var ActivityStreamsJoinName string = "Join" - -// ActivityStreamsLeaveName is the string literal of the name for the Leave type in the ActivityStreams vocabulary. -var ActivityStreamsLeaveName string = "Leave" - -// ActivityStreamsLikeName is the string literal of the name for the Like type in the ActivityStreams vocabulary. -var ActivityStreamsLikeName string = "Like" - -// ActivityStreamsLinkName is the string literal of the name for the Link type in the ActivityStreams vocabulary. -var ActivityStreamsLinkName string = "Link" - -// ActivityStreamsListenName is the string literal of the name for the Listen type in the ActivityStreams vocabulary. -var ActivityStreamsListenName string = "Listen" - -// ActivityStreamsMentionName is the string literal of the name for the Mention type in the ActivityStreams vocabulary. -var ActivityStreamsMentionName string = "Mention" - -// ActivityStreamsMoveName is the string literal of the name for the Move type in the ActivityStreams vocabulary. -var ActivityStreamsMoveName string = "Move" - -// ActivityStreamsNoteName is the string literal of the name for the Note type in the ActivityStreams vocabulary. -var ActivityStreamsNoteName string = "Note" - -// ActivityStreamsObjectName is the string literal of the name for the Object type in the ActivityStreams vocabulary. -var ActivityStreamsObjectName string = "Object" - -// ActivityStreamsOfferName is the string literal of the name for the Offer type in the ActivityStreams vocabulary. -var ActivityStreamsOfferName string = "Offer" - -// ActivityStreamsOrderedCollectionName is the string literal of the name for the OrderedCollection type in the ActivityStreams vocabulary. -var ActivityStreamsOrderedCollectionName string = "OrderedCollection" - -// ActivityStreamsOrderedCollectionPageName is the string literal of the name for the OrderedCollectionPage type in the ActivityStreams vocabulary. -var ActivityStreamsOrderedCollectionPageName string = "OrderedCollectionPage" - -// ActivityStreamsOrganizationName is the string literal of the name for the Organization type in the ActivityStreams vocabulary. -var ActivityStreamsOrganizationName string = "Organization" - -// ActivityStreamsPageName is the string literal of the name for the Page type in the ActivityStreams vocabulary. -var ActivityStreamsPageName string = "Page" - -// ActivityStreamsPersonName is the string literal of the name for the Person type in the ActivityStreams vocabulary. -var ActivityStreamsPersonName string = "Person" - -// ActivityStreamsPlaceName is the string literal of the name for the Place type in the ActivityStreams vocabulary. -var ActivityStreamsPlaceName string = "Place" - -// ActivityStreamsProfileName is the string literal of the name for the Profile type in the ActivityStreams vocabulary. -var ActivityStreamsProfileName string = "Profile" - -// W3IDSecurityV1PublicKeyName is the string literal of the name for the PublicKey type in the W3IDSecurityV1 vocabulary. -var W3IDSecurityV1PublicKeyName string = "PublicKey" - -// ForgeFedPushName is the string literal of the name for the Push type in the ForgeFed vocabulary. -var ForgeFedPushName string = "Push" - -// ActivityStreamsQuestionName is the string literal of the name for the Question type in the ActivityStreams vocabulary. -var ActivityStreamsQuestionName string = "Question" - -// ActivityStreamsReadName is the string literal of the name for the Read type in the ActivityStreams vocabulary. -var ActivityStreamsReadName string = "Read" - -// ActivityStreamsRejectName is the string literal of the name for the Reject type in the ActivityStreams vocabulary. -var ActivityStreamsRejectName string = "Reject" - -// ActivityStreamsRelationshipName is the string literal of the name for the Relationship type in the ActivityStreams vocabulary. -var ActivityStreamsRelationshipName string = "Relationship" - -// ActivityStreamsRemoveName is the string literal of the name for the Remove type in the ActivityStreams vocabulary. -var ActivityStreamsRemoveName string = "Remove" - -// ForgeFedRepositoryName is the string literal of the name for the Repository type in the ForgeFed vocabulary. -var ForgeFedRepositoryName string = "Repository" - -// ActivityStreamsServiceName is the string literal of the name for the Service type in the ActivityStreams vocabulary. -var ActivityStreamsServiceName string = "Service" - -// ActivityStreamsTentativeAcceptName is the string literal of the name for the TentativeAccept type in the ActivityStreams vocabulary. -var ActivityStreamsTentativeAcceptName string = "TentativeAccept" - -// ActivityStreamsTentativeRejectName is the string literal of the name for the TentativeReject type in the ActivityStreams vocabulary. -var ActivityStreamsTentativeRejectName string = "TentativeReject" - -// ForgeFedTicketName is the string literal of the name for the Ticket type in the ForgeFed vocabulary. -var ForgeFedTicketName string = "Ticket" - -// ForgeFedTicketDependencyName is the string literal of the name for the TicketDependency type in the ForgeFed vocabulary. -var ForgeFedTicketDependencyName string = "TicketDependency" - -// ActivityStreamsTombstoneName is the string literal of the name for the Tombstone type in the ActivityStreams vocabulary. -var ActivityStreamsTombstoneName string = "Tombstone" - -// ActivityStreamsTravelName is the string literal of the name for the Travel type in the ActivityStreams vocabulary. -var ActivityStreamsTravelName string = "Travel" - -// ActivityStreamsUndoName is the string literal of the name for the Undo type in the ActivityStreams vocabulary. -var ActivityStreamsUndoName string = "Undo" - -// ActivityStreamsUpdateName is the string literal of the name for the Update type in the ActivityStreams vocabulary. -var ActivityStreamsUpdateName string = "Update" - -// ActivityStreamsVideoName is the string literal of the name for the Video type in the ActivityStreams vocabulary. -var ActivityStreamsVideoName string = "Video" - -// ActivityStreamsViewName is the string literal of the name for the View type in the ActivityStreams vocabulary. -var ActivityStreamsViewName string = "View" - -// ActivityStreamsAccuracyPropertyName is the string literal of the name for the accuracy property in the ActivityStreams vocabulary. -var ActivityStreamsAccuracyPropertyName string = "accuracy" - -// ActivityStreamsActorPropertyName is the string literal of the name for the actor property in the ActivityStreams vocabulary. -var ActivityStreamsActorPropertyName string = "actor" - -// ActivityStreamsAltitudePropertyName is the string literal of the name for the altitude property in the ActivityStreams vocabulary. -var ActivityStreamsAltitudePropertyName string = "altitude" - -// ActivityStreamsAnyOfPropertyName is the string literal of the name for the anyOf property in the ActivityStreams vocabulary. -var ActivityStreamsAnyOfPropertyName string = "anyOf" - -// ForgeFedAssignedToPropertyName is the string literal of the name for the assignedTo property in the ForgeFed vocabulary. -var ForgeFedAssignedToPropertyName string = "assignedTo" - -// ActivityStreamsAttachmentPropertyName is the string literal of the name for the attachment property in the ActivityStreams vocabulary. -var ActivityStreamsAttachmentPropertyName string = "attachment" - -// ActivityStreamsAttributedToPropertyName is the string literal of the name for the attributedTo property in the ActivityStreams vocabulary. -var ActivityStreamsAttributedToPropertyName string = "attributedTo" - -// ActivityStreamsAudiencePropertyName is the string literal of the name for the audience property in the ActivityStreams vocabulary. -var ActivityStreamsAudiencePropertyName string = "audience" - -// ActivityStreamsBccPropertyName is the string literal of the name for the bcc property in the ActivityStreams vocabulary. -var ActivityStreamsBccPropertyName string = "bcc" - -// TootBlurhashPropertyName is the string literal of the name for the blurhash property in the Toot vocabulary. -var TootBlurhashPropertyName string = "blurhash" - -// ActivityStreamsBtoPropertyName is the string literal of the name for the bto property in the ActivityStreams vocabulary. -var ActivityStreamsBtoPropertyName string = "bto" - -// ActivityStreamsCcPropertyName is the string literal of the name for the cc property in the ActivityStreams vocabulary. -var ActivityStreamsCcPropertyName string = "cc" - -// ActivityStreamsClosedPropertyName is the string literal of the name for the closed property in the ActivityStreams vocabulary. -var ActivityStreamsClosedPropertyName string = "closed" - -// ForgeFedCommittedPropertyName is the string literal of the name for the committed property in the ForgeFed vocabulary. -var ForgeFedCommittedPropertyName string = "committed" - -// ForgeFedCommittedByPropertyName is the string literal of the name for the committedBy property in the ForgeFed vocabulary. -var ForgeFedCommittedByPropertyName string = "committedBy" - -// ActivityStreamsContentPropertyName is the string literal of the name for the content property in the ActivityStreams vocabulary. -var ActivityStreamsContentPropertyName string = "content" - -// ActivityStreamsContentPropertyMapName is the string literal of the name for the content property in the ActivityStreams vocabulary when it is a natural language map. -var ActivityStreamsContentPropertyMapName string = "contentMap" - -// ActivityStreamsContextPropertyName is the string literal of the name for the context property in the ActivityStreams vocabulary. -var ActivityStreamsContextPropertyName string = "context" - -// ActivityStreamsCurrentPropertyName is the string literal of the name for the current property in the ActivityStreams vocabulary. -var ActivityStreamsCurrentPropertyName string = "current" - -// ActivityStreamsDeletedPropertyName is the string literal of the name for the deleted property in the ActivityStreams vocabulary. -var ActivityStreamsDeletedPropertyName string = "deleted" - -// ForgeFedDependantsPropertyName is the string literal of the name for the dependants property in the ForgeFed vocabulary. -var ForgeFedDependantsPropertyName string = "dependants" - -// ForgeFedDependedByPropertyName is the string literal of the name for the dependedBy property in the ForgeFed vocabulary. -var ForgeFedDependedByPropertyName string = "dependedBy" - -// ForgeFedDependenciesPropertyName is the string literal of the name for the dependencies property in the ForgeFed vocabulary. -var ForgeFedDependenciesPropertyName string = "dependencies" - -// ForgeFedDependsOnPropertyName is the string literal of the name for the dependsOn property in the ForgeFed vocabulary. -var ForgeFedDependsOnPropertyName string = "dependsOn" - -// ActivityStreamsDescribesPropertyName is the string literal of the name for the describes property in the ActivityStreams vocabulary. -var ActivityStreamsDescribesPropertyName string = "describes" - -// ForgeFedDescriptionPropertyName is the string literal of the name for the description property in the ForgeFed vocabulary. -var ForgeFedDescriptionPropertyName string = "description" - -// TootDiscoverablePropertyName is the string literal of the name for the discoverable property in the Toot vocabulary. -var TootDiscoverablePropertyName string = "discoverable" - -// ActivityStreamsDurationPropertyName is the string literal of the name for the duration property in the ActivityStreams vocabulary. -var ActivityStreamsDurationPropertyName string = "duration" - -// ForgeFedEarlyItemsPropertyName is the string literal of the name for the earlyItems property in the ForgeFed vocabulary. -var ForgeFedEarlyItemsPropertyName string = "earlyItems" - -// ActivityStreamsEndTimePropertyName is the string literal of the name for the endTime property in the ActivityStreams vocabulary. -var ActivityStreamsEndTimePropertyName string = "endTime" - -// TootFeaturedPropertyName is the string literal of the name for the featured property in the Toot vocabulary. -var TootFeaturedPropertyName string = "featured" - -// ForgeFedFilesAddedPropertyName is the string literal of the name for the filesAdded property in the ForgeFed vocabulary. -var ForgeFedFilesAddedPropertyName string = "filesAdded" - -// ForgeFedFilesModifiedPropertyName is the string literal of the name for the filesModified property in the ForgeFed vocabulary. -var ForgeFedFilesModifiedPropertyName string = "filesModified" - -// ForgeFedFilesRemovedPropertyName is the string literal of the name for the filesRemoved property in the ForgeFed vocabulary. -var ForgeFedFilesRemovedPropertyName string = "filesRemoved" - -// ActivityStreamsFirstPropertyName is the string literal of the name for the first property in the ActivityStreams vocabulary. -var ActivityStreamsFirstPropertyName string = "first" - -// ActivityStreamsFollowersPropertyName is the string literal of the name for the followers property in the ActivityStreams vocabulary. -var ActivityStreamsFollowersPropertyName string = "followers" - -// ActivityStreamsFollowingPropertyName is the string literal of the name for the following property in the ActivityStreams vocabulary. -var ActivityStreamsFollowingPropertyName string = "following" - -// ForgeFedForksPropertyName is the string literal of the name for the forks property in the ForgeFed vocabulary. -var ForgeFedForksPropertyName string = "forks" - -// ActivityStreamsFormerTypePropertyName is the string literal of the name for the formerType property in the ActivityStreams vocabulary. -var ActivityStreamsFormerTypePropertyName string = "formerType" - -// ActivityStreamsGeneratorPropertyName is the string literal of the name for the generator property in the ActivityStreams vocabulary. -var ActivityStreamsGeneratorPropertyName string = "generator" - -// ForgeFedHashPropertyName is the string literal of the name for the hash property in the ForgeFed vocabulary. -var ForgeFedHashPropertyName string = "hash" - -// ActivityStreamsHeightPropertyName is the string literal of the name for the height property in the ActivityStreams vocabulary. -var ActivityStreamsHeightPropertyName string = "height" - -// ActivityStreamsHrefPropertyName is the string literal of the name for the href property in the ActivityStreams vocabulary. -var ActivityStreamsHrefPropertyName string = "href" - -// ActivityStreamsHreflangPropertyName is the string literal of the name for the hreflang property in the ActivityStreams vocabulary. -var ActivityStreamsHreflangPropertyName string = "hreflang" - -// ActivityStreamsIconPropertyName is the string literal of the name for the icon property in the ActivityStreams vocabulary. -var ActivityStreamsIconPropertyName string = "icon" - -// ActivityStreamsImagePropertyName is the string literal of the name for the image property in the ActivityStreams vocabulary. -var ActivityStreamsImagePropertyName string = "image" - -// ActivityStreamsInReplyToPropertyName is the string literal of the name for the inReplyTo property in the ActivityStreams vocabulary. -var ActivityStreamsInReplyToPropertyName string = "inReplyTo" - -// ActivityStreamsInboxPropertyName is the string literal of the name for the inbox property in the ActivityStreams vocabulary. -var ActivityStreamsInboxPropertyName string = "inbox" - -// ActivityStreamsInstrumentPropertyName is the string literal of the name for the instrument property in the ActivityStreams vocabulary. -var ActivityStreamsInstrumentPropertyName string = "instrument" - -// ForgeFedIsResolvedPropertyName is the string literal of the name for the isResolved property in the ForgeFed vocabulary. -var ForgeFedIsResolvedPropertyName string = "isResolved" - -// ActivityStreamsItemsPropertyName is the string literal of the name for the items property in the ActivityStreams vocabulary. -var ActivityStreamsItemsPropertyName string = "items" - -// ActivityStreamsLastPropertyName is the string literal of the name for the last property in the ActivityStreams vocabulary. -var ActivityStreamsLastPropertyName string = "last" - -// ActivityStreamsLatitudePropertyName is the string literal of the name for the latitude property in the ActivityStreams vocabulary. -var ActivityStreamsLatitudePropertyName string = "latitude" - -// ActivityStreamsLikedPropertyName is the string literal of the name for the liked property in the ActivityStreams vocabulary. -var ActivityStreamsLikedPropertyName string = "liked" - -// ActivityStreamsLikesPropertyName is the string literal of the name for the likes property in the ActivityStreams vocabulary. -var ActivityStreamsLikesPropertyName string = "likes" - -// ActivityStreamsLocationPropertyName is the string literal of the name for the location property in the ActivityStreams vocabulary. -var ActivityStreamsLocationPropertyName string = "location" - -// ActivityStreamsLongitudePropertyName is the string literal of the name for the longitude property in the ActivityStreams vocabulary. -var ActivityStreamsLongitudePropertyName string = "longitude" - -// ActivityStreamsManuallyApprovesFollowersPropertyName is the string literal of the name for the manuallyApprovesFollowers property in the ActivityStreams vocabulary. -var ActivityStreamsManuallyApprovesFollowersPropertyName string = "manuallyApprovesFollowers" - -// ActivityStreamsMediaTypePropertyName is the string literal of the name for the mediaType property in the ActivityStreams vocabulary. -var ActivityStreamsMediaTypePropertyName string = "mediaType" - -// ActivityStreamsNamePropertyName is the string literal of the name for the name property in the ActivityStreams vocabulary. -var ActivityStreamsNamePropertyName string = "name" - -// ActivityStreamsNamePropertyMapName is the string literal of the name for the name property in the ActivityStreams vocabulary when it is a natural language map. -var ActivityStreamsNamePropertyMapName string = "nameMap" - -// ActivityStreamsNextPropertyName is the string literal of the name for the next property in the ActivityStreams vocabulary. -var ActivityStreamsNextPropertyName string = "next" - -// ActivityStreamsObjectPropertyName is the string literal of the name for the object property in the ActivityStreams vocabulary. -var ActivityStreamsObjectPropertyName string = "object" - -// ActivityStreamsOneOfPropertyName is the string literal of the name for the oneOf property in the ActivityStreams vocabulary. -var ActivityStreamsOneOfPropertyName string = "oneOf" - -// ActivityStreamsOrderedItemsPropertyName is the string literal of the name for the orderedItems property in the ActivityStreams vocabulary. -var ActivityStreamsOrderedItemsPropertyName string = "orderedItems" - -// ActivityStreamsOriginPropertyName is the string literal of the name for the origin property in the ActivityStreams vocabulary. -var ActivityStreamsOriginPropertyName string = "origin" - -// ActivityStreamsOutboxPropertyName is the string literal of the name for the outbox property in the ActivityStreams vocabulary. -var ActivityStreamsOutboxPropertyName string = "outbox" - -// W3IDSecurityV1OwnerPropertyName is the string literal of the name for the owner property in the W3IDSecurityV1 vocabulary. -var W3IDSecurityV1OwnerPropertyName string = "owner" - -// ActivityStreamsPartOfPropertyName is the string literal of the name for the partOf property in the ActivityStreams vocabulary. -var ActivityStreamsPartOfPropertyName string = "partOf" - -// ActivityStreamsPreferredUsernamePropertyName is the string literal of the name for the preferredUsername property in the ActivityStreams vocabulary. -var ActivityStreamsPreferredUsernamePropertyName string = "preferredUsername" - -// ActivityStreamsPreferredUsernamePropertyMapName is the string literal of the name for the preferredUsername property in the ActivityStreams vocabulary when it is a natural language map. -var ActivityStreamsPreferredUsernamePropertyMapName string = "preferredUsernameMap" - -// ActivityStreamsPrevPropertyName is the string literal of the name for the prev property in the ActivityStreams vocabulary. -var ActivityStreamsPrevPropertyName string = "prev" - -// ActivityStreamsPreviewPropertyName is the string literal of the name for the preview property in the ActivityStreams vocabulary. -var ActivityStreamsPreviewPropertyName string = "preview" - -// W3IDSecurityV1PublicKeyPropertyName is the string literal of the name for the publicKey property in the W3IDSecurityV1 vocabulary. -var W3IDSecurityV1PublicKeyPropertyName string = "publicKey" - -// W3IDSecurityV1PublicKeyPemPropertyName is the string literal of the name for the publicKeyPem property in the W3IDSecurityV1 vocabulary. -var W3IDSecurityV1PublicKeyPemPropertyName string = "publicKeyPem" - -// ActivityStreamsPublishedPropertyName is the string literal of the name for the published property in the ActivityStreams vocabulary. -var ActivityStreamsPublishedPropertyName string = "published" - -// ActivityStreamsRadiusPropertyName is the string literal of the name for the radius property in the ActivityStreams vocabulary. -var ActivityStreamsRadiusPropertyName string = "radius" - -// ForgeFedRefPropertyName is the string literal of the name for the ref property in the ForgeFed vocabulary. -var ForgeFedRefPropertyName string = "ref" - -// ActivityStreamsRelPropertyName is the string literal of the name for the rel property in the ActivityStreams vocabulary. -var ActivityStreamsRelPropertyName string = "rel" - -// ActivityStreamsRelationshipPropertyName is the string literal of the name for the relationship property in the ActivityStreams vocabulary. -var ActivityStreamsRelationshipPropertyName string = "relationship" - -// ActivityStreamsRepliesPropertyName is the string literal of the name for the replies property in the ActivityStreams vocabulary. -var ActivityStreamsRepliesPropertyName string = "replies" - -// ActivityStreamsResultPropertyName is the string literal of the name for the result property in the ActivityStreams vocabulary. -var ActivityStreamsResultPropertyName string = "result" - -// ActivityStreamsSharesPropertyName is the string literal of the name for the shares property in the ActivityStreams vocabulary. -var ActivityStreamsSharesPropertyName string = "shares" - -// TootSignatureAlgorithmPropertyName is the string literal of the name for the signatureAlgorithm property in the Toot vocabulary. -var TootSignatureAlgorithmPropertyName string = "signatureAlgorithm" - -// TootSignatureValuePropertyName is the string literal of the name for the signatureValue property in the Toot vocabulary. -var TootSignatureValuePropertyName string = "signatureValue" - -// ActivityStreamsSourcePropertyName is the string literal of the name for the source property in the ActivityStreams vocabulary. -var ActivityStreamsSourcePropertyName string = "source" - -// ActivityStreamsStartIndexPropertyName is the string literal of the name for the startIndex property in the ActivityStreams vocabulary. -var ActivityStreamsStartIndexPropertyName string = "startIndex" - -// ActivityStreamsStartTimePropertyName is the string literal of the name for the startTime property in the ActivityStreams vocabulary. -var ActivityStreamsStartTimePropertyName string = "startTime" - -// ActivityStreamsStreamsPropertyName is the string literal of the name for the streams property in the ActivityStreams vocabulary. -var ActivityStreamsStreamsPropertyName string = "streams" - -// ActivityStreamsSubjectPropertyName is the string literal of the name for the subject property in the ActivityStreams vocabulary. -var ActivityStreamsSubjectPropertyName string = "subject" - -// ActivityStreamsSummaryPropertyName is the string literal of the name for the summary property in the ActivityStreams vocabulary. -var ActivityStreamsSummaryPropertyName string = "summary" - -// ActivityStreamsSummaryPropertyMapName is the string literal of the name for the summary property in the ActivityStreams vocabulary when it is a natural language map. -var ActivityStreamsSummaryPropertyMapName string = "summaryMap" - -// ActivityStreamsTagPropertyName is the string literal of the name for the tag property in the ActivityStreams vocabulary. -var ActivityStreamsTagPropertyName string = "tag" - -// ActivityStreamsTargetPropertyName is the string literal of the name for the target property in the ActivityStreams vocabulary. -var ActivityStreamsTargetPropertyName string = "target" - -// ForgeFedTeamPropertyName is the string literal of the name for the team property in the ForgeFed vocabulary. -var ForgeFedTeamPropertyName string = "team" - -// ForgeFedTicketsTrackedByPropertyName is the string literal of the name for the ticketsTrackedBy property in the ForgeFed vocabulary. -var ForgeFedTicketsTrackedByPropertyName string = "ticketsTrackedBy" - -// ActivityStreamsToPropertyName is the string literal of the name for the to property in the ActivityStreams vocabulary. -var ActivityStreamsToPropertyName string = "to" - -// ActivityStreamsTotalItemsPropertyName is the string literal of the name for the totalItems property in the ActivityStreams vocabulary. -var ActivityStreamsTotalItemsPropertyName string = "totalItems" - -// ForgeFedTracksTicketsForPropertyName is the string literal of the name for the tracksTicketsFor property in the ForgeFed vocabulary. -var ForgeFedTracksTicketsForPropertyName string = "tracksTicketsFor" - -// ActivityStreamsUnitsPropertyName is the string literal of the name for the units property in the ActivityStreams vocabulary. -var ActivityStreamsUnitsPropertyName string = "units" - -// ActivityStreamsUpdatedPropertyName is the string literal of the name for the updated property in the ActivityStreams vocabulary. -var ActivityStreamsUpdatedPropertyName string = "updated" - -// ActivityStreamsUrlPropertyName is the string literal of the name for the url property in the ActivityStreams vocabulary. -var ActivityStreamsUrlPropertyName string = "url" - -// TootVotersCountPropertyName is the string literal of the name for the votersCount property in the Toot vocabulary. -var TootVotersCountPropertyName string = "votersCount" - -// ActivityStreamsWidthPropertyName is the string literal of the name for the width property in the ActivityStreams vocabulary. -var ActivityStreamsWidthPropertyName string = "width" diff --git a/vendor/github.com/go-fed/activity/streams/gen_doc.go b/vendor/github.com/go-fed/activity/streams/gen_doc.go deleted file mode 100644 index 40fce7258..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_doc.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package streams contains constructors and functions necessary for applications -// to serialize, deserialize, and use ActivityStreams types in Go. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is useful to three classes of developers: end-user-application -// developers, specification writers creating an ActivityStream Extension, and -// ActivityPub implementors wanting to create an alternate ActivityStreams -// implementation that still satisfies the interfaces generated by the go-fed -// tool. -// -// Application developers should limit their use to the Resolver type, the -// constructors beginning with "New", the "Extends" functions, the -// "DisjointWith" functions, the "ExtendedBy" functions, and any interfaces -// returned in those functions in this package. This lets applications use -// Resolvers to Deserialize or Dispatch specific types. The types themselves -// can Serialize as needed. The "Extends", "DisjointWith", and "ExtendedBy" -// functions help navigate the ActivityStreams hierarchy since it is not -// equivalent to object-oriented inheritance. -// -// When creating an ActivityStreams extension, developers will want to ensure -// that the generated code builds correctly and check that the properties, -// types, extensions, and disjointedness is set up correctly. Writing unit -// tests with concrete types is then the next step. If the tool has an error -// generating this code, a fix is needed in the tool as it is likely there is -// a new RDF type being used in the extension that the tool does not know how -// to resolve. Thus, most development will focus on the go-fed tool itself. -// -// Finally, ActivityStreams implementors that want drop-in replacement while -// still using the generated interfaces are highly encouraged to examine the -// Manager type in this package (in addition to the constructors) as these are -// the locations where concrete types are instantiated. When supplying a -// different type in these two locations, the other generated code will -// propagate it throughout the rest of an application. The Manager is -// instantiated as a singleton at init time in this library. It is then -// injected into each implementation library so they can deserialize their -// needed types without relying on the underlying concrete type. -// -// Subdirectories of this package include implementation files and functions -// that are not intended to be directly linked to applications, but are used -// by this particular package. It is strongly recommended to only use the -// property interfaces and type interfaces in subdirectories and limiting -// concrete types to those in this package. The go-fed tool is likely to -// contain a pruning feature in the future which will analyze an application -// and eliminate code that would be dead if it were to be generated which -// reduces the compilation time, compilation resources, and binary size of an -// application. Such a feature will not be compatible with applications that -// use the concrete implementation types. -package streams diff --git a/vendor/github.com/go-fed/activity/streams/gen_init.go b/vendor/github.com/go-fed/activity/streams/gen_init.go deleted file mode 100644 index 47f0db309..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_init.go +++ /dev/null @@ -1,410 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - propertyaccuracy "github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy" - propertyactor "github.com/go-fed/activity/streams/impl/activitystreams/property_actor" - propertyaltitude "github.com/go-fed/activity/streams/impl/activitystreams/property_altitude" - propertyanyof "github.com/go-fed/activity/streams/impl/activitystreams/property_anyof" - propertyattachment "github.com/go-fed/activity/streams/impl/activitystreams/property_attachment" - propertyattributedto "github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto" - propertyaudience "github.com/go-fed/activity/streams/impl/activitystreams/property_audience" - propertybcc "github.com/go-fed/activity/streams/impl/activitystreams/property_bcc" - propertybto "github.com/go-fed/activity/streams/impl/activitystreams/property_bto" - propertycc "github.com/go-fed/activity/streams/impl/activitystreams/property_cc" - propertyclosed "github.com/go-fed/activity/streams/impl/activitystreams/property_closed" - propertycontent "github.com/go-fed/activity/streams/impl/activitystreams/property_content" - propertycontext "github.com/go-fed/activity/streams/impl/activitystreams/property_context" - propertycurrent "github.com/go-fed/activity/streams/impl/activitystreams/property_current" - propertydeleted "github.com/go-fed/activity/streams/impl/activitystreams/property_deleted" - propertydescribes "github.com/go-fed/activity/streams/impl/activitystreams/property_describes" - propertyduration "github.com/go-fed/activity/streams/impl/activitystreams/property_duration" - propertyendtime "github.com/go-fed/activity/streams/impl/activitystreams/property_endtime" - propertyfirst "github.com/go-fed/activity/streams/impl/activitystreams/property_first" - propertyfollowers "github.com/go-fed/activity/streams/impl/activitystreams/property_followers" - propertyfollowing "github.com/go-fed/activity/streams/impl/activitystreams/property_following" - propertyformertype "github.com/go-fed/activity/streams/impl/activitystreams/property_formertype" - propertygenerator "github.com/go-fed/activity/streams/impl/activitystreams/property_generator" - propertyheight "github.com/go-fed/activity/streams/impl/activitystreams/property_height" - propertyhref "github.com/go-fed/activity/streams/impl/activitystreams/property_href" - propertyhreflang "github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang" - propertyicon "github.com/go-fed/activity/streams/impl/activitystreams/property_icon" - propertyimage "github.com/go-fed/activity/streams/impl/activitystreams/property_image" - propertyinbox "github.com/go-fed/activity/streams/impl/activitystreams/property_inbox" - propertyinreplyto "github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto" - propertyinstrument "github.com/go-fed/activity/streams/impl/activitystreams/property_instrument" - propertyitems "github.com/go-fed/activity/streams/impl/activitystreams/property_items" - propertylast "github.com/go-fed/activity/streams/impl/activitystreams/property_last" - propertylatitude "github.com/go-fed/activity/streams/impl/activitystreams/property_latitude" - propertyliked "github.com/go-fed/activity/streams/impl/activitystreams/property_liked" - propertylikes "github.com/go-fed/activity/streams/impl/activitystreams/property_likes" - propertylocation "github.com/go-fed/activity/streams/impl/activitystreams/property_location" - propertylongitude "github.com/go-fed/activity/streams/impl/activitystreams/property_longitude" - propertymanuallyapprovesfollowers "github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers" - propertymediatype "github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype" - propertyname "github.com/go-fed/activity/streams/impl/activitystreams/property_name" - propertynext "github.com/go-fed/activity/streams/impl/activitystreams/property_next" - propertyobject "github.com/go-fed/activity/streams/impl/activitystreams/property_object" - propertyoneof "github.com/go-fed/activity/streams/impl/activitystreams/property_oneof" - propertyordereditems "github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems" - propertyorigin "github.com/go-fed/activity/streams/impl/activitystreams/property_origin" - propertyoutbox "github.com/go-fed/activity/streams/impl/activitystreams/property_outbox" - propertypartof "github.com/go-fed/activity/streams/impl/activitystreams/property_partof" - propertypreferredusername "github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername" - propertyprev "github.com/go-fed/activity/streams/impl/activitystreams/property_prev" - propertypreview "github.com/go-fed/activity/streams/impl/activitystreams/property_preview" - propertypublished "github.com/go-fed/activity/streams/impl/activitystreams/property_published" - propertyradius "github.com/go-fed/activity/streams/impl/activitystreams/property_radius" - propertyrel "github.com/go-fed/activity/streams/impl/activitystreams/property_rel" - propertyrelationship "github.com/go-fed/activity/streams/impl/activitystreams/property_relationship" - propertyreplies "github.com/go-fed/activity/streams/impl/activitystreams/property_replies" - propertyresult "github.com/go-fed/activity/streams/impl/activitystreams/property_result" - propertyshares "github.com/go-fed/activity/streams/impl/activitystreams/property_shares" - propertysource "github.com/go-fed/activity/streams/impl/activitystreams/property_source" - propertystartindex "github.com/go-fed/activity/streams/impl/activitystreams/property_startindex" - propertystarttime "github.com/go-fed/activity/streams/impl/activitystreams/property_starttime" - propertystreams "github.com/go-fed/activity/streams/impl/activitystreams/property_streams" - propertysubject "github.com/go-fed/activity/streams/impl/activitystreams/property_subject" - propertysummary "github.com/go-fed/activity/streams/impl/activitystreams/property_summary" - propertytag "github.com/go-fed/activity/streams/impl/activitystreams/property_tag" - propertytarget "github.com/go-fed/activity/streams/impl/activitystreams/property_target" - propertyto "github.com/go-fed/activity/streams/impl/activitystreams/property_to" - propertytotalitems "github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems" - propertyunits "github.com/go-fed/activity/streams/impl/activitystreams/property_units" - propertyupdated "github.com/go-fed/activity/streams/impl/activitystreams/property_updated" - propertyurl "github.com/go-fed/activity/streams/impl/activitystreams/property_url" - propertywidth "github.com/go-fed/activity/streams/impl/activitystreams/property_width" - typeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_accept" - typeactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_activity" - typeadd "github.com/go-fed/activity/streams/impl/activitystreams/type_add" - typeannounce "github.com/go-fed/activity/streams/impl/activitystreams/type_announce" - typeapplication "github.com/go-fed/activity/streams/impl/activitystreams/type_application" - typearrive "github.com/go-fed/activity/streams/impl/activitystreams/type_arrive" - typearticle "github.com/go-fed/activity/streams/impl/activitystreams/type_article" - typeaudio "github.com/go-fed/activity/streams/impl/activitystreams/type_audio" - typeblock "github.com/go-fed/activity/streams/impl/activitystreams/type_block" - typecollection "github.com/go-fed/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "github.com/go-fed/activity/streams/impl/activitystreams/type_create" - typedelete "github.com/go-fed/activity/streams/impl/activitystreams/type_delete" - typedislike "github.com/go-fed/activity/streams/impl/activitystreams/type_dislike" - typedocument "github.com/go-fed/activity/streams/impl/activitystreams/type_document" - typeevent "github.com/go-fed/activity/streams/impl/activitystreams/type_event" - typeflag "github.com/go-fed/activity/streams/impl/activitystreams/type_flag" - typefollow "github.com/go-fed/activity/streams/impl/activitystreams/type_follow" - typegroup "github.com/go-fed/activity/streams/impl/activitystreams/type_group" - typeignore "github.com/go-fed/activity/streams/impl/activitystreams/type_ignore" - typeimage "github.com/go-fed/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "github.com/go-fed/activity/streams/impl/activitystreams/type_invite" - typejoin "github.com/go-fed/activity/streams/impl/activitystreams/type_join" - typeleave "github.com/go-fed/activity/streams/impl/activitystreams/type_leave" - typelike "github.com/go-fed/activity/streams/impl/activitystreams/type_like" - typelink "github.com/go-fed/activity/streams/impl/activitystreams/type_link" - typelisten "github.com/go-fed/activity/streams/impl/activitystreams/type_listen" - typemention "github.com/go-fed/activity/streams/impl/activitystreams/type_mention" - typemove "github.com/go-fed/activity/streams/impl/activitystreams/type_move" - typenote "github.com/go-fed/activity/streams/impl/activitystreams/type_note" - typeobject "github.com/go-fed/activity/streams/impl/activitystreams/type_object" - typeoffer "github.com/go-fed/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "github.com/go-fed/activity/streams/impl/activitystreams/type_organization" - typepage "github.com/go-fed/activity/streams/impl/activitystreams/type_page" - typeperson "github.com/go-fed/activity/streams/impl/activitystreams/type_person" - typeplace "github.com/go-fed/activity/streams/impl/activitystreams/type_place" - typeprofile "github.com/go-fed/activity/streams/impl/activitystreams/type_profile" - typequestion "github.com/go-fed/activity/streams/impl/activitystreams/type_question" - typeread "github.com/go-fed/activity/streams/impl/activitystreams/type_read" - typereject "github.com/go-fed/activity/streams/impl/activitystreams/type_reject" - typerelationship "github.com/go-fed/activity/streams/impl/activitystreams/type_relationship" - typeremove "github.com/go-fed/activity/streams/impl/activitystreams/type_remove" - typeservice "github.com/go-fed/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone" - typetravel "github.com/go-fed/activity/streams/impl/activitystreams/type_travel" - typeundo "github.com/go-fed/activity/streams/impl/activitystreams/type_undo" - typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update" - typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video" - typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view" - propertyassignedto "github.com/go-fed/activity/streams/impl/forgefed/property_assignedto" - propertycommitted "github.com/go-fed/activity/streams/impl/forgefed/property_committed" - propertycommittedby "github.com/go-fed/activity/streams/impl/forgefed/property_committedby" - propertydependants "github.com/go-fed/activity/streams/impl/forgefed/property_dependants" - propertydependedby "github.com/go-fed/activity/streams/impl/forgefed/property_dependedby" - propertydependencies "github.com/go-fed/activity/streams/impl/forgefed/property_dependencies" - propertydependson "github.com/go-fed/activity/streams/impl/forgefed/property_dependson" - propertydescription "github.com/go-fed/activity/streams/impl/forgefed/property_description" - propertyearlyitems "github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems" - propertyfilesadded "github.com/go-fed/activity/streams/impl/forgefed/property_filesadded" - propertyfilesmodified "github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified" - propertyfilesremoved "github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved" - propertyforks "github.com/go-fed/activity/streams/impl/forgefed/property_forks" - propertyhash "github.com/go-fed/activity/streams/impl/forgefed/property_hash" - propertyisresolved "github.com/go-fed/activity/streams/impl/forgefed/property_isresolved" - propertyref "github.com/go-fed/activity/streams/impl/forgefed/property_ref" - propertyteam "github.com/go-fed/activity/streams/impl/forgefed/property_team" - propertyticketstrackedby "github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby" - propertytracksticketsfor "github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor" - typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch" - typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit" - typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push" - typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository" - typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket" - typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency" - propertyblurhash "github.com/go-fed/activity/streams/impl/toot/property_blurhash" - propertydiscoverable "github.com/go-fed/activity/streams/impl/toot/property_discoverable" - propertyfeatured "github.com/go-fed/activity/streams/impl/toot/property_featured" - propertysignaturealgorithm "github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm" - propertysignaturevalue "github.com/go-fed/activity/streams/impl/toot/property_signaturevalue" - propertyvoterscount "github.com/go-fed/activity/streams/impl/toot/property_voterscount" - typeemoji "github.com/go-fed/activity/streams/impl/toot/type_emoji" - typeidentityproof "github.com/go-fed/activity/streams/impl/toot/type_identityproof" - propertyowner "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner" - propertypublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey" - propertypublickeypem "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem" - typepublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey" -) - -var mgr *Manager - -// init handles the 'magic' of creating a Manager and dependency-injecting it into -// every other code-generated package. This gives the implementations access -// to create any type needed to deserialize, without relying on the other -// specific concrete implementations. In order to replace a go-fed created -// type with your own, be sure to have the manager call your own -// implementation's deserialize functions instead of the built-in type. -// Finally, each implementation views the Manager as an interface with only a -// subset of funcitons available. This means this Manager implements the union -// of those interfaces. -func init() { - mgr = &Manager{} - propertyaccuracy.SetManager(mgr) - propertyactor.SetManager(mgr) - propertyaltitude.SetManager(mgr) - propertyanyof.SetManager(mgr) - propertyattachment.SetManager(mgr) - propertyattributedto.SetManager(mgr) - propertyaudience.SetManager(mgr) - propertybcc.SetManager(mgr) - propertybto.SetManager(mgr) - propertycc.SetManager(mgr) - propertyclosed.SetManager(mgr) - propertycontent.SetManager(mgr) - propertycontext.SetManager(mgr) - propertycurrent.SetManager(mgr) - propertydeleted.SetManager(mgr) - propertydescribes.SetManager(mgr) - propertyduration.SetManager(mgr) - propertyendtime.SetManager(mgr) - propertyfirst.SetManager(mgr) - propertyfollowers.SetManager(mgr) - propertyfollowing.SetManager(mgr) - propertyformertype.SetManager(mgr) - propertygenerator.SetManager(mgr) - propertyheight.SetManager(mgr) - propertyhref.SetManager(mgr) - propertyhreflang.SetManager(mgr) - propertyicon.SetManager(mgr) - propertyimage.SetManager(mgr) - propertyinbox.SetManager(mgr) - propertyinreplyto.SetManager(mgr) - propertyinstrument.SetManager(mgr) - propertyitems.SetManager(mgr) - propertylast.SetManager(mgr) - propertylatitude.SetManager(mgr) - propertyliked.SetManager(mgr) - propertylikes.SetManager(mgr) - propertylocation.SetManager(mgr) - propertylongitude.SetManager(mgr) - propertymanuallyapprovesfollowers.SetManager(mgr) - propertymediatype.SetManager(mgr) - propertyname.SetManager(mgr) - propertynext.SetManager(mgr) - propertyobject.SetManager(mgr) - propertyoneof.SetManager(mgr) - propertyordereditems.SetManager(mgr) - propertyorigin.SetManager(mgr) - propertyoutbox.SetManager(mgr) - propertypartof.SetManager(mgr) - propertypreferredusername.SetManager(mgr) - propertyprev.SetManager(mgr) - propertypreview.SetManager(mgr) - propertypublished.SetManager(mgr) - propertyradius.SetManager(mgr) - propertyrel.SetManager(mgr) - propertyrelationship.SetManager(mgr) - propertyreplies.SetManager(mgr) - propertyresult.SetManager(mgr) - propertyshares.SetManager(mgr) - propertysource.SetManager(mgr) - propertystartindex.SetManager(mgr) - propertystarttime.SetManager(mgr) - propertystreams.SetManager(mgr) - propertysubject.SetManager(mgr) - propertysummary.SetManager(mgr) - propertytag.SetManager(mgr) - propertytarget.SetManager(mgr) - propertyto.SetManager(mgr) - propertytotalitems.SetManager(mgr) - propertyunits.SetManager(mgr) - propertyupdated.SetManager(mgr) - propertyurl.SetManager(mgr) - propertywidth.SetManager(mgr) - typeaccept.SetManager(mgr) - typeactivity.SetManager(mgr) - typeadd.SetManager(mgr) - typeannounce.SetManager(mgr) - typeapplication.SetManager(mgr) - typearrive.SetManager(mgr) - typearticle.SetManager(mgr) - typeaudio.SetManager(mgr) - typeblock.SetManager(mgr) - typecollection.SetManager(mgr) - typecollectionpage.SetManager(mgr) - typecreate.SetManager(mgr) - typedelete.SetManager(mgr) - typedislike.SetManager(mgr) - typedocument.SetManager(mgr) - typeevent.SetManager(mgr) - typeflag.SetManager(mgr) - typefollow.SetManager(mgr) - typegroup.SetManager(mgr) - typeignore.SetManager(mgr) - typeimage.SetManager(mgr) - typeintransitiveactivity.SetManager(mgr) - typeinvite.SetManager(mgr) - typejoin.SetManager(mgr) - typeleave.SetManager(mgr) - typelike.SetManager(mgr) - typelink.SetManager(mgr) - typelisten.SetManager(mgr) - typemention.SetManager(mgr) - typemove.SetManager(mgr) - typenote.SetManager(mgr) - typeobject.SetManager(mgr) - typeoffer.SetManager(mgr) - typeorderedcollection.SetManager(mgr) - typeorderedcollectionpage.SetManager(mgr) - typeorganization.SetManager(mgr) - typepage.SetManager(mgr) - typeperson.SetManager(mgr) - typeplace.SetManager(mgr) - typeprofile.SetManager(mgr) - typequestion.SetManager(mgr) - typeread.SetManager(mgr) - typereject.SetManager(mgr) - typerelationship.SetManager(mgr) - typeremove.SetManager(mgr) - typeservice.SetManager(mgr) - typetentativeaccept.SetManager(mgr) - typetentativereject.SetManager(mgr) - typetombstone.SetManager(mgr) - typetravel.SetManager(mgr) - typeundo.SetManager(mgr) - typeupdate.SetManager(mgr) - typevideo.SetManager(mgr) - typeview.SetManager(mgr) - propertyassignedto.SetManager(mgr) - propertycommitted.SetManager(mgr) - propertycommittedby.SetManager(mgr) - propertydependants.SetManager(mgr) - propertydependedby.SetManager(mgr) - propertydependencies.SetManager(mgr) - propertydependson.SetManager(mgr) - propertydescription.SetManager(mgr) - propertyearlyitems.SetManager(mgr) - propertyfilesadded.SetManager(mgr) - propertyfilesmodified.SetManager(mgr) - propertyfilesremoved.SetManager(mgr) - propertyforks.SetManager(mgr) - propertyhash.SetManager(mgr) - propertyisresolved.SetManager(mgr) - propertyref.SetManager(mgr) - propertyteam.SetManager(mgr) - propertyticketstrackedby.SetManager(mgr) - propertytracksticketsfor.SetManager(mgr) - typebranch.SetManager(mgr) - typecommit.SetManager(mgr) - typepush.SetManager(mgr) - typerepository.SetManager(mgr) - typeticket.SetManager(mgr) - typeticketdependency.SetManager(mgr) - propertyblurhash.SetManager(mgr) - propertydiscoverable.SetManager(mgr) - propertyfeatured.SetManager(mgr) - propertysignaturealgorithm.SetManager(mgr) - propertysignaturevalue.SetManager(mgr) - propertyvoterscount.SetManager(mgr) - typeemoji.SetManager(mgr) - typeidentityproof.SetManager(mgr) - propertyowner.SetManager(mgr) - propertypublickey.SetManager(mgr) - propertypublickeypem.SetManager(mgr) - typepublickey.SetManager(mgr) - typeaccept.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeactivity.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeadd.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeannounce.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeapplication.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typearrive.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typearticle.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeaudio.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeblock.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typecollection.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typecollectionpage.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typecreate.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typedelete.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typedislike.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typedocument.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeevent.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeflag.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typefollow.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typegroup.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeignore.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeimage.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeintransitiveactivity.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeinvite.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typejoin.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeleave.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typelike.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typelink.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typelisten.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typemention.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typemove.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typenote.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeobject.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeoffer.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeorderedcollection.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeorderedcollectionpage.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeorganization.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typepage.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeperson.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeplace.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeprofile.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typequestion.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeread.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typereject.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typerelationship.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeremove.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeservice.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typetentativeaccept.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typetentativereject.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typetombstone.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typetravel.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeundo.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeupdate.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typevideo.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeview.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typebranch.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typecommit.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typepush.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typerepository.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeticket.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeticketdependency.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeemoji.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typeidentityproof.SetTypePropertyConstructor(NewJSONLDTypeProperty) - typepublickey.SetTypePropertyConstructor(NewJSONLDTypeProperty) -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_json_resolver.go b/vendor/github.com/go-fed/activity/streams/gen_json_resolver.go deleted file mode 100644 index 0c6773d52..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_json_resolver.go +++ /dev/null @@ -1,978 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - "context" - "errors" - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// JSONResolver resolves a JSON-deserialized map into its concrete ActivityStreams -// type -type JSONResolver struct { - callbacks []interface{} -} - -// NewJSONResolver creates a new Resolver that takes a JSON-deserialized generic -// map and determines the correct concrete Go type. The callback function is -// guaranteed to receive a value whose underlying ActivityStreams type matches -// the concrete interface name in its signature. The callback functions must -// be of the form: -// -// func(context.Context, ) error -// -// where TypeInterface is the code-generated interface for an ActivityStream -// type. An error is returned if a callback function does not match this -// signature. -func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) { - for _, cb := range callbacks { - // Each callback function must satisfy one known function signature, or else we will generate a runtime error instead of silently fail. - switch cb.(type) { - case func(context.Context, vocab.ActivityStreamsAccept) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsActivity) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsAdd) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsAnnounce) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsApplication) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsArrive) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsArticle) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsAudio) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsBlock) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ForgeFedBranch) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsCollection) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsCollectionPage) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ForgeFedCommit) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsCreate) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsDelete) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsDislike) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsDocument) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.TootEmoji) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsEvent) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsFlag) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsFollow) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsGroup) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.TootIdentityProof) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsIgnore) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsImage) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsInvite) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsJoin) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsLeave) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsLike) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsLink) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsListen) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsMention) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsMove) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsNote) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsObject) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsOffer) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrderedCollection) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrganization) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsPage) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsPerson) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsPlace) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsProfile) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.W3IDSecurityV1PublicKey) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ForgeFedPush) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsQuestion) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsRead) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsReject) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsRelationship) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsRemove) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ForgeFedRepository) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsService) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsTentativeAccept) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsTentativeReject) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ForgeFedTicket) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ForgeFedTicketDependency) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsTombstone) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsTravel) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsUndo) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsUpdate) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsVideo) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsView) error: - // Do nothing, this callback has a correct signature. - default: - return nil, errors.New("a callback function is of the wrong signature and would never be called") - } - } - return &JSONResolver{callbacks: callbacks}, nil -} - -// toAliasMap converts a JSONLD context into a map of vocabulary name to alias. -func toAliasMap(i interface{}) (m map[string]string) { - m = make(map[string]string) - toHttpHttpsFn := func(s string) (ok bool, http, https string) { - if strings.HasPrefix(s, "http://") { - ok = true - http = s - https = "https" + strings.TrimPrefix(s, "http") - } else if strings.HasPrefix(s, "https://") { - ok = true - https = s - http = "http" + strings.TrimPrefix(s, "https") - } - return - } - switch v := i.(type) { - case string: - // Single entry, no alias. - if ok, http, https := toHttpHttpsFn(v); ok { - m[http] = "" - m[https] = "" - } else { - m[v] = "" - } - case []interface{}: - // Recursively apply. - for _, elem := range v { - r := toAliasMap(elem) - for k, val := range r { - m[k] = val - } - } - case map[string]interface{}: - // Map any aliases. - for k, val := range v { - // Only handle string aliases. - switch conc := val.(type) { - case string: - m[k] = conc - } - } - } - return -} - -// Resolve determines the ActivityStreams type of the payload, then applies the -// first callback function whose signature accepts the ActivityStreams value's -// type. This strictly assures that the callback function will only be passed -// ActivityStream objects whose type matches its interface. Returns an error -// if the ActivityStreams type does not match callbackers or is not a type -// handled by the generated code. If multiple types are present, it will check -// each one in order and apply only the first one. It returns an unhandled -// error for a multi-typed object if none of the types were able to be handled. -func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) error { - typeValue, ok := m["type"] - if !ok { - return fmt.Errorf("cannot determine ActivityStreams type: 'type' property is missing") - } - rawContext, ok := m["@context"] - if !ok { - return fmt.Errorf("cannot determine ActivityStreams type: '@context' is missing") - } - aliasMap := toAliasMap(rawContext) - // Begin: Private lambda to handle a single string "type" value. Makes code generation easier. - handleFn := func(typeString string) error { - ActivityStreamsAlias, ok := aliasMap["https://www.w3.org/ns/activitystreams"] - if !ok { - ActivityStreamsAlias = aliasMap["http://www.w3.org/ns/activitystreams"] - } - if len(ActivityStreamsAlias) > 0 { - ActivityStreamsAlias += ":" - } - ForgeFedAlias, ok := aliasMap["https://forgefed.peers.community/ns"] - if !ok { - ForgeFedAlias = aliasMap["http://forgefed.peers.community/ns"] - } - if len(ForgeFedAlias) > 0 { - ForgeFedAlias += ":" - } - TootAlias, ok := aliasMap["https://joinmastodon.org/ns"] - if !ok { - TootAlias = aliasMap["http://joinmastodon.org/ns"] - } - if len(TootAlias) > 0 { - TootAlias += ":" - } - W3IDSecurityV1Alias, ok := aliasMap["https://w3id.org/security/v1"] - if !ok { - W3IDSecurityV1Alias = aliasMap["http://w3id.org/security/v1"] - } - if len(W3IDSecurityV1Alias) > 0 { - W3IDSecurityV1Alias += ":" - } - - if typeString == ActivityStreamsAlias+"Accept" { - v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAccept) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Activity" { - v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsActivity) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Add" { - v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAdd) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Announce" { - v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAnnounce) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Application" { - v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsApplication) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Arrive" { - v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArrive) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Article" { - v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArticle) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Audio" { - v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAudio) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Block" { - v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsBlock) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ForgeFedAlias+"Branch" { - v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ForgeFedBranch) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Collection" { - v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollection) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"CollectionPage" { - v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollectionPage) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ForgeFedAlias+"Commit" { - v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ForgeFedCommit) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Create" { - v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCreate) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Delete" { - v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDelete) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Dislike" { - v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDislike) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Document" { - v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDocument) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == TootAlias+"Emoji" { - v, err := mgr.DeserializeEmojiToot()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.TootEmoji) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Event" { - v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsEvent) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Flag" { - v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFlag) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Follow" { - v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFollow) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Group" { - v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsGroup) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == TootAlias+"IdentityProof" { - v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.TootIdentityProof) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Ignore" { - v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIgnore) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Image" { - v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsImage) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"IntransitiveActivity" { - v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Invite" { - v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsInvite) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Join" { - v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsJoin) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Leave" { - v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLeave) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Like" { - v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLike) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Link" { - v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLink) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Listen" { - v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsListen) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Mention" { - v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMention) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Move" { - v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMove) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Note" { - v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsNote) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Object" { - v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsObject) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Offer" { - v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOffer) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"OrderedCollection" { - v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollection) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"OrderedCollectionPage" { - v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Organization" { - v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrganization) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Page" { - v, err := mgr.DeserializePageActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPage) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Person" { - v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPerson) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Place" { - v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPlace) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Profile" { - v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsProfile) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == W3IDSecurityV1Alias+"PublicKey" { - v, err := mgr.DeserializePublicKeyW3IDSecurityV1()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.W3IDSecurityV1PublicKey) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ForgeFedAlias+"Push" { - v, err := mgr.DeserializePushForgeFed()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ForgeFedPush) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Question" { - v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsQuestion) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Read" { - v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRead) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Reject" { - v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsReject) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Relationship" { - v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRelationship) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Remove" { - v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRemove) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ForgeFedAlias+"Repository" { - v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ForgeFedRepository) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Service" { - v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsService) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"TentativeAccept" { - v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeAccept) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"TentativeReject" { - v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeReject) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ForgeFedAlias+"Ticket" { - v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ForgeFedTicket) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ForgeFedAlias+"TicketDependency" { - v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ForgeFedTicketDependency) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Tombstone" { - v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTombstone) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Travel" { - v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTravel) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Undo" { - v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUndo) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Update" { - v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUpdate) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"Video" { - v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsVideo) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else if typeString == ActivityStreamsAlias+"View" { - v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap) - if err != nil { - return err - } - for _, i := range this.callbacks { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsView) error); ok { - return fn(ctx, v) - } - } - return ErrNoCallbackMatch - } else { - return ErrUnhandledType - } - } - // End: Private lambda - if typeStr, ok := typeValue.(string); ok { - return handleFn(typeStr) - } else if typeIArr, ok := typeValue.([]interface{}); ok { - for _, typeI := range typeIArr { - if typeStr, ok := typeI.(string); ok { - if err := handleFn(typeStr); err == nil { - return nil - } else if err == ErrUnhandledType { - // Keep trying other types: only if all fail do we return this error. - continue - } else { - return err - } - } - } - return ErrUnhandledType - } else { - return ErrUnhandledType - } -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_manager.go b/vendor/github.com/go-fed/activity/streams/gen_manager.go deleted file mode 100644 index 0f933e1fd..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_manager.go +++ /dev/null @@ -1,2307 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - propertyaccuracy "github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy" - propertyactor "github.com/go-fed/activity/streams/impl/activitystreams/property_actor" - propertyaltitude "github.com/go-fed/activity/streams/impl/activitystreams/property_altitude" - propertyanyof "github.com/go-fed/activity/streams/impl/activitystreams/property_anyof" - propertyattachment "github.com/go-fed/activity/streams/impl/activitystreams/property_attachment" - propertyattributedto "github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto" - propertyaudience "github.com/go-fed/activity/streams/impl/activitystreams/property_audience" - propertybcc "github.com/go-fed/activity/streams/impl/activitystreams/property_bcc" - propertybto "github.com/go-fed/activity/streams/impl/activitystreams/property_bto" - propertycc "github.com/go-fed/activity/streams/impl/activitystreams/property_cc" - propertyclosed "github.com/go-fed/activity/streams/impl/activitystreams/property_closed" - propertycontent "github.com/go-fed/activity/streams/impl/activitystreams/property_content" - propertycontext "github.com/go-fed/activity/streams/impl/activitystreams/property_context" - propertycurrent "github.com/go-fed/activity/streams/impl/activitystreams/property_current" - propertydeleted "github.com/go-fed/activity/streams/impl/activitystreams/property_deleted" - propertydescribes "github.com/go-fed/activity/streams/impl/activitystreams/property_describes" - propertyduration "github.com/go-fed/activity/streams/impl/activitystreams/property_duration" - propertyendtime "github.com/go-fed/activity/streams/impl/activitystreams/property_endtime" - propertyfirst "github.com/go-fed/activity/streams/impl/activitystreams/property_first" - propertyfollowers "github.com/go-fed/activity/streams/impl/activitystreams/property_followers" - propertyfollowing "github.com/go-fed/activity/streams/impl/activitystreams/property_following" - propertyformertype "github.com/go-fed/activity/streams/impl/activitystreams/property_formertype" - propertygenerator "github.com/go-fed/activity/streams/impl/activitystreams/property_generator" - propertyheight "github.com/go-fed/activity/streams/impl/activitystreams/property_height" - propertyhref "github.com/go-fed/activity/streams/impl/activitystreams/property_href" - propertyhreflang "github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang" - propertyicon "github.com/go-fed/activity/streams/impl/activitystreams/property_icon" - propertyimage "github.com/go-fed/activity/streams/impl/activitystreams/property_image" - propertyinbox "github.com/go-fed/activity/streams/impl/activitystreams/property_inbox" - propertyinreplyto "github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto" - propertyinstrument "github.com/go-fed/activity/streams/impl/activitystreams/property_instrument" - propertyitems "github.com/go-fed/activity/streams/impl/activitystreams/property_items" - propertylast "github.com/go-fed/activity/streams/impl/activitystreams/property_last" - propertylatitude "github.com/go-fed/activity/streams/impl/activitystreams/property_latitude" - propertyliked "github.com/go-fed/activity/streams/impl/activitystreams/property_liked" - propertylikes "github.com/go-fed/activity/streams/impl/activitystreams/property_likes" - propertylocation "github.com/go-fed/activity/streams/impl/activitystreams/property_location" - propertylongitude "github.com/go-fed/activity/streams/impl/activitystreams/property_longitude" - propertymanuallyapprovesfollowers "github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers" - propertymediatype "github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype" - propertyname "github.com/go-fed/activity/streams/impl/activitystreams/property_name" - propertynext "github.com/go-fed/activity/streams/impl/activitystreams/property_next" - propertyobject "github.com/go-fed/activity/streams/impl/activitystreams/property_object" - propertyoneof "github.com/go-fed/activity/streams/impl/activitystreams/property_oneof" - propertyordereditems "github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems" - propertyorigin "github.com/go-fed/activity/streams/impl/activitystreams/property_origin" - propertyoutbox "github.com/go-fed/activity/streams/impl/activitystreams/property_outbox" - propertypartof "github.com/go-fed/activity/streams/impl/activitystreams/property_partof" - propertypreferredusername "github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername" - propertyprev "github.com/go-fed/activity/streams/impl/activitystreams/property_prev" - propertypreview "github.com/go-fed/activity/streams/impl/activitystreams/property_preview" - propertypublished "github.com/go-fed/activity/streams/impl/activitystreams/property_published" - propertyradius "github.com/go-fed/activity/streams/impl/activitystreams/property_radius" - propertyrel "github.com/go-fed/activity/streams/impl/activitystreams/property_rel" - propertyrelationship "github.com/go-fed/activity/streams/impl/activitystreams/property_relationship" - propertyreplies "github.com/go-fed/activity/streams/impl/activitystreams/property_replies" - propertyresult "github.com/go-fed/activity/streams/impl/activitystreams/property_result" - propertyshares "github.com/go-fed/activity/streams/impl/activitystreams/property_shares" - propertysource "github.com/go-fed/activity/streams/impl/activitystreams/property_source" - propertystartindex "github.com/go-fed/activity/streams/impl/activitystreams/property_startindex" - propertystarttime "github.com/go-fed/activity/streams/impl/activitystreams/property_starttime" - propertystreams "github.com/go-fed/activity/streams/impl/activitystreams/property_streams" - propertysubject "github.com/go-fed/activity/streams/impl/activitystreams/property_subject" - propertysummary "github.com/go-fed/activity/streams/impl/activitystreams/property_summary" - propertytag "github.com/go-fed/activity/streams/impl/activitystreams/property_tag" - propertytarget "github.com/go-fed/activity/streams/impl/activitystreams/property_target" - propertyto "github.com/go-fed/activity/streams/impl/activitystreams/property_to" - propertytotalitems "github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems" - propertyunits "github.com/go-fed/activity/streams/impl/activitystreams/property_units" - propertyupdated "github.com/go-fed/activity/streams/impl/activitystreams/property_updated" - propertyurl "github.com/go-fed/activity/streams/impl/activitystreams/property_url" - propertywidth "github.com/go-fed/activity/streams/impl/activitystreams/property_width" - typeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_accept" - typeactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_activity" - typeadd "github.com/go-fed/activity/streams/impl/activitystreams/type_add" - typeannounce "github.com/go-fed/activity/streams/impl/activitystreams/type_announce" - typeapplication "github.com/go-fed/activity/streams/impl/activitystreams/type_application" - typearrive "github.com/go-fed/activity/streams/impl/activitystreams/type_arrive" - typearticle "github.com/go-fed/activity/streams/impl/activitystreams/type_article" - typeaudio "github.com/go-fed/activity/streams/impl/activitystreams/type_audio" - typeblock "github.com/go-fed/activity/streams/impl/activitystreams/type_block" - typecollection "github.com/go-fed/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "github.com/go-fed/activity/streams/impl/activitystreams/type_create" - typedelete "github.com/go-fed/activity/streams/impl/activitystreams/type_delete" - typedislike "github.com/go-fed/activity/streams/impl/activitystreams/type_dislike" - typedocument "github.com/go-fed/activity/streams/impl/activitystreams/type_document" - typeevent "github.com/go-fed/activity/streams/impl/activitystreams/type_event" - typeflag "github.com/go-fed/activity/streams/impl/activitystreams/type_flag" - typefollow "github.com/go-fed/activity/streams/impl/activitystreams/type_follow" - typegroup "github.com/go-fed/activity/streams/impl/activitystreams/type_group" - typeignore "github.com/go-fed/activity/streams/impl/activitystreams/type_ignore" - typeimage "github.com/go-fed/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "github.com/go-fed/activity/streams/impl/activitystreams/type_invite" - typejoin "github.com/go-fed/activity/streams/impl/activitystreams/type_join" - typeleave "github.com/go-fed/activity/streams/impl/activitystreams/type_leave" - typelike "github.com/go-fed/activity/streams/impl/activitystreams/type_like" - typelink "github.com/go-fed/activity/streams/impl/activitystreams/type_link" - typelisten "github.com/go-fed/activity/streams/impl/activitystreams/type_listen" - typemention "github.com/go-fed/activity/streams/impl/activitystreams/type_mention" - typemove "github.com/go-fed/activity/streams/impl/activitystreams/type_move" - typenote "github.com/go-fed/activity/streams/impl/activitystreams/type_note" - typeobject "github.com/go-fed/activity/streams/impl/activitystreams/type_object" - typeoffer "github.com/go-fed/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "github.com/go-fed/activity/streams/impl/activitystreams/type_organization" - typepage "github.com/go-fed/activity/streams/impl/activitystreams/type_page" - typeperson "github.com/go-fed/activity/streams/impl/activitystreams/type_person" - typeplace "github.com/go-fed/activity/streams/impl/activitystreams/type_place" - typeprofile "github.com/go-fed/activity/streams/impl/activitystreams/type_profile" - typequestion "github.com/go-fed/activity/streams/impl/activitystreams/type_question" - typeread "github.com/go-fed/activity/streams/impl/activitystreams/type_read" - typereject "github.com/go-fed/activity/streams/impl/activitystreams/type_reject" - typerelationship "github.com/go-fed/activity/streams/impl/activitystreams/type_relationship" - typeremove "github.com/go-fed/activity/streams/impl/activitystreams/type_remove" - typeservice "github.com/go-fed/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone" - typetravel "github.com/go-fed/activity/streams/impl/activitystreams/type_travel" - typeundo "github.com/go-fed/activity/streams/impl/activitystreams/type_undo" - typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update" - typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video" - typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view" - propertyassignedto "github.com/go-fed/activity/streams/impl/forgefed/property_assignedto" - propertycommitted "github.com/go-fed/activity/streams/impl/forgefed/property_committed" - propertycommittedby "github.com/go-fed/activity/streams/impl/forgefed/property_committedby" - propertydependants "github.com/go-fed/activity/streams/impl/forgefed/property_dependants" - propertydependedby "github.com/go-fed/activity/streams/impl/forgefed/property_dependedby" - propertydependencies "github.com/go-fed/activity/streams/impl/forgefed/property_dependencies" - propertydependson "github.com/go-fed/activity/streams/impl/forgefed/property_dependson" - propertydescription "github.com/go-fed/activity/streams/impl/forgefed/property_description" - propertyearlyitems "github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems" - propertyfilesadded "github.com/go-fed/activity/streams/impl/forgefed/property_filesadded" - propertyfilesmodified "github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified" - propertyfilesremoved "github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved" - propertyforks "github.com/go-fed/activity/streams/impl/forgefed/property_forks" - propertyhash "github.com/go-fed/activity/streams/impl/forgefed/property_hash" - propertyisresolved "github.com/go-fed/activity/streams/impl/forgefed/property_isresolved" - propertyref "github.com/go-fed/activity/streams/impl/forgefed/property_ref" - propertyteam "github.com/go-fed/activity/streams/impl/forgefed/property_team" - propertyticketstrackedby "github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby" - propertytracksticketsfor "github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor" - typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch" - typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit" - typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push" - typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository" - typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket" - typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency" - propertyid "github.com/go-fed/activity/streams/impl/jsonld/property_id" - propertytype "github.com/go-fed/activity/streams/impl/jsonld/property_type" - propertyblurhash "github.com/go-fed/activity/streams/impl/toot/property_blurhash" - propertydiscoverable "github.com/go-fed/activity/streams/impl/toot/property_discoverable" - propertyfeatured "github.com/go-fed/activity/streams/impl/toot/property_featured" - propertysignaturealgorithm "github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm" - propertysignaturevalue "github.com/go-fed/activity/streams/impl/toot/property_signaturevalue" - propertyvoterscount "github.com/go-fed/activity/streams/impl/toot/property_voterscount" - typeemoji "github.com/go-fed/activity/streams/impl/toot/type_emoji" - typeidentityproof "github.com/go-fed/activity/streams/impl/toot/type_identityproof" - propertyowner "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner" - propertypublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey" - propertypublickeypem "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem" - typepublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// Manager manages interface types and deserializations for use by generated code. -// Application code implicitly uses this manager at run-time to create -// concrete implementations of the interfaces. -type Manager struct { -} - -// DeserializeAcceptActivityStreams returns the deserialization method for the -// "ActivityStreamsAccept" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAccept, error) { - i, err := typeaccept.DeserializeAccept(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAccuracyPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsAccuracyProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeAccuracyPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccuracyProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAccuracyProperty, error) { - i, err := propertyaccuracy.DeserializeAccuracyProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeActivityActivityStreams returns the deserialization method for the -// "ActivityStreamsActivity" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsActivity, error) { - i, err := typeactivity.DeserializeActivity(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeActorPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsActorProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsActorProperty, error) { - i, err := propertyactor.DeserializeActorProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAddActivityStreams returns the deserialization method for the -// "ActivityStreamsAdd" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAdd, error) { - i, err := typeadd.DeserializeAdd(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAltitudePropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsAltitudeProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) { - i, err := propertyaltitude.DeserializeAltitudeProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAnnounceActivityStreams returns the deserialization method for the -// "ActivityStreamsAnnounce" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAnnounce, error) { - i, err := typeannounce.DeserializeAnnounce(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAnyOfPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsAnyOfProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeAnyOfPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnyOfProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAnyOfProperty, error) { - i, err := propertyanyof.DeserializeAnyOfProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeApplicationActivityStreams returns the deserialization method for -// the "ActivityStreamsApplication" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsApplication, error) { - i, err := typeapplication.DeserializeApplication(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeArriveActivityStreams returns the deserialization method for the -// "ActivityStreamsArrive" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsArrive, error) { - i, err := typearrive.DeserializeArrive(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeArticleActivityStreams returns the deserialization method for the -// "ActivityStreamsArticle" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsArticle, error) { - i, err := typearticle.DeserializeArticle(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAssignedToPropertyForgeFed returns the deserialization method for -// the "ForgeFedAssignedToProperty" non-functional property in the vocabulary -// "ForgeFed" -func (this Manager) DeserializeAssignedToPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedAssignedToProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedAssignedToProperty, error) { - i, err := propertyassignedto.DeserializeAssignedToProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAttachmentPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsAttachmentProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) { - i, err := propertyattachment.DeserializeAttachmentProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAttributedToPropertyActivityStreams returns the deserialization -// method for the "ActivityStreamsAttributedToProperty" non-functional -// property in the vocabulary "ActivityStreams" -func (this Manager) DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) { - i, err := propertyattributedto.DeserializeAttributedToProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAudiencePropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsAudienceProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAudienceProperty, error) { - i, err := propertyaudience.DeserializeAudienceProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeAudioActivityStreams returns the deserialization method for the -// "ActivityStreamsAudio" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAudio, error) { - i, err := typeaudio.DeserializeAudio(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeBccPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsBccProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsBccProperty, error) { - i, err := propertybcc.DeserializeBccProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeBlockActivityStreams returns the deserialization method for the -// "ActivityStreamsBlock" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsBlock, error) { - i, err := typeblock.DeserializeBlock(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeBlurhashPropertyToot returns the deserialization method for the -// "TootBlurhashProperty" non-functional property in the vocabulary "Toot" -func (this Manager) DeserializeBlurhashPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootBlurhashProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootBlurhashProperty, error) { - i, err := propertyblurhash.DeserializeBlurhashProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeBranchForgeFed returns the deserialization method for the -// "ForgeFedBranch" non-functional property in the vocabulary "ForgeFed" -func (this Manager) DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedBranch, error) { - i, err := typebranch.DeserializeBranch(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeBtoPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsBtoProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsBtoProperty, error) { - i, err := propertybto.DeserializeBtoProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCcPropertyActivityStreams returns the deserialization method for the -// "ActivityStreamsCcProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCcProperty, error) { - i, err := propertycc.DeserializeCcProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeClosedPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsClosedProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeClosedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsClosedProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsClosedProperty, error) { - i, err := propertyclosed.DeserializeClosedProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCollectionActivityStreams returns the deserialization method for the -// "ActivityStreamsCollection" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCollection, error) { - i, err := typecollection.DeserializeCollection(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCollectionPageActivityStreams returns the deserialization method for -// the "ActivityStreamsCollectionPage" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCollectionPage, error) { - i, err := typecollectionpage.DeserializeCollectionPage(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCommitForgeFed returns the deserialization method for the -// "ForgeFedCommit" non-functional property in the vocabulary "ForgeFed" -func (this Manager) DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedCommit, error) { - i, err := typecommit.DeserializeCommit(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCommittedByPropertyForgeFed returns the deserialization method for -// the "ForgeFedCommittedByProperty" non-functional property in the vocabulary -// "ForgeFed" -func (this Manager) DeserializeCommittedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommittedByProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedCommittedByProperty, error) { - i, err := propertycommittedby.DeserializeCommittedByProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCommittedPropertyForgeFed returns the deserialization method for the -// "ForgeFedCommittedProperty" non-functional property in the vocabulary -// "ForgeFed" -func (this Manager) DeserializeCommittedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommittedProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedCommittedProperty, error) { - i, err := propertycommitted.DeserializeCommittedProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeContentPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsContentProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsContentProperty, error) { - i, err := propertycontent.DeserializeContentProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeContextPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsContextProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsContextProperty, error) { - i, err := propertycontext.DeserializeContextProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCreateActivityStreams returns the deserialization method for the -// "ActivityStreamsCreate" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCreate, error) { - i, err := typecreate.DeserializeCreate(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeCurrentPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsCurrentProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeCurrentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCurrentProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCurrentProperty, error) { - i, err := propertycurrent.DeserializeCurrentProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDeleteActivityStreams returns the deserialization method for the -// "ActivityStreamsDelete" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDelete, error) { - i, err := typedelete.DeserializeDelete(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDeletedPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsDeletedProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeDeletedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDeletedProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDeletedProperty, error) { - i, err := propertydeleted.DeserializeDeletedProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDependantsPropertyForgeFed returns the deserialization method for -// the "ForgeFedDependantsProperty" non-functional property in the vocabulary -// "ForgeFed" -func (this Manager) DeserializeDependantsPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependantsProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDependantsProperty, error) { - i, err := propertydependants.DeserializeDependantsProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDependedByPropertyForgeFed returns the deserialization method for -// the "ForgeFedDependedByProperty" non-functional property in the vocabulary -// "ForgeFed" -func (this Manager) DeserializeDependedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependedByProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDependedByProperty, error) { - i, err := propertydependedby.DeserializeDependedByProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDependenciesPropertyForgeFed returns the deserialization method for -// the "ForgeFedDependenciesProperty" non-functional property in the -// vocabulary "ForgeFed" -func (this Manager) DeserializeDependenciesPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependenciesProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDependenciesProperty, error) { - i, err := propertydependencies.DeserializeDependenciesProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDependsOnPropertyForgeFed returns the deserialization method for the -// "ForgeFedDependsOnProperty" non-functional property in the vocabulary -// "ForgeFed" -func (this Manager) DeserializeDependsOnPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependsOnProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDependsOnProperty, error) { - i, err := propertydependson.DeserializeDependsOnProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDescribesPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsDescribesProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeDescribesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDescribesProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDescribesProperty, error) { - i, err := propertydescribes.DeserializeDescribesProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDescriptionPropertyForgeFed returns the deserialization method for -// the "ForgeFedDescriptionProperty" non-functional property in the vocabulary -// "ForgeFed" -func (this Manager) DeserializeDescriptionPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDescriptionProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDescriptionProperty, error) { - i, err := propertydescription.DeserializeDescriptionProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDiscoverablePropertyToot returns the deserialization method for the -// "TootDiscoverableProperty" non-functional property in the vocabulary "Toot" -func (this Manager) DeserializeDiscoverablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootDiscoverableProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootDiscoverableProperty, error) { - i, err := propertydiscoverable.DeserializeDiscoverableProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDislikeActivityStreams returns the deserialization method for the -// "ActivityStreamsDislike" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDislike, error) { - i, err := typedislike.DeserializeDislike(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDocumentActivityStreams returns the deserialization method for the -// "ActivityStreamsDocument" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDocument, error) { - i, err := typedocument.DeserializeDocument(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeDurationPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsDurationProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDurationProperty, error) { - i, err := propertyduration.DeserializeDurationProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeEarlyItemsPropertyForgeFed returns the deserialization method for -// the "ForgeFedEarlyItemsProperty" non-functional property in the vocabulary -// "ForgeFed" -func (this Manager) DeserializeEarlyItemsPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedEarlyItemsProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedEarlyItemsProperty, error) { - i, err := propertyearlyitems.DeserializeEarlyItemsProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeEmojiToot returns the deserialization method for the "TootEmoji" -// non-functional property in the vocabulary "Toot" -func (this Manager) DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootEmoji, error) { - i, err := typeemoji.DeserializeEmoji(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeEndTimePropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsEndTimeProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) { - i, err := propertyendtime.DeserializeEndTimeProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeEventActivityStreams returns the deserialization method for the -// "ActivityStreamsEvent" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsEvent, error) { - i, err := typeevent.DeserializeEvent(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFeaturedPropertyToot returns the deserialization method for the -// "TootFeaturedProperty" non-functional property in the vocabulary "Toot" -func (this Manager) DeserializeFeaturedPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFeaturedProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootFeaturedProperty, error) { - i, err := propertyfeatured.DeserializeFeaturedProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFilesAddedPropertyForgeFed returns the deserialization method for -// the "ForgeFedFilesAddedProperty" non-functional property in the vocabulary -// "ForgeFed" -func (this Manager) DeserializeFilesAddedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedFilesAddedProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedFilesAddedProperty, error) { - i, err := propertyfilesadded.DeserializeFilesAddedProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFilesModifiedPropertyForgeFed returns the deserialization method for -// the "ForgeFedFilesModifiedProperty" non-functional property in the -// vocabulary "ForgeFed" -func (this Manager) DeserializeFilesModifiedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedFilesModifiedProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedFilesModifiedProperty, error) { - i, err := propertyfilesmodified.DeserializeFilesModifiedProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFilesRemovedPropertyForgeFed returns the deserialization method for -// the "ForgeFedFilesRemovedProperty" non-functional property in the -// vocabulary "ForgeFed" -func (this Manager) DeserializeFilesRemovedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedFilesRemovedProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedFilesRemovedProperty, error) { - i, err := propertyfilesremoved.DeserializeFilesRemovedProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFirstPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsFirstProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeFirstPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFirstProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFirstProperty, error) { - i, err := propertyfirst.DeserializeFirstProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFlagActivityStreams returns the deserialization method for the -// "ActivityStreamsFlag" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFlag, error) { - i, err := typeflag.DeserializeFlag(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFollowActivityStreams returns the deserialization method for the -// "ActivityStreamsFollow" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFollow, error) { - i, err := typefollow.DeserializeFollow(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFollowersPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsFollowersProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowersProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFollowersProperty, error) { - i, err := propertyfollowers.DeserializeFollowersProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFollowingPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsFollowingProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeFollowingPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowingProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFollowingProperty, error) { - i, err := propertyfollowing.DeserializeFollowingProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeForksPropertyForgeFed returns the deserialization method for the -// "ForgeFedForksProperty" non-functional property in the vocabulary "ForgeFed" -func (this Manager) DeserializeForksPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedForksProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedForksProperty, error) { - i, err := propertyforks.DeserializeForksProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeFormerTypePropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsFormerTypeProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeFormerTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFormerTypeProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFormerTypeProperty, error) { - i, err := propertyformertype.DeserializeFormerTypeProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeGeneratorPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsGeneratorProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) { - i, err := propertygenerator.DeserializeGeneratorProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeGroupActivityStreams returns the deserialization method for the -// "ActivityStreamsGroup" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsGroup, error) { - i, err := typegroup.DeserializeGroup(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeHashPropertyForgeFed returns the deserialization method for the -// "ForgeFedHashProperty" non-functional property in the vocabulary "ForgeFed" -func (this Manager) DeserializeHashPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedHashProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedHashProperty, error) { - i, err := propertyhash.DeserializeHashProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeHeightPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsHeightProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeHeightPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHeightProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsHeightProperty, error) { - i, err := propertyheight.DeserializeHeightProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeHrefPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsHrefProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeHrefPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHrefProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsHrefProperty, error) { - i, err := propertyhref.DeserializeHrefProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeHreflangPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsHreflangProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeHreflangPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHreflangProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsHreflangProperty, error) { - i, err := propertyhreflang.DeserializeHreflangProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeIconPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsIconProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsIconProperty, error) { - i, err := propertyicon.DeserializeIconProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeIdPropertyJSONLD returns the deserialization method for the -// "JSONLDIdProperty" non-functional property in the vocabulary "JSONLD" -func (this Manager) DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.JSONLDIdProperty, error) { - i, err := propertyid.DeserializeIdProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeIdentityProofToot returns the deserialization method for the -// "TootIdentityProof" non-functional property in the vocabulary "Toot" -func (this Manager) DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootIdentityProof, error) { - i, err := typeidentityproof.DeserializeIdentityProof(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeIgnoreActivityStreams returns the deserialization method for the -// "ActivityStreamsIgnore" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsIgnore, error) { - i, err := typeignore.DeserializeIgnore(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeImageActivityStreams returns the deserialization method for the -// "ActivityStreamsImage" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsImage, error) { - i, err := typeimage.DeserializeImage(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeImagePropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsImageProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsImageProperty, error) { - i, err := propertyimage.DeserializeImageProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeInReplyToPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsInReplyToProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) { - i, err := propertyinreplyto.DeserializeInReplyToProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeInboxPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsInboxProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInboxProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInboxProperty, error) { - i, err := propertyinbox.DeserializeInboxProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeInstrumentPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsInstrumentProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) { - i, err := propertyinstrument.DeserializeInstrumentProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeIntransitiveActivityActivityStreams returns the deserialization -// method for the "ActivityStreamsIntransitiveActivity" non-functional -// property in the vocabulary "ActivityStreams" -func (this Manager) DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) { - i, err := typeintransitiveactivity.DeserializeIntransitiveActivity(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeInviteActivityStreams returns the deserialization method for the -// "ActivityStreamsInvite" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInvite, error) { - i, err := typeinvite.DeserializeInvite(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeIsResolvedPropertyForgeFed returns the deserialization method for -// the "ForgeFedIsResolvedProperty" non-functional property in the vocabulary -// "ForgeFed" -func (this Manager) DeserializeIsResolvedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedIsResolvedProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedIsResolvedProperty, error) { - i, err := propertyisresolved.DeserializeIsResolvedProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeItemsPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsItemsProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsItemsProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsItemsProperty, error) { - i, err := propertyitems.DeserializeItemsProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeJoinActivityStreams returns the deserialization method for the -// "ActivityStreamsJoin" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsJoin, error) { - i, err := typejoin.DeserializeJoin(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLastPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsLastProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeLastPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLastProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLastProperty, error) { - i, err := propertylast.DeserializeLastProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLatitudePropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsLatitudeProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeLatitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLatitudeProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLatitudeProperty, error) { - i, err := propertylatitude.DeserializeLatitudeProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLeaveActivityStreams returns the deserialization method for the -// "ActivityStreamsLeave" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLeave, error) { - i, err := typeleave.DeserializeLeave(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLikeActivityStreams returns the deserialization method for the -// "ActivityStreamsLike" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLike, error) { - i, err := typelike.DeserializeLike(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLikedPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsLikedProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeLikedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikedProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLikedProperty, error) { - i, err := propertyliked.DeserializeLikedProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLikesPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsLikesProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLikesProperty, error) { - i, err := propertylikes.DeserializeLikesProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLinkActivityStreams returns the deserialization method for the -// "ActivityStreamsLink" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLink, error) { - i, err := typelink.DeserializeLink(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeListenActivityStreams returns the deserialization method for the -// "ActivityStreamsListen" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsListen, error) { - i, err := typelisten.DeserializeListen(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLocationPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsLocationProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLocationProperty, error) { - i, err := propertylocation.DeserializeLocationProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeLongitudePropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsLongitudeProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeLongitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLongitudeProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLongitudeProperty, error) { - i, err := propertylongitude.DeserializeLongitudeProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the -// deserialization method for the -// "ActivityStreamsManuallyApprovesFollowersProperty" non-functional property -// in the vocabulary "ActivityStreams" -func (this Manager) DeserializeManuallyApprovesFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error) { - i, err := propertymanuallyapprovesfollowers.DeserializeManuallyApprovesFollowersProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeMediaTypePropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsMediaTypeProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) { - i, err := propertymediatype.DeserializeMediaTypeProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeMentionActivityStreams returns the deserialization method for the -// "ActivityStreamsMention" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsMention, error) { - i, err := typemention.DeserializeMention(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeMoveActivityStreams returns the deserialization method for the -// "ActivityStreamsMove" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsMove, error) { - i, err := typemove.DeserializeMove(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeNamePropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsNameProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsNameProperty, error) { - i, err := propertyname.DeserializeNameProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeNextPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsNextProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeNextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNextProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsNextProperty, error) { - i, err := propertynext.DeserializeNextProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeNoteActivityStreams returns the deserialization method for the -// "ActivityStreamsNote" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsNote, error) { - i, err := typenote.DeserializeNote(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeObjectActivityStreams returns the deserialization method for the -// "ActivityStreamsObject" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsObject, error) { - i, err := typeobject.DeserializeObject(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeObjectPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsObjectProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsObjectProperty, error) { - i, err := propertyobject.DeserializeObjectProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOfferActivityStreams returns the deserialization method for the -// "ActivityStreamsOffer" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOffer, error) { - i, err := typeoffer.DeserializeOffer(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOneOfPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsOneOfProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeOneOfPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOneOfProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOneOfProperty, error) { - i, err := propertyoneof.DeserializeOneOfProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOrderedCollectionActivityStreams returns the deserialization method -// for the "ActivityStreamsOrderedCollection" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrderedCollection, error) { - i, err := typeorderedcollection.DeserializeOrderedCollection(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOrderedCollectionPageActivityStreams returns the deserialization -// method for the "ActivityStreamsOrderedCollectionPage" non-functional -// property in the vocabulary "ActivityStreams" -func (this Manager) DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) { - i, err := typeorderedcollectionpage.DeserializeOrderedCollectionPage(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOrderedItemsPropertyActivityStreams returns the deserialization -// method for the "ActivityStreamsOrderedItemsProperty" non-functional -// property in the vocabulary "ActivityStreams" -func (this Manager) DeserializeOrderedItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedItemsProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrderedItemsProperty, error) { - i, err := propertyordereditems.DeserializeOrderedItemsProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOrganizationActivityStreams returns the deserialization method for -// the "ActivityStreamsOrganization" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrganization, error) { - i, err := typeorganization.DeserializeOrganization(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOriginPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsOriginProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOriginProperty, error) { - i, err := propertyorigin.DeserializeOriginProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOutboxPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsOutboxProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeOutboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOutboxProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOutboxProperty, error) { - i, err := propertyoutbox.DeserializeOutboxProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeOwnerPropertyW3IDSecurityV1 returns the deserialization method for -// the "W3IDSecurityV1OwnerProperty" non-functional property in the vocabulary -// "W3IDSecurityV1" -func (this Manager) DeserializeOwnerPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1OwnerProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1OwnerProperty, error) { - i, err := propertyowner.DeserializeOwnerProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePageActivityStreams returns the deserialization method for the -// "ActivityStreamsPage" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPage, error) { - i, err := typepage.DeserializePage(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePartOfPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsPartOfProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializePartOfPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPartOfProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPartOfProperty, error) { - i, err := propertypartof.DeserializePartOfProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePersonActivityStreams returns the deserialization method for the -// "ActivityStreamsPerson" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPerson, error) { - i, err := typeperson.DeserializePerson(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePlaceActivityStreams returns the deserialization method for the -// "ActivityStreamsPlace" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPlace, error) { - i, err := typeplace.DeserializePlace(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePreferredUsernamePropertyActivityStreams returns the deserialization -// method for the "ActivityStreamsPreferredUsernameProperty" non-functional -// property in the vocabulary "ActivityStreams" -func (this Manager) DeserializePreferredUsernamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreferredUsernameProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPreferredUsernameProperty, error) { - i, err := propertypreferredusername.DeserializePreferredUsernameProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePrevPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsPrevProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializePrevPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPrevProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPrevProperty, error) { - i, err := propertyprev.DeserializePrevProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePreviewPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsPreviewProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPreviewProperty, error) { - i, err := propertypreview.DeserializePreviewProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeProfileActivityStreams returns the deserialization method for the -// "ActivityStreamsProfile" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsProfile, error) { - i, err := typeprofile.DeserializeProfile(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePublicKeyPemPropertyW3IDSecurityV1 returns the deserialization -// method for the "W3IDSecurityV1PublicKeyPemProperty" non-functional property -// in the vocabulary "W3IDSecurityV1" -func (this Manager) DeserializePublicKeyPemPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKeyPemProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1PublicKeyPemProperty, error) { - i, err := propertypublickeypem.DeserializePublicKeyPemProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePublicKeyPropertyW3IDSecurityV1 returns the deserialization method -// for the "W3IDSecurityV1PublicKeyProperty" non-functional property in the -// vocabulary "W3IDSecurityV1" -func (this Manager) DeserializePublicKeyPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKeyProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1PublicKeyProperty, error) { - i, err := propertypublickey.DeserializePublicKeyProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePublicKeyW3IDSecurityV1 returns the deserialization method for the -// "W3IDSecurityV1PublicKey" non-functional property in the vocabulary -// "W3IDSecurityV1" -func (this Manager) DeserializePublicKeyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKey, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1PublicKey, error) { - i, err := typepublickey.DeserializePublicKey(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePublishedPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsPublishedProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPublishedProperty, error) { - i, err := propertypublished.DeserializePublishedProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializePushForgeFed returns the deserialization method for the -// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" -func (this Manager) DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedPush, error) { - i, err := typepush.DeserializePush(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeQuestionActivityStreams returns the deserialization method for the -// "ActivityStreamsQuestion" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsQuestion, error) { - i, err := typequestion.DeserializeQuestion(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeRadiusPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsRadiusProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeRadiusPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRadiusProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRadiusProperty, error) { - i, err := propertyradius.DeserializeRadiusProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeReadActivityStreams returns the deserialization method for the -// "ActivityStreamsRead" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRead, error) { - i, err := typeread.DeserializeRead(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeRefPropertyForgeFed returns the deserialization method for the -// "ForgeFedRefProperty" non-functional property in the vocabulary "ForgeFed" -func (this Manager) DeserializeRefPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRefProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedRefProperty, error) { - i, err := propertyref.DeserializeRefProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeRejectActivityStreams returns the deserialization method for the -// "ActivityStreamsReject" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsReject, error) { - i, err := typereject.DeserializeReject(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeRelPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsRelProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeRelPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRelProperty, error) { - i, err := propertyrel.DeserializeRelProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeRelationshipActivityStreams returns the deserialization method for -// the "ActivityStreamsRelationship" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRelationship, error) { - i, err := typerelationship.DeserializeRelationship(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeRelationshipPropertyActivityStreams returns the deserialization -// method for the "ActivityStreamsRelationshipProperty" non-functional -// property in the vocabulary "ActivityStreams" -func (this Manager) DeserializeRelationshipPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationshipProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRelationshipProperty, error) { - i, err := propertyrelationship.DeserializeRelationshipProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeRemoveActivityStreams returns the deserialization method for the -// "ActivityStreamsRemove" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRemove, error) { - i, err := typeremove.DeserializeRemove(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeRepliesPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsRepliesProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRepliesProperty, error) { - i, err := propertyreplies.DeserializeRepliesProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeRepositoryForgeFed returns the deserialization method for the -// "ForgeFedRepository" non-functional property in the vocabulary "ForgeFed" -func (this Manager) DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedRepository, error) { - i, err := typerepository.DeserializeRepository(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeResultPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsResultProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsResultProperty, error) { - i, err := propertyresult.DeserializeResultProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeServiceActivityStreams returns the deserialization method for the -// "ActivityStreamsService" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsService, error) { - i, err := typeservice.DeserializeService(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeSharesPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsSharesProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSharesProperty, error) { - i, err := propertyshares.DeserializeSharesProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeSignatureAlgorithmPropertyToot returns the deserialization method -// for the "TootSignatureAlgorithmProperty" non-functional property in the -// vocabulary "Toot" -func (this Manager) DeserializeSignatureAlgorithmPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootSignatureAlgorithmProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootSignatureAlgorithmProperty, error) { - i, err := propertysignaturealgorithm.DeserializeSignatureAlgorithmProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeSignatureValuePropertyToot returns the deserialization method for -// the "TootSignatureValueProperty" non-functional property in the vocabulary -// "Toot" -func (this Manager) DeserializeSignatureValuePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootSignatureValueProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootSignatureValueProperty, error) { - i, err := propertysignaturevalue.DeserializeSignatureValueProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeSourcePropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsSourceProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSourceProperty, error) { - i, err := propertysource.DeserializeSourceProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeStartIndexPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsStartIndexProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeStartIndexPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartIndexProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsStartIndexProperty, error) { - i, err := propertystartindex.DeserializeStartIndexProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeStartTimePropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsStartTimeProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) { - i, err := propertystarttime.DeserializeStartTimeProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeStreamsPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsStreamsProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeStreamsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStreamsProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsStreamsProperty, error) { - i, err := propertystreams.DeserializeStreamsProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeSubjectPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsSubjectProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeSubjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSubjectProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSubjectProperty, error) { - i, err := propertysubject.DeserializeSubjectProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeSummaryPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsSummaryProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSummaryProperty, error) { - i, err := propertysummary.DeserializeSummaryProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTagPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsTagProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTagProperty, error) { - i, err := propertytag.DeserializeTagProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTargetPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsTargetProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTargetProperty, error) { - i, err := propertytarget.DeserializeTargetProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTeamPropertyForgeFed returns the deserialization method for the -// "ForgeFedTeamProperty" non-functional property in the vocabulary "ForgeFed" -func (this Manager) DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedTeamProperty, error) { - i, err := propertyteam.DeserializeTeamProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTentativeAcceptActivityStreams returns the deserialization method -// for the "ActivityStreamsTentativeAccept" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTentativeAccept, error) { - i, err := typetentativeaccept.DeserializeTentativeAccept(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTentativeRejectActivityStreams returns the deserialization method -// for the "ActivityStreamsTentativeReject" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTentativeReject, error) { - i, err := typetentativereject.DeserializeTentativeReject(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTicketDependencyForgeFed returns the deserialization method for the -// "ForgeFedTicketDependency" non-functional property in the vocabulary -// "ForgeFed" -func (this Manager) DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedTicketDependency, error) { - i, err := typeticketdependency.DeserializeTicketDependency(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTicketForgeFed returns the deserialization method for the -// "ForgeFedTicket" non-functional property in the vocabulary "ForgeFed" -func (this Manager) DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedTicket, error) { - i, err := typeticket.DeserializeTicket(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization method -// for the "ForgeFedTicketsTrackedByProperty" non-functional property in the -// vocabulary "ForgeFed" -func (this Manager) DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) { - i, err := propertyticketstrackedby.DeserializeTicketsTrackedByProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeToPropertyActivityStreams returns the deserialization method for the -// "ActivityStreamsToProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsToProperty, error) { - i, err := propertyto.DeserializeToProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTombstoneActivityStreams returns the deserialization method for the -// "ActivityStreamsTombstone" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTombstone, error) { - i, err := typetombstone.DeserializeTombstone(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTotalItemsPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsTotalItemsProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeTotalItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTotalItemsProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTotalItemsProperty, error) { - i, err := propertytotalitems.DeserializeTotalItemsProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTracksTicketsForPropertyForgeFed returns the deserialization method -// for the "ForgeFedTracksTicketsForProperty" non-functional property in the -// vocabulary "ForgeFed" -func (this Manager) DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) { - i, err := propertytracksticketsfor.DeserializeTracksTicketsForProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTravelActivityStreams returns the deserialization method for the -// "ActivityStreamsTravel" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTravel, error) { - i, err := typetravel.DeserializeTravel(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeTypePropertyJSONLD returns the deserialization method for the -// "JSONLDTypeProperty" non-functional property in the vocabulary "JSONLD" -func (this Manager) DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.JSONLDTypeProperty, error) { - i, err := propertytype.DeserializeTypeProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeUndoActivityStreams returns the deserialization method for the -// "ActivityStreamsUndo" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUndo, error) { - i, err := typeundo.DeserializeUndo(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeUnitsPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsUnitsProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeUnitsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUnitsProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUnitsProperty, error) { - i, err := propertyunits.DeserializeUnitsProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeUpdateActivityStreams returns the deserialization method for the -// "ActivityStreamsUpdate" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUpdate, error) { - i, err := typeupdate.DeserializeUpdate(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeUpdatedPropertyActivityStreams returns the deserialization method -// for the "ActivityStreamsUpdatedProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) { - i, err := propertyupdated.DeserializeUpdatedProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeUrlPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsUrlProperty" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUrlProperty, error) { - i, err := propertyurl.DeserializeUrlProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeVideoActivityStreams returns the deserialization method for the -// "ActivityStreamsVideo" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsVideo, error) { - i, err := typevideo.DeserializeVideo(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeViewActivityStreams returns the deserialization method for the -// "ActivityStreamsView" non-functional property in the vocabulary -// "ActivityStreams" -func (this Manager) DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsView, error) { - i, err := typeview.DeserializeView(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeVotersCountPropertyToot returns the deserialization method for the -// "TootVotersCountProperty" non-functional property in the vocabulary "Toot" -func (this Manager) DeserializeVotersCountPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootVotersCountProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootVotersCountProperty, error) { - i, err := propertyvoterscount.DeserializeVotersCountProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} - -// DeserializeWidthPropertyActivityStreams returns the deserialization method for -// the "ActivityStreamsWidthProperty" non-functional property in the -// vocabulary "ActivityStreams" -func (this Manager) DeserializeWidthPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsWidthProperty, error) { - return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsWidthProperty, error) { - i, err := propertywidth.DeserializeWidthProperty(m, aliasMap) - if i == nil { - return nil, err - } - return i, err - } -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_disjoint.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_disjoint.go deleted file mode 100644 index d755de119..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_disjoint.go +++ /dev/null @@ -1,385 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_accept" - typeactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_activity" - typeadd "github.com/go-fed/activity/streams/impl/activitystreams/type_add" - typeannounce "github.com/go-fed/activity/streams/impl/activitystreams/type_announce" - typeapplication "github.com/go-fed/activity/streams/impl/activitystreams/type_application" - typearrive "github.com/go-fed/activity/streams/impl/activitystreams/type_arrive" - typearticle "github.com/go-fed/activity/streams/impl/activitystreams/type_article" - typeaudio "github.com/go-fed/activity/streams/impl/activitystreams/type_audio" - typeblock "github.com/go-fed/activity/streams/impl/activitystreams/type_block" - typecollection "github.com/go-fed/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "github.com/go-fed/activity/streams/impl/activitystreams/type_create" - typedelete "github.com/go-fed/activity/streams/impl/activitystreams/type_delete" - typedislike "github.com/go-fed/activity/streams/impl/activitystreams/type_dislike" - typedocument "github.com/go-fed/activity/streams/impl/activitystreams/type_document" - typeevent "github.com/go-fed/activity/streams/impl/activitystreams/type_event" - typeflag "github.com/go-fed/activity/streams/impl/activitystreams/type_flag" - typefollow "github.com/go-fed/activity/streams/impl/activitystreams/type_follow" - typegroup "github.com/go-fed/activity/streams/impl/activitystreams/type_group" - typeignore "github.com/go-fed/activity/streams/impl/activitystreams/type_ignore" - typeimage "github.com/go-fed/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "github.com/go-fed/activity/streams/impl/activitystreams/type_invite" - typejoin "github.com/go-fed/activity/streams/impl/activitystreams/type_join" - typeleave "github.com/go-fed/activity/streams/impl/activitystreams/type_leave" - typelike "github.com/go-fed/activity/streams/impl/activitystreams/type_like" - typelink "github.com/go-fed/activity/streams/impl/activitystreams/type_link" - typelisten "github.com/go-fed/activity/streams/impl/activitystreams/type_listen" - typemention "github.com/go-fed/activity/streams/impl/activitystreams/type_mention" - typemove "github.com/go-fed/activity/streams/impl/activitystreams/type_move" - typenote "github.com/go-fed/activity/streams/impl/activitystreams/type_note" - typeobject "github.com/go-fed/activity/streams/impl/activitystreams/type_object" - typeoffer "github.com/go-fed/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "github.com/go-fed/activity/streams/impl/activitystreams/type_organization" - typepage "github.com/go-fed/activity/streams/impl/activitystreams/type_page" - typeperson "github.com/go-fed/activity/streams/impl/activitystreams/type_person" - typeplace "github.com/go-fed/activity/streams/impl/activitystreams/type_place" - typeprofile "github.com/go-fed/activity/streams/impl/activitystreams/type_profile" - typequestion "github.com/go-fed/activity/streams/impl/activitystreams/type_question" - typeread "github.com/go-fed/activity/streams/impl/activitystreams/type_read" - typereject "github.com/go-fed/activity/streams/impl/activitystreams/type_reject" - typerelationship "github.com/go-fed/activity/streams/impl/activitystreams/type_relationship" - typeremove "github.com/go-fed/activity/streams/impl/activitystreams/type_remove" - typeservice "github.com/go-fed/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone" - typetravel "github.com/go-fed/activity/streams/impl/activitystreams/type_travel" - typeundo "github.com/go-fed/activity/streams/impl/activitystreams/type_undo" - typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update" - typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video" - typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// ActivityStreamsAcceptIsDisjointWith returns true if Accept is disjoint with the -// other's type. -func ActivityStreamsAcceptIsDisjointWith(other vocab.Type) bool { - return typeaccept.AcceptIsDisjointWith(other) -} - -// ActivityStreamsActivityIsDisjointWith returns true if Activity is disjoint with -// the other's type. -func ActivityStreamsActivityIsDisjointWith(other vocab.Type) bool { - return typeactivity.ActivityIsDisjointWith(other) -} - -// ActivityStreamsAddIsDisjointWith returns true if Add is disjoint with the -// other's type. -func ActivityStreamsAddIsDisjointWith(other vocab.Type) bool { - return typeadd.AddIsDisjointWith(other) -} - -// ActivityStreamsAnnounceIsDisjointWith returns true if Announce is disjoint with -// the other's type. -func ActivityStreamsAnnounceIsDisjointWith(other vocab.Type) bool { - return typeannounce.AnnounceIsDisjointWith(other) -} - -// ActivityStreamsApplicationIsDisjointWith returns true if Application is -// disjoint with the other's type. -func ActivityStreamsApplicationIsDisjointWith(other vocab.Type) bool { - return typeapplication.ApplicationIsDisjointWith(other) -} - -// ActivityStreamsArriveIsDisjointWith returns true if Arrive is disjoint with the -// other's type. -func ActivityStreamsArriveIsDisjointWith(other vocab.Type) bool { - return typearrive.ArriveIsDisjointWith(other) -} - -// ActivityStreamsArticleIsDisjointWith returns true if Article is disjoint with -// the other's type. -func ActivityStreamsArticleIsDisjointWith(other vocab.Type) bool { - return typearticle.ArticleIsDisjointWith(other) -} - -// ActivityStreamsAudioIsDisjointWith returns true if Audio is disjoint with the -// other's type. -func ActivityStreamsAudioIsDisjointWith(other vocab.Type) bool { - return typeaudio.AudioIsDisjointWith(other) -} - -// ActivityStreamsBlockIsDisjointWith returns true if Block is disjoint with the -// other's type. -func ActivityStreamsBlockIsDisjointWith(other vocab.Type) bool { - return typeblock.BlockIsDisjointWith(other) -} - -// ActivityStreamsCollectionIsDisjointWith returns true if Collection is disjoint -// with the other's type. -func ActivityStreamsCollectionIsDisjointWith(other vocab.Type) bool { - return typecollection.CollectionIsDisjointWith(other) -} - -// ActivityStreamsCollectionPageIsDisjointWith returns true if CollectionPage is -// disjoint with the other's type. -func ActivityStreamsCollectionPageIsDisjointWith(other vocab.Type) bool { - return typecollectionpage.CollectionPageIsDisjointWith(other) -} - -// ActivityStreamsCreateIsDisjointWith returns true if Create is disjoint with the -// other's type. -func ActivityStreamsCreateIsDisjointWith(other vocab.Type) bool { - return typecreate.CreateIsDisjointWith(other) -} - -// ActivityStreamsDeleteIsDisjointWith returns true if Delete is disjoint with the -// other's type. -func ActivityStreamsDeleteIsDisjointWith(other vocab.Type) bool { - return typedelete.DeleteIsDisjointWith(other) -} - -// ActivityStreamsDislikeIsDisjointWith returns true if Dislike is disjoint with -// the other's type. -func ActivityStreamsDislikeIsDisjointWith(other vocab.Type) bool { - return typedislike.DislikeIsDisjointWith(other) -} - -// ActivityStreamsDocumentIsDisjointWith returns true if Document is disjoint with -// the other's type. -func ActivityStreamsDocumentIsDisjointWith(other vocab.Type) bool { - return typedocument.DocumentIsDisjointWith(other) -} - -// ActivityStreamsEventIsDisjointWith returns true if Event is disjoint with the -// other's type. -func ActivityStreamsEventIsDisjointWith(other vocab.Type) bool { - return typeevent.EventIsDisjointWith(other) -} - -// ActivityStreamsFlagIsDisjointWith returns true if Flag is disjoint with the -// other's type. -func ActivityStreamsFlagIsDisjointWith(other vocab.Type) bool { - return typeflag.FlagIsDisjointWith(other) -} - -// ActivityStreamsFollowIsDisjointWith returns true if Follow is disjoint with the -// other's type. -func ActivityStreamsFollowIsDisjointWith(other vocab.Type) bool { - return typefollow.FollowIsDisjointWith(other) -} - -// ActivityStreamsGroupIsDisjointWith returns true if Group is disjoint with the -// other's type. -func ActivityStreamsGroupIsDisjointWith(other vocab.Type) bool { - return typegroup.GroupIsDisjointWith(other) -} - -// ActivityStreamsIgnoreIsDisjointWith returns true if Ignore is disjoint with the -// other's type. -func ActivityStreamsIgnoreIsDisjointWith(other vocab.Type) bool { - return typeignore.IgnoreIsDisjointWith(other) -} - -// ActivityStreamsImageIsDisjointWith returns true if Image is disjoint with the -// other's type. -func ActivityStreamsImageIsDisjointWith(other vocab.Type) bool { - return typeimage.ImageIsDisjointWith(other) -} - -// ActivityStreamsIntransitiveActivityIsDisjointWith returns true if -// IntransitiveActivity is disjoint with the other's type. -func ActivityStreamsIntransitiveActivityIsDisjointWith(other vocab.Type) bool { - return typeintransitiveactivity.IntransitiveActivityIsDisjointWith(other) -} - -// ActivityStreamsInviteIsDisjointWith returns true if Invite is disjoint with the -// other's type. -func ActivityStreamsInviteIsDisjointWith(other vocab.Type) bool { - return typeinvite.InviteIsDisjointWith(other) -} - -// ActivityStreamsJoinIsDisjointWith returns true if Join is disjoint with the -// other's type. -func ActivityStreamsJoinIsDisjointWith(other vocab.Type) bool { - return typejoin.JoinIsDisjointWith(other) -} - -// ActivityStreamsLeaveIsDisjointWith returns true if Leave is disjoint with the -// other's type. -func ActivityStreamsLeaveIsDisjointWith(other vocab.Type) bool { - return typeleave.LeaveIsDisjointWith(other) -} - -// ActivityStreamsLikeIsDisjointWith returns true if Like is disjoint with the -// other's type. -func ActivityStreamsLikeIsDisjointWith(other vocab.Type) bool { - return typelike.LikeIsDisjointWith(other) -} - -// ActivityStreamsLinkIsDisjointWith returns true if Link is disjoint with the -// other's type. -func ActivityStreamsLinkIsDisjointWith(other vocab.Type) bool { - return typelink.LinkIsDisjointWith(other) -} - -// ActivityStreamsListenIsDisjointWith returns true if Listen is disjoint with the -// other's type. -func ActivityStreamsListenIsDisjointWith(other vocab.Type) bool { - return typelisten.ListenIsDisjointWith(other) -} - -// ActivityStreamsMentionIsDisjointWith returns true if Mention is disjoint with -// the other's type. -func ActivityStreamsMentionIsDisjointWith(other vocab.Type) bool { - return typemention.MentionIsDisjointWith(other) -} - -// ActivityStreamsMoveIsDisjointWith returns true if Move is disjoint with the -// other's type. -func ActivityStreamsMoveIsDisjointWith(other vocab.Type) bool { - return typemove.MoveIsDisjointWith(other) -} - -// ActivityStreamsNoteIsDisjointWith returns true if Note is disjoint with the -// other's type. -func ActivityStreamsNoteIsDisjointWith(other vocab.Type) bool { - return typenote.NoteIsDisjointWith(other) -} - -// ActivityStreamsObjectIsDisjointWith returns true if Object is disjoint with the -// other's type. -func ActivityStreamsObjectIsDisjointWith(other vocab.Type) bool { - return typeobject.ObjectIsDisjointWith(other) -} - -// ActivityStreamsOfferIsDisjointWith returns true if Offer is disjoint with the -// other's type. -func ActivityStreamsOfferIsDisjointWith(other vocab.Type) bool { - return typeoffer.OfferIsDisjointWith(other) -} - -// ActivityStreamsOrderedCollectionIsDisjointWith returns true if -// OrderedCollection is disjoint with the other's type. -func ActivityStreamsOrderedCollectionIsDisjointWith(other vocab.Type) bool { - return typeorderedcollection.OrderedCollectionIsDisjointWith(other) -} - -// ActivityStreamsOrderedCollectionPageIsDisjointWith returns true if -// OrderedCollectionPage is disjoint with the other's type. -func ActivityStreamsOrderedCollectionPageIsDisjointWith(other vocab.Type) bool { - return typeorderedcollectionpage.OrderedCollectionPageIsDisjointWith(other) -} - -// ActivityStreamsOrganizationIsDisjointWith returns true if Organization is -// disjoint with the other's type. -func ActivityStreamsOrganizationIsDisjointWith(other vocab.Type) bool { - return typeorganization.OrganizationIsDisjointWith(other) -} - -// ActivityStreamsPageIsDisjointWith returns true if Page is disjoint with the -// other's type. -func ActivityStreamsPageIsDisjointWith(other vocab.Type) bool { - return typepage.PageIsDisjointWith(other) -} - -// ActivityStreamsPersonIsDisjointWith returns true if Person is disjoint with the -// other's type. -func ActivityStreamsPersonIsDisjointWith(other vocab.Type) bool { - return typeperson.PersonIsDisjointWith(other) -} - -// ActivityStreamsPlaceIsDisjointWith returns true if Place is disjoint with the -// other's type. -func ActivityStreamsPlaceIsDisjointWith(other vocab.Type) bool { - return typeplace.PlaceIsDisjointWith(other) -} - -// ActivityStreamsProfileIsDisjointWith returns true if Profile is disjoint with -// the other's type. -func ActivityStreamsProfileIsDisjointWith(other vocab.Type) bool { - return typeprofile.ProfileIsDisjointWith(other) -} - -// ActivityStreamsQuestionIsDisjointWith returns true if Question is disjoint with -// the other's type. -func ActivityStreamsQuestionIsDisjointWith(other vocab.Type) bool { - return typequestion.QuestionIsDisjointWith(other) -} - -// ActivityStreamsReadIsDisjointWith returns true if Read is disjoint with the -// other's type. -func ActivityStreamsReadIsDisjointWith(other vocab.Type) bool { - return typeread.ReadIsDisjointWith(other) -} - -// ActivityStreamsRejectIsDisjointWith returns true if Reject is disjoint with the -// other's type. -func ActivityStreamsRejectIsDisjointWith(other vocab.Type) bool { - return typereject.RejectIsDisjointWith(other) -} - -// ActivityStreamsRelationshipIsDisjointWith returns true if Relationship is -// disjoint with the other's type. -func ActivityStreamsRelationshipIsDisjointWith(other vocab.Type) bool { - return typerelationship.RelationshipIsDisjointWith(other) -} - -// ActivityStreamsRemoveIsDisjointWith returns true if Remove is disjoint with the -// other's type. -func ActivityStreamsRemoveIsDisjointWith(other vocab.Type) bool { - return typeremove.RemoveIsDisjointWith(other) -} - -// ActivityStreamsServiceIsDisjointWith returns true if Service is disjoint with -// the other's type. -func ActivityStreamsServiceIsDisjointWith(other vocab.Type) bool { - return typeservice.ServiceIsDisjointWith(other) -} - -// ActivityStreamsTentativeAcceptIsDisjointWith returns true if TentativeAccept is -// disjoint with the other's type. -func ActivityStreamsTentativeAcceptIsDisjointWith(other vocab.Type) bool { - return typetentativeaccept.TentativeAcceptIsDisjointWith(other) -} - -// ActivityStreamsTentativeRejectIsDisjointWith returns true if TentativeReject is -// disjoint with the other's type. -func ActivityStreamsTentativeRejectIsDisjointWith(other vocab.Type) bool { - return typetentativereject.TentativeRejectIsDisjointWith(other) -} - -// ActivityStreamsTombstoneIsDisjointWith returns true if Tombstone is disjoint -// with the other's type. -func ActivityStreamsTombstoneIsDisjointWith(other vocab.Type) bool { - return typetombstone.TombstoneIsDisjointWith(other) -} - -// ActivityStreamsTravelIsDisjointWith returns true if Travel is disjoint with the -// other's type. -func ActivityStreamsTravelIsDisjointWith(other vocab.Type) bool { - return typetravel.TravelIsDisjointWith(other) -} - -// ActivityStreamsUndoIsDisjointWith returns true if Undo is disjoint with the -// other's type. -func ActivityStreamsUndoIsDisjointWith(other vocab.Type) bool { - return typeundo.UndoIsDisjointWith(other) -} - -// ActivityStreamsUpdateIsDisjointWith returns true if Update is disjoint with the -// other's type. -func ActivityStreamsUpdateIsDisjointWith(other vocab.Type) bool { - return typeupdate.UpdateIsDisjointWith(other) -} - -// ActivityStreamsVideoIsDisjointWith returns true if Video is disjoint with the -// other's type. -func ActivityStreamsVideoIsDisjointWith(other vocab.Type) bool { - return typevideo.VideoIsDisjointWith(other) -} - -// ActivityStreamsViewIsDisjointWith returns true if View is disjoint with the -// other's type. -func ActivityStreamsViewIsDisjointWith(other vocab.Type) bool { - return typeview.ViewIsDisjointWith(other) -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_extendedby.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_extendedby.go deleted file mode 100644 index 735dc8c5e..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_extendedby.go +++ /dev/null @@ -1,439 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_accept" - typeactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_activity" - typeadd "github.com/go-fed/activity/streams/impl/activitystreams/type_add" - typeannounce "github.com/go-fed/activity/streams/impl/activitystreams/type_announce" - typeapplication "github.com/go-fed/activity/streams/impl/activitystreams/type_application" - typearrive "github.com/go-fed/activity/streams/impl/activitystreams/type_arrive" - typearticle "github.com/go-fed/activity/streams/impl/activitystreams/type_article" - typeaudio "github.com/go-fed/activity/streams/impl/activitystreams/type_audio" - typeblock "github.com/go-fed/activity/streams/impl/activitystreams/type_block" - typecollection "github.com/go-fed/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "github.com/go-fed/activity/streams/impl/activitystreams/type_create" - typedelete "github.com/go-fed/activity/streams/impl/activitystreams/type_delete" - typedislike "github.com/go-fed/activity/streams/impl/activitystreams/type_dislike" - typedocument "github.com/go-fed/activity/streams/impl/activitystreams/type_document" - typeevent "github.com/go-fed/activity/streams/impl/activitystreams/type_event" - typeflag "github.com/go-fed/activity/streams/impl/activitystreams/type_flag" - typefollow "github.com/go-fed/activity/streams/impl/activitystreams/type_follow" - typegroup "github.com/go-fed/activity/streams/impl/activitystreams/type_group" - typeignore "github.com/go-fed/activity/streams/impl/activitystreams/type_ignore" - typeimage "github.com/go-fed/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "github.com/go-fed/activity/streams/impl/activitystreams/type_invite" - typejoin "github.com/go-fed/activity/streams/impl/activitystreams/type_join" - typeleave "github.com/go-fed/activity/streams/impl/activitystreams/type_leave" - typelike "github.com/go-fed/activity/streams/impl/activitystreams/type_like" - typelink "github.com/go-fed/activity/streams/impl/activitystreams/type_link" - typelisten "github.com/go-fed/activity/streams/impl/activitystreams/type_listen" - typemention "github.com/go-fed/activity/streams/impl/activitystreams/type_mention" - typemove "github.com/go-fed/activity/streams/impl/activitystreams/type_move" - typenote "github.com/go-fed/activity/streams/impl/activitystreams/type_note" - typeobject "github.com/go-fed/activity/streams/impl/activitystreams/type_object" - typeoffer "github.com/go-fed/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "github.com/go-fed/activity/streams/impl/activitystreams/type_organization" - typepage "github.com/go-fed/activity/streams/impl/activitystreams/type_page" - typeperson "github.com/go-fed/activity/streams/impl/activitystreams/type_person" - typeplace "github.com/go-fed/activity/streams/impl/activitystreams/type_place" - typeprofile "github.com/go-fed/activity/streams/impl/activitystreams/type_profile" - typequestion "github.com/go-fed/activity/streams/impl/activitystreams/type_question" - typeread "github.com/go-fed/activity/streams/impl/activitystreams/type_read" - typereject "github.com/go-fed/activity/streams/impl/activitystreams/type_reject" - typerelationship "github.com/go-fed/activity/streams/impl/activitystreams/type_relationship" - typeremove "github.com/go-fed/activity/streams/impl/activitystreams/type_remove" - typeservice "github.com/go-fed/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone" - typetravel "github.com/go-fed/activity/streams/impl/activitystreams/type_travel" - typeundo "github.com/go-fed/activity/streams/impl/activitystreams/type_undo" - typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update" - typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video" - typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// ActivityStreamsAcceptIsExtendedBy returns true if the other's type extends from -// Accept. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsAcceptIsExtendedBy(other vocab.Type) bool { - return typeaccept.AcceptIsExtendedBy(other) -} - -// ActivityStreamsActivityIsExtendedBy returns true if the other's type extends -// from Activity. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func ActivityStreamsActivityIsExtendedBy(other vocab.Type) bool { - return typeactivity.ActivityIsExtendedBy(other) -} - -// ActivityStreamsAddIsExtendedBy returns true if the other's type extends from -// Add. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsAddIsExtendedBy(other vocab.Type) bool { - return typeadd.AddIsExtendedBy(other) -} - -// ActivityStreamsAnnounceIsExtendedBy returns true if the other's type extends -// from Announce. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func ActivityStreamsAnnounceIsExtendedBy(other vocab.Type) bool { - return typeannounce.AnnounceIsExtendedBy(other) -} - -// ActivityStreamsApplicationIsExtendedBy returns true if the other's type extends -// from Application. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func ActivityStreamsApplicationIsExtendedBy(other vocab.Type) bool { - return typeapplication.ApplicationIsExtendedBy(other) -} - -// ActivityStreamsArriveIsExtendedBy returns true if the other's type extends from -// Arrive. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsArriveIsExtendedBy(other vocab.Type) bool { - return typearrive.ArriveIsExtendedBy(other) -} - -// ActivityStreamsArticleIsExtendedBy returns true if the other's type extends -// from Article. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsArticleIsExtendedBy(other vocab.Type) bool { - return typearticle.ArticleIsExtendedBy(other) -} - -// ActivityStreamsAudioIsExtendedBy returns true if the other's type extends from -// Audio. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsAudioIsExtendedBy(other vocab.Type) bool { - return typeaudio.AudioIsExtendedBy(other) -} - -// ActivityStreamsBlockIsExtendedBy returns true if the other's type extends from -// Block. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsBlockIsExtendedBy(other vocab.Type) bool { - return typeblock.BlockIsExtendedBy(other) -} - -// ActivityStreamsCollectionIsExtendedBy returns true if the other's type extends -// from Collection. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func ActivityStreamsCollectionIsExtendedBy(other vocab.Type) bool { - return typecollection.CollectionIsExtendedBy(other) -} - -// ActivityStreamsCollectionPageIsExtendedBy returns true if the other's type -// extends from CollectionPage. Note that it returns false if the types are -// the same; see the "IsOrExtends" variant instead. -func ActivityStreamsCollectionPageIsExtendedBy(other vocab.Type) bool { - return typecollectionpage.CollectionPageIsExtendedBy(other) -} - -// ActivityStreamsCreateIsExtendedBy returns true if the other's type extends from -// Create. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsCreateIsExtendedBy(other vocab.Type) bool { - return typecreate.CreateIsExtendedBy(other) -} - -// ActivityStreamsDeleteIsExtendedBy returns true if the other's type extends from -// Delete. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsDeleteIsExtendedBy(other vocab.Type) bool { - return typedelete.DeleteIsExtendedBy(other) -} - -// ActivityStreamsDislikeIsExtendedBy returns true if the other's type extends -// from Dislike. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsDislikeIsExtendedBy(other vocab.Type) bool { - return typedislike.DislikeIsExtendedBy(other) -} - -// ActivityStreamsDocumentIsExtendedBy returns true if the other's type extends -// from Document. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func ActivityStreamsDocumentIsExtendedBy(other vocab.Type) bool { - return typedocument.DocumentIsExtendedBy(other) -} - -// ActivityStreamsEventIsExtendedBy returns true if the other's type extends from -// Event. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsEventIsExtendedBy(other vocab.Type) bool { - return typeevent.EventIsExtendedBy(other) -} - -// ActivityStreamsFlagIsExtendedBy returns true if the other's type extends from -// Flag. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsFlagIsExtendedBy(other vocab.Type) bool { - return typeflag.FlagIsExtendedBy(other) -} - -// ActivityStreamsFollowIsExtendedBy returns true if the other's type extends from -// Follow. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsFollowIsExtendedBy(other vocab.Type) bool { - return typefollow.FollowIsExtendedBy(other) -} - -// ActivityStreamsGroupIsExtendedBy returns true if the other's type extends from -// Group. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsGroupIsExtendedBy(other vocab.Type) bool { - return typegroup.GroupIsExtendedBy(other) -} - -// ActivityStreamsIgnoreIsExtendedBy returns true if the other's type extends from -// Ignore. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsIgnoreIsExtendedBy(other vocab.Type) bool { - return typeignore.IgnoreIsExtendedBy(other) -} - -// ActivityStreamsImageIsExtendedBy returns true if the other's type extends from -// Image. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsImageIsExtendedBy(other vocab.Type) bool { - return typeimage.ImageIsExtendedBy(other) -} - -// ActivityStreamsIntransitiveActivityIsExtendedBy returns true if the other's -// type extends from IntransitiveActivity. Note that it returns false if the -// types are the same; see the "IsOrExtends" variant instead. -func ActivityStreamsIntransitiveActivityIsExtendedBy(other vocab.Type) bool { - return typeintransitiveactivity.IntransitiveActivityIsExtendedBy(other) -} - -// ActivityStreamsInviteIsExtendedBy returns true if the other's type extends from -// Invite. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsInviteIsExtendedBy(other vocab.Type) bool { - return typeinvite.InviteIsExtendedBy(other) -} - -// ActivityStreamsJoinIsExtendedBy returns true if the other's type extends from -// Join. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsJoinIsExtendedBy(other vocab.Type) bool { - return typejoin.JoinIsExtendedBy(other) -} - -// ActivityStreamsLeaveIsExtendedBy returns true if the other's type extends from -// Leave. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsLeaveIsExtendedBy(other vocab.Type) bool { - return typeleave.LeaveIsExtendedBy(other) -} - -// ActivityStreamsLikeIsExtendedBy returns true if the other's type extends from -// Like. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsLikeIsExtendedBy(other vocab.Type) bool { - return typelike.LikeIsExtendedBy(other) -} - -// ActivityStreamsLinkIsExtendedBy returns true if the other's type extends from -// Link. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsLinkIsExtendedBy(other vocab.Type) bool { - return typelink.LinkIsExtendedBy(other) -} - -// ActivityStreamsListenIsExtendedBy returns true if the other's type extends from -// Listen. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsListenIsExtendedBy(other vocab.Type) bool { - return typelisten.ListenIsExtendedBy(other) -} - -// ActivityStreamsMentionIsExtendedBy returns true if the other's type extends -// from Mention. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsMentionIsExtendedBy(other vocab.Type) bool { - return typemention.MentionIsExtendedBy(other) -} - -// ActivityStreamsMoveIsExtendedBy returns true if the other's type extends from -// Move. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsMoveIsExtendedBy(other vocab.Type) bool { - return typemove.MoveIsExtendedBy(other) -} - -// ActivityStreamsNoteIsExtendedBy returns true if the other's type extends from -// Note. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsNoteIsExtendedBy(other vocab.Type) bool { - return typenote.NoteIsExtendedBy(other) -} - -// ActivityStreamsObjectIsExtendedBy returns true if the other's type extends from -// Object. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsObjectIsExtendedBy(other vocab.Type) bool { - return typeobject.ObjectIsExtendedBy(other) -} - -// ActivityStreamsOfferIsExtendedBy returns true if the other's type extends from -// Offer. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsOfferIsExtendedBy(other vocab.Type) bool { - return typeoffer.OfferIsExtendedBy(other) -} - -// ActivityStreamsOrderedCollectionIsExtendedBy returns true if the other's type -// extends from OrderedCollection. Note that it returns false if the types are -// the same; see the "IsOrExtends" variant instead. -func ActivityStreamsOrderedCollectionIsExtendedBy(other vocab.Type) bool { - return typeorderedcollection.OrderedCollectionIsExtendedBy(other) -} - -// ActivityStreamsOrderedCollectionPageIsExtendedBy returns true if the other's -// type extends from OrderedCollectionPage. Note that it returns false if the -// types are the same; see the "IsOrExtends" variant instead. -func ActivityStreamsOrderedCollectionPageIsExtendedBy(other vocab.Type) bool { - return typeorderedcollectionpage.OrderedCollectionPageIsExtendedBy(other) -} - -// ActivityStreamsOrganizationIsExtendedBy returns true if the other's type -// extends from Organization. Note that it returns false if the types are the -// same; see the "IsOrExtends" variant instead. -func ActivityStreamsOrganizationIsExtendedBy(other vocab.Type) bool { - return typeorganization.OrganizationIsExtendedBy(other) -} - -// ActivityStreamsPageIsExtendedBy returns true if the other's type extends from -// Page. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsPageIsExtendedBy(other vocab.Type) bool { - return typepage.PageIsExtendedBy(other) -} - -// ActivityStreamsPersonIsExtendedBy returns true if the other's type extends from -// Person. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsPersonIsExtendedBy(other vocab.Type) bool { - return typeperson.PersonIsExtendedBy(other) -} - -// ActivityStreamsPlaceIsExtendedBy returns true if the other's type extends from -// Place. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsPlaceIsExtendedBy(other vocab.Type) bool { - return typeplace.PlaceIsExtendedBy(other) -} - -// ActivityStreamsProfileIsExtendedBy returns true if the other's type extends -// from Profile. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsProfileIsExtendedBy(other vocab.Type) bool { - return typeprofile.ProfileIsExtendedBy(other) -} - -// ActivityStreamsQuestionIsExtendedBy returns true if the other's type extends -// from Question. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func ActivityStreamsQuestionIsExtendedBy(other vocab.Type) bool { - return typequestion.QuestionIsExtendedBy(other) -} - -// ActivityStreamsReadIsExtendedBy returns true if the other's type extends from -// Read. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsReadIsExtendedBy(other vocab.Type) bool { - return typeread.ReadIsExtendedBy(other) -} - -// ActivityStreamsRejectIsExtendedBy returns true if the other's type extends from -// Reject. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsRejectIsExtendedBy(other vocab.Type) bool { - return typereject.RejectIsExtendedBy(other) -} - -// ActivityStreamsRelationshipIsExtendedBy returns true if the other's type -// extends from Relationship. Note that it returns false if the types are the -// same; see the "IsOrExtends" variant instead. -func ActivityStreamsRelationshipIsExtendedBy(other vocab.Type) bool { - return typerelationship.RelationshipIsExtendedBy(other) -} - -// ActivityStreamsRemoveIsExtendedBy returns true if the other's type extends from -// Remove. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsRemoveIsExtendedBy(other vocab.Type) bool { - return typeremove.RemoveIsExtendedBy(other) -} - -// ActivityStreamsServiceIsExtendedBy returns true if the other's type extends -// from Service. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsServiceIsExtendedBy(other vocab.Type) bool { - return typeservice.ServiceIsExtendedBy(other) -} - -// ActivityStreamsTentativeAcceptIsExtendedBy returns true if the other's type -// extends from TentativeAccept. Note that it returns false if the types are -// the same; see the "IsOrExtends" variant instead. -func ActivityStreamsTentativeAcceptIsExtendedBy(other vocab.Type) bool { - return typetentativeaccept.TentativeAcceptIsExtendedBy(other) -} - -// ActivityStreamsTentativeRejectIsExtendedBy returns true if the other's type -// extends from TentativeReject. Note that it returns false if the types are -// the same; see the "IsOrExtends" variant instead. -func ActivityStreamsTentativeRejectIsExtendedBy(other vocab.Type) bool { - return typetentativereject.TentativeRejectIsExtendedBy(other) -} - -// ActivityStreamsTombstoneIsExtendedBy returns true if the other's type extends -// from Tombstone. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func ActivityStreamsTombstoneIsExtendedBy(other vocab.Type) bool { - return typetombstone.TombstoneIsExtendedBy(other) -} - -// ActivityStreamsTravelIsExtendedBy returns true if the other's type extends from -// Travel. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsTravelIsExtendedBy(other vocab.Type) bool { - return typetravel.TravelIsExtendedBy(other) -} - -// ActivityStreamsUndoIsExtendedBy returns true if the other's type extends from -// Undo. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsUndoIsExtendedBy(other vocab.Type) bool { - return typeundo.UndoIsExtendedBy(other) -} - -// ActivityStreamsUpdateIsExtendedBy returns true if the other's type extends from -// Update. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsUpdateIsExtendedBy(other vocab.Type) bool { - return typeupdate.UpdateIsExtendedBy(other) -} - -// ActivityStreamsVideoIsExtendedBy returns true if the other's type extends from -// Video. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsVideoIsExtendedBy(other vocab.Type) bool { - return typevideo.VideoIsExtendedBy(other) -} - -// ActivityStreamsViewIsExtendedBy returns true if the other's type extends from -// View. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ActivityStreamsViewIsExtendedBy(other vocab.Type) bool { - return typeview.ViewIsExtendedBy(other) -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_extends.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_extends.go deleted file mode 100644 index 381066e63..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_extends.go +++ /dev/null @@ -1,385 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_accept" - typeactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_activity" - typeadd "github.com/go-fed/activity/streams/impl/activitystreams/type_add" - typeannounce "github.com/go-fed/activity/streams/impl/activitystreams/type_announce" - typeapplication "github.com/go-fed/activity/streams/impl/activitystreams/type_application" - typearrive "github.com/go-fed/activity/streams/impl/activitystreams/type_arrive" - typearticle "github.com/go-fed/activity/streams/impl/activitystreams/type_article" - typeaudio "github.com/go-fed/activity/streams/impl/activitystreams/type_audio" - typeblock "github.com/go-fed/activity/streams/impl/activitystreams/type_block" - typecollection "github.com/go-fed/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "github.com/go-fed/activity/streams/impl/activitystreams/type_create" - typedelete "github.com/go-fed/activity/streams/impl/activitystreams/type_delete" - typedislike "github.com/go-fed/activity/streams/impl/activitystreams/type_dislike" - typedocument "github.com/go-fed/activity/streams/impl/activitystreams/type_document" - typeevent "github.com/go-fed/activity/streams/impl/activitystreams/type_event" - typeflag "github.com/go-fed/activity/streams/impl/activitystreams/type_flag" - typefollow "github.com/go-fed/activity/streams/impl/activitystreams/type_follow" - typegroup "github.com/go-fed/activity/streams/impl/activitystreams/type_group" - typeignore "github.com/go-fed/activity/streams/impl/activitystreams/type_ignore" - typeimage "github.com/go-fed/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "github.com/go-fed/activity/streams/impl/activitystreams/type_invite" - typejoin "github.com/go-fed/activity/streams/impl/activitystreams/type_join" - typeleave "github.com/go-fed/activity/streams/impl/activitystreams/type_leave" - typelike "github.com/go-fed/activity/streams/impl/activitystreams/type_like" - typelink "github.com/go-fed/activity/streams/impl/activitystreams/type_link" - typelisten "github.com/go-fed/activity/streams/impl/activitystreams/type_listen" - typemention "github.com/go-fed/activity/streams/impl/activitystreams/type_mention" - typemove "github.com/go-fed/activity/streams/impl/activitystreams/type_move" - typenote "github.com/go-fed/activity/streams/impl/activitystreams/type_note" - typeobject "github.com/go-fed/activity/streams/impl/activitystreams/type_object" - typeoffer "github.com/go-fed/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "github.com/go-fed/activity/streams/impl/activitystreams/type_organization" - typepage "github.com/go-fed/activity/streams/impl/activitystreams/type_page" - typeperson "github.com/go-fed/activity/streams/impl/activitystreams/type_person" - typeplace "github.com/go-fed/activity/streams/impl/activitystreams/type_place" - typeprofile "github.com/go-fed/activity/streams/impl/activitystreams/type_profile" - typequestion "github.com/go-fed/activity/streams/impl/activitystreams/type_question" - typeread "github.com/go-fed/activity/streams/impl/activitystreams/type_read" - typereject "github.com/go-fed/activity/streams/impl/activitystreams/type_reject" - typerelationship "github.com/go-fed/activity/streams/impl/activitystreams/type_relationship" - typeremove "github.com/go-fed/activity/streams/impl/activitystreams/type_remove" - typeservice "github.com/go-fed/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone" - typetravel "github.com/go-fed/activity/streams/impl/activitystreams/type_travel" - typeundo "github.com/go-fed/activity/streams/impl/activitystreams/type_undo" - typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update" - typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video" - typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// ActivityStreamsActivityStreamsAcceptExtends returns true if Accept extends from -// the other's type. -func ActivityStreamsActivityStreamsAcceptExtends(other vocab.Type) bool { - return typeaccept.ActivityStreamsAcceptExtends(other) -} - -// ActivityStreamsActivityStreamsActivityExtends returns true if Activity extends -// from the other's type. -func ActivityStreamsActivityStreamsActivityExtends(other vocab.Type) bool { - return typeactivity.ActivityStreamsActivityExtends(other) -} - -// ActivityStreamsActivityStreamsAddExtends returns true if Add extends from the -// other's type. -func ActivityStreamsActivityStreamsAddExtends(other vocab.Type) bool { - return typeadd.ActivityStreamsAddExtends(other) -} - -// ActivityStreamsActivityStreamsAnnounceExtends returns true if Announce extends -// from the other's type. -func ActivityStreamsActivityStreamsAnnounceExtends(other vocab.Type) bool { - return typeannounce.ActivityStreamsAnnounceExtends(other) -} - -// ActivityStreamsActivityStreamsApplicationExtends returns true if Application -// extends from the other's type. -func ActivityStreamsActivityStreamsApplicationExtends(other vocab.Type) bool { - return typeapplication.ActivityStreamsApplicationExtends(other) -} - -// ActivityStreamsActivityStreamsArriveExtends returns true if Arrive extends from -// the other's type. -func ActivityStreamsActivityStreamsArriveExtends(other vocab.Type) bool { - return typearrive.ActivityStreamsArriveExtends(other) -} - -// ActivityStreamsActivityStreamsArticleExtends returns true if Article extends -// from the other's type. -func ActivityStreamsActivityStreamsArticleExtends(other vocab.Type) bool { - return typearticle.ActivityStreamsArticleExtends(other) -} - -// ActivityStreamsActivityStreamsAudioExtends returns true if Audio extends from -// the other's type. -func ActivityStreamsActivityStreamsAudioExtends(other vocab.Type) bool { - return typeaudio.ActivityStreamsAudioExtends(other) -} - -// ActivityStreamsActivityStreamsBlockExtends returns true if Block extends from -// the other's type. -func ActivityStreamsActivityStreamsBlockExtends(other vocab.Type) bool { - return typeblock.ActivityStreamsBlockExtends(other) -} - -// ActivityStreamsActivityStreamsCollectionExtends returns true if Collection -// extends from the other's type. -func ActivityStreamsActivityStreamsCollectionExtends(other vocab.Type) bool { - return typecollection.ActivityStreamsCollectionExtends(other) -} - -// ActivityStreamsActivityStreamsCollectionPageExtends returns true if -// CollectionPage extends from the other's type. -func ActivityStreamsActivityStreamsCollectionPageExtends(other vocab.Type) bool { - return typecollectionpage.ActivityStreamsCollectionPageExtends(other) -} - -// ActivityStreamsActivityStreamsCreateExtends returns true if Create extends from -// the other's type. -func ActivityStreamsActivityStreamsCreateExtends(other vocab.Type) bool { - return typecreate.ActivityStreamsCreateExtends(other) -} - -// ActivityStreamsActivityStreamsDeleteExtends returns true if Delete extends from -// the other's type. -func ActivityStreamsActivityStreamsDeleteExtends(other vocab.Type) bool { - return typedelete.ActivityStreamsDeleteExtends(other) -} - -// ActivityStreamsActivityStreamsDislikeExtends returns true if Dislike extends -// from the other's type. -func ActivityStreamsActivityStreamsDislikeExtends(other vocab.Type) bool { - return typedislike.ActivityStreamsDislikeExtends(other) -} - -// ActivityStreamsActivityStreamsDocumentExtends returns true if Document extends -// from the other's type. -func ActivityStreamsActivityStreamsDocumentExtends(other vocab.Type) bool { - return typedocument.ActivityStreamsDocumentExtends(other) -} - -// ActivityStreamsActivityStreamsEventExtends returns true if Event extends from -// the other's type. -func ActivityStreamsActivityStreamsEventExtends(other vocab.Type) bool { - return typeevent.ActivityStreamsEventExtends(other) -} - -// ActivityStreamsActivityStreamsFlagExtends returns true if Flag extends from the -// other's type. -func ActivityStreamsActivityStreamsFlagExtends(other vocab.Type) bool { - return typeflag.ActivityStreamsFlagExtends(other) -} - -// ActivityStreamsActivityStreamsFollowExtends returns true if Follow extends from -// the other's type. -func ActivityStreamsActivityStreamsFollowExtends(other vocab.Type) bool { - return typefollow.ActivityStreamsFollowExtends(other) -} - -// ActivityStreamsActivityStreamsGroupExtends returns true if Group extends from -// the other's type. -func ActivityStreamsActivityStreamsGroupExtends(other vocab.Type) bool { - return typegroup.ActivityStreamsGroupExtends(other) -} - -// ActivityStreamsActivityStreamsIgnoreExtends returns true if Ignore extends from -// the other's type. -func ActivityStreamsActivityStreamsIgnoreExtends(other vocab.Type) bool { - return typeignore.ActivityStreamsIgnoreExtends(other) -} - -// ActivityStreamsActivityStreamsImageExtends returns true if Image extends from -// the other's type. -func ActivityStreamsActivityStreamsImageExtends(other vocab.Type) bool { - return typeimage.ActivityStreamsImageExtends(other) -} - -// ActivityStreamsActivityStreamsIntransitiveActivityExtends returns true if -// IntransitiveActivity extends from the other's type. -func ActivityStreamsActivityStreamsIntransitiveActivityExtends(other vocab.Type) bool { - return typeintransitiveactivity.ActivityStreamsIntransitiveActivityExtends(other) -} - -// ActivityStreamsActivityStreamsInviteExtends returns true if Invite extends from -// the other's type. -func ActivityStreamsActivityStreamsInviteExtends(other vocab.Type) bool { - return typeinvite.ActivityStreamsInviteExtends(other) -} - -// ActivityStreamsActivityStreamsJoinExtends returns true if Join extends from the -// other's type. -func ActivityStreamsActivityStreamsJoinExtends(other vocab.Type) bool { - return typejoin.ActivityStreamsJoinExtends(other) -} - -// ActivityStreamsActivityStreamsLeaveExtends returns true if Leave extends from -// the other's type. -func ActivityStreamsActivityStreamsLeaveExtends(other vocab.Type) bool { - return typeleave.ActivityStreamsLeaveExtends(other) -} - -// ActivityStreamsActivityStreamsLikeExtends returns true if Like extends from the -// other's type. -func ActivityStreamsActivityStreamsLikeExtends(other vocab.Type) bool { - return typelike.ActivityStreamsLikeExtends(other) -} - -// ActivityStreamsActivityStreamsLinkExtends returns true if Link extends from the -// other's type. -func ActivityStreamsActivityStreamsLinkExtends(other vocab.Type) bool { - return typelink.ActivityStreamsLinkExtends(other) -} - -// ActivityStreamsActivityStreamsListenExtends returns true if Listen extends from -// the other's type. -func ActivityStreamsActivityStreamsListenExtends(other vocab.Type) bool { - return typelisten.ActivityStreamsListenExtends(other) -} - -// ActivityStreamsActivityStreamsMentionExtends returns true if Mention extends -// from the other's type. -func ActivityStreamsActivityStreamsMentionExtends(other vocab.Type) bool { - return typemention.ActivityStreamsMentionExtends(other) -} - -// ActivityStreamsActivityStreamsMoveExtends returns true if Move extends from the -// other's type. -func ActivityStreamsActivityStreamsMoveExtends(other vocab.Type) bool { - return typemove.ActivityStreamsMoveExtends(other) -} - -// ActivityStreamsActivityStreamsNoteExtends returns true if Note extends from the -// other's type. -func ActivityStreamsActivityStreamsNoteExtends(other vocab.Type) bool { - return typenote.ActivityStreamsNoteExtends(other) -} - -// ActivityStreamsActivityStreamsObjectExtends returns true if Object extends from -// the other's type. -func ActivityStreamsActivityStreamsObjectExtends(other vocab.Type) bool { - return typeobject.ActivityStreamsObjectExtends(other) -} - -// ActivityStreamsActivityStreamsOfferExtends returns true if Offer extends from -// the other's type. -func ActivityStreamsActivityStreamsOfferExtends(other vocab.Type) bool { - return typeoffer.ActivityStreamsOfferExtends(other) -} - -// ActivityStreamsActivityStreamsOrderedCollectionExtends returns true if -// OrderedCollection extends from the other's type. -func ActivityStreamsActivityStreamsOrderedCollectionExtends(other vocab.Type) bool { - return typeorderedcollection.ActivityStreamsOrderedCollectionExtends(other) -} - -// ActivityStreamsActivityStreamsOrderedCollectionPageExtends returns true if -// OrderedCollectionPage extends from the other's type. -func ActivityStreamsActivityStreamsOrderedCollectionPageExtends(other vocab.Type) bool { - return typeorderedcollectionpage.ActivityStreamsOrderedCollectionPageExtends(other) -} - -// ActivityStreamsActivityStreamsOrganizationExtends returns true if Organization -// extends from the other's type. -func ActivityStreamsActivityStreamsOrganizationExtends(other vocab.Type) bool { - return typeorganization.ActivityStreamsOrganizationExtends(other) -} - -// ActivityStreamsActivityStreamsPageExtends returns true if Page extends from the -// other's type. -func ActivityStreamsActivityStreamsPageExtends(other vocab.Type) bool { - return typepage.ActivityStreamsPageExtends(other) -} - -// ActivityStreamsActivityStreamsPersonExtends returns true if Person extends from -// the other's type. -func ActivityStreamsActivityStreamsPersonExtends(other vocab.Type) bool { - return typeperson.ActivityStreamsPersonExtends(other) -} - -// ActivityStreamsActivityStreamsPlaceExtends returns true if Place extends from -// the other's type. -func ActivityStreamsActivityStreamsPlaceExtends(other vocab.Type) bool { - return typeplace.ActivityStreamsPlaceExtends(other) -} - -// ActivityStreamsActivityStreamsProfileExtends returns true if Profile extends -// from the other's type. -func ActivityStreamsActivityStreamsProfileExtends(other vocab.Type) bool { - return typeprofile.ActivityStreamsProfileExtends(other) -} - -// ActivityStreamsActivityStreamsQuestionExtends returns true if Question extends -// from the other's type. -func ActivityStreamsActivityStreamsQuestionExtends(other vocab.Type) bool { - return typequestion.ActivityStreamsQuestionExtends(other) -} - -// ActivityStreamsActivityStreamsReadExtends returns true if Read extends from the -// other's type. -func ActivityStreamsActivityStreamsReadExtends(other vocab.Type) bool { - return typeread.ActivityStreamsReadExtends(other) -} - -// ActivityStreamsActivityStreamsRejectExtends returns true if Reject extends from -// the other's type. -func ActivityStreamsActivityStreamsRejectExtends(other vocab.Type) bool { - return typereject.ActivityStreamsRejectExtends(other) -} - -// ActivityStreamsActivityStreamsRelationshipExtends returns true if Relationship -// extends from the other's type. -func ActivityStreamsActivityStreamsRelationshipExtends(other vocab.Type) bool { - return typerelationship.ActivityStreamsRelationshipExtends(other) -} - -// ActivityStreamsActivityStreamsRemoveExtends returns true if Remove extends from -// the other's type. -func ActivityStreamsActivityStreamsRemoveExtends(other vocab.Type) bool { - return typeremove.ActivityStreamsRemoveExtends(other) -} - -// ActivityStreamsActivityStreamsServiceExtends returns true if Service extends -// from the other's type. -func ActivityStreamsActivityStreamsServiceExtends(other vocab.Type) bool { - return typeservice.ActivityStreamsServiceExtends(other) -} - -// ActivityStreamsActivityStreamsTentativeAcceptExtends returns true if -// TentativeAccept extends from the other's type. -func ActivityStreamsActivityStreamsTentativeAcceptExtends(other vocab.Type) bool { - return typetentativeaccept.ActivityStreamsTentativeAcceptExtends(other) -} - -// ActivityStreamsActivityStreamsTentativeRejectExtends returns true if -// TentativeReject extends from the other's type. -func ActivityStreamsActivityStreamsTentativeRejectExtends(other vocab.Type) bool { - return typetentativereject.ActivityStreamsTentativeRejectExtends(other) -} - -// ActivityStreamsActivityStreamsTombstoneExtends returns true if Tombstone -// extends from the other's type. -func ActivityStreamsActivityStreamsTombstoneExtends(other vocab.Type) bool { - return typetombstone.ActivityStreamsTombstoneExtends(other) -} - -// ActivityStreamsActivityStreamsTravelExtends returns true if Travel extends from -// the other's type. -func ActivityStreamsActivityStreamsTravelExtends(other vocab.Type) bool { - return typetravel.ActivityStreamsTravelExtends(other) -} - -// ActivityStreamsActivityStreamsUndoExtends returns true if Undo extends from the -// other's type. -func ActivityStreamsActivityStreamsUndoExtends(other vocab.Type) bool { - return typeundo.ActivityStreamsUndoExtends(other) -} - -// ActivityStreamsActivityStreamsUpdateExtends returns true if Update extends from -// the other's type. -func ActivityStreamsActivityStreamsUpdateExtends(other vocab.Type) bool { - return typeupdate.ActivityStreamsUpdateExtends(other) -} - -// ActivityStreamsActivityStreamsVideoExtends returns true if Video extends from -// the other's type. -func ActivityStreamsActivityStreamsVideoExtends(other vocab.Type) bool { - return typevideo.ActivityStreamsVideoExtends(other) -} - -// ActivityStreamsActivityStreamsViewExtends returns true if View extends from the -// other's type. -func ActivityStreamsActivityStreamsViewExtends(other vocab.Type) bool { - return typeview.ActivityStreamsViewExtends(other) -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_isorextends.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_isorextends.go deleted file mode 100644 index f748c26e6..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_isorextends.go +++ /dev/null @@ -1,388 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_accept" - typeactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_activity" - typeadd "github.com/go-fed/activity/streams/impl/activitystreams/type_add" - typeannounce "github.com/go-fed/activity/streams/impl/activitystreams/type_announce" - typeapplication "github.com/go-fed/activity/streams/impl/activitystreams/type_application" - typearrive "github.com/go-fed/activity/streams/impl/activitystreams/type_arrive" - typearticle "github.com/go-fed/activity/streams/impl/activitystreams/type_article" - typeaudio "github.com/go-fed/activity/streams/impl/activitystreams/type_audio" - typeblock "github.com/go-fed/activity/streams/impl/activitystreams/type_block" - typecollection "github.com/go-fed/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "github.com/go-fed/activity/streams/impl/activitystreams/type_create" - typedelete "github.com/go-fed/activity/streams/impl/activitystreams/type_delete" - typedislike "github.com/go-fed/activity/streams/impl/activitystreams/type_dislike" - typedocument "github.com/go-fed/activity/streams/impl/activitystreams/type_document" - typeevent "github.com/go-fed/activity/streams/impl/activitystreams/type_event" - typeflag "github.com/go-fed/activity/streams/impl/activitystreams/type_flag" - typefollow "github.com/go-fed/activity/streams/impl/activitystreams/type_follow" - typegroup "github.com/go-fed/activity/streams/impl/activitystreams/type_group" - typeignore "github.com/go-fed/activity/streams/impl/activitystreams/type_ignore" - typeimage "github.com/go-fed/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "github.com/go-fed/activity/streams/impl/activitystreams/type_invite" - typejoin "github.com/go-fed/activity/streams/impl/activitystreams/type_join" - typeleave "github.com/go-fed/activity/streams/impl/activitystreams/type_leave" - typelike "github.com/go-fed/activity/streams/impl/activitystreams/type_like" - typelink "github.com/go-fed/activity/streams/impl/activitystreams/type_link" - typelisten "github.com/go-fed/activity/streams/impl/activitystreams/type_listen" - typemention "github.com/go-fed/activity/streams/impl/activitystreams/type_mention" - typemove "github.com/go-fed/activity/streams/impl/activitystreams/type_move" - typenote "github.com/go-fed/activity/streams/impl/activitystreams/type_note" - typeobject "github.com/go-fed/activity/streams/impl/activitystreams/type_object" - typeoffer "github.com/go-fed/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "github.com/go-fed/activity/streams/impl/activitystreams/type_organization" - typepage "github.com/go-fed/activity/streams/impl/activitystreams/type_page" - typeperson "github.com/go-fed/activity/streams/impl/activitystreams/type_person" - typeplace "github.com/go-fed/activity/streams/impl/activitystreams/type_place" - typeprofile "github.com/go-fed/activity/streams/impl/activitystreams/type_profile" - typequestion "github.com/go-fed/activity/streams/impl/activitystreams/type_question" - typeread "github.com/go-fed/activity/streams/impl/activitystreams/type_read" - typereject "github.com/go-fed/activity/streams/impl/activitystreams/type_reject" - typerelationship "github.com/go-fed/activity/streams/impl/activitystreams/type_relationship" - typeremove "github.com/go-fed/activity/streams/impl/activitystreams/type_remove" - typeservice "github.com/go-fed/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone" - typetravel "github.com/go-fed/activity/streams/impl/activitystreams/type_travel" - typeundo "github.com/go-fed/activity/streams/impl/activitystreams/type_undo" - typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update" - typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video" - typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// IsOrExtendsActivityStreamsAccept returns true if the other provided type is the -// Accept type or extends from the Accept type. -func IsOrExtendsActivityStreamsAccept(other vocab.Type) bool { - return typeaccept.IsOrExtendsAccept(other) -} - -// IsOrExtendsActivityStreamsActivity returns true if the other provided type is -// the Activity type or extends from the Activity type. -func IsOrExtendsActivityStreamsActivity(other vocab.Type) bool { - return typeactivity.IsOrExtendsActivity(other) -} - -// IsOrExtendsActivityStreamsAdd returns true if the other provided type is the -// Add type or extends from the Add type. -func IsOrExtendsActivityStreamsAdd(other vocab.Type) bool { - return typeadd.IsOrExtendsAdd(other) -} - -// IsOrExtendsActivityStreamsAnnounce returns true if the other provided type is -// the Announce type or extends from the Announce type. -func IsOrExtendsActivityStreamsAnnounce(other vocab.Type) bool { - return typeannounce.IsOrExtendsAnnounce(other) -} - -// IsOrExtendsActivityStreamsApplication returns true if the other provided type -// is the Application type or extends from the Application type. -func IsOrExtendsActivityStreamsApplication(other vocab.Type) bool { - return typeapplication.IsOrExtendsApplication(other) -} - -// IsOrExtendsActivityStreamsArrive returns true if the other provided type is the -// Arrive type or extends from the Arrive type. -func IsOrExtendsActivityStreamsArrive(other vocab.Type) bool { - return typearrive.IsOrExtendsArrive(other) -} - -// IsOrExtendsActivityStreamsArticle returns true if the other provided type is -// the Article type or extends from the Article type. -func IsOrExtendsActivityStreamsArticle(other vocab.Type) bool { - return typearticle.IsOrExtendsArticle(other) -} - -// IsOrExtendsActivityStreamsAudio returns true if the other provided type is the -// Audio type or extends from the Audio type. -func IsOrExtendsActivityStreamsAudio(other vocab.Type) bool { - return typeaudio.IsOrExtendsAudio(other) -} - -// IsOrExtendsActivityStreamsBlock returns true if the other provided type is the -// Block type or extends from the Block type. -func IsOrExtendsActivityStreamsBlock(other vocab.Type) bool { - return typeblock.IsOrExtendsBlock(other) -} - -// IsOrExtendsActivityStreamsCollection returns true if the other provided type is -// the Collection type or extends from the Collection type. -func IsOrExtendsActivityStreamsCollection(other vocab.Type) bool { - return typecollection.IsOrExtendsCollection(other) -} - -// IsOrExtendsActivityStreamsCollectionPage returns true if the other provided -// type is the CollectionPage type or extends from the CollectionPage type. -func IsOrExtendsActivityStreamsCollectionPage(other vocab.Type) bool { - return typecollectionpage.IsOrExtendsCollectionPage(other) -} - -// IsOrExtendsActivityStreamsCreate returns true if the other provided type is the -// Create type or extends from the Create type. -func IsOrExtendsActivityStreamsCreate(other vocab.Type) bool { - return typecreate.IsOrExtendsCreate(other) -} - -// IsOrExtendsActivityStreamsDelete returns true if the other provided type is the -// Delete type or extends from the Delete type. -func IsOrExtendsActivityStreamsDelete(other vocab.Type) bool { - return typedelete.IsOrExtendsDelete(other) -} - -// IsOrExtendsActivityStreamsDislike returns true if the other provided type is -// the Dislike type or extends from the Dislike type. -func IsOrExtendsActivityStreamsDislike(other vocab.Type) bool { - return typedislike.IsOrExtendsDislike(other) -} - -// IsOrExtendsActivityStreamsDocument returns true if the other provided type is -// the Document type or extends from the Document type. -func IsOrExtendsActivityStreamsDocument(other vocab.Type) bool { - return typedocument.IsOrExtendsDocument(other) -} - -// IsOrExtendsActivityStreamsEvent returns true if the other provided type is the -// Event type or extends from the Event type. -func IsOrExtendsActivityStreamsEvent(other vocab.Type) bool { - return typeevent.IsOrExtendsEvent(other) -} - -// IsOrExtendsActivityStreamsFlag returns true if the other provided type is the -// Flag type or extends from the Flag type. -func IsOrExtendsActivityStreamsFlag(other vocab.Type) bool { - return typeflag.IsOrExtendsFlag(other) -} - -// IsOrExtendsActivityStreamsFollow returns true if the other provided type is the -// Follow type or extends from the Follow type. -func IsOrExtendsActivityStreamsFollow(other vocab.Type) bool { - return typefollow.IsOrExtendsFollow(other) -} - -// IsOrExtendsActivityStreamsGroup returns true if the other provided type is the -// Group type or extends from the Group type. -func IsOrExtendsActivityStreamsGroup(other vocab.Type) bool { - return typegroup.IsOrExtendsGroup(other) -} - -// IsOrExtendsActivityStreamsIgnore returns true if the other provided type is the -// Ignore type or extends from the Ignore type. -func IsOrExtendsActivityStreamsIgnore(other vocab.Type) bool { - return typeignore.IsOrExtendsIgnore(other) -} - -// IsOrExtendsActivityStreamsImage returns true if the other provided type is the -// Image type or extends from the Image type. -func IsOrExtendsActivityStreamsImage(other vocab.Type) bool { - return typeimage.IsOrExtendsImage(other) -} - -// IsOrExtendsActivityStreamsIntransitiveActivity returns true if the other -// provided type is the IntransitiveActivity type or extends from the -// IntransitiveActivity type. -func IsOrExtendsActivityStreamsIntransitiveActivity(other vocab.Type) bool { - return typeintransitiveactivity.IsOrExtendsIntransitiveActivity(other) -} - -// IsOrExtendsActivityStreamsInvite returns true if the other provided type is the -// Invite type or extends from the Invite type. -func IsOrExtendsActivityStreamsInvite(other vocab.Type) bool { - return typeinvite.IsOrExtendsInvite(other) -} - -// IsOrExtendsActivityStreamsJoin returns true if the other provided type is the -// Join type or extends from the Join type. -func IsOrExtendsActivityStreamsJoin(other vocab.Type) bool { - return typejoin.IsOrExtendsJoin(other) -} - -// IsOrExtendsActivityStreamsLeave returns true if the other provided type is the -// Leave type or extends from the Leave type. -func IsOrExtendsActivityStreamsLeave(other vocab.Type) bool { - return typeleave.IsOrExtendsLeave(other) -} - -// IsOrExtendsActivityStreamsLike returns true if the other provided type is the -// Like type or extends from the Like type. -func IsOrExtendsActivityStreamsLike(other vocab.Type) bool { - return typelike.IsOrExtendsLike(other) -} - -// IsOrExtendsActivityStreamsLink returns true if the other provided type is the -// Link type or extends from the Link type. -func IsOrExtendsActivityStreamsLink(other vocab.Type) bool { - return typelink.IsOrExtendsLink(other) -} - -// IsOrExtendsActivityStreamsListen returns true if the other provided type is the -// Listen type or extends from the Listen type. -func IsOrExtendsActivityStreamsListen(other vocab.Type) bool { - return typelisten.IsOrExtendsListen(other) -} - -// IsOrExtendsActivityStreamsMention returns true if the other provided type is -// the Mention type or extends from the Mention type. -func IsOrExtendsActivityStreamsMention(other vocab.Type) bool { - return typemention.IsOrExtendsMention(other) -} - -// IsOrExtendsActivityStreamsMove returns true if the other provided type is the -// Move type or extends from the Move type. -func IsOrExtendsActivityStreamsMove(other vocab.Type) bool { - return typemove.IsOrExtendsMove(other) -} - -// IsOrExtendsActivityStreamsNote returns true if the other provided type is the -// Note type or extends from the Note type. -func IsOrExtendsActivityStreamsNote(other vocab.Type) bool { - return typenote.IsOrExtendsNote(other) -} - -// IsOrExtendsActivityStreamsObject returns true if the other provided type is the -// Object type or extends from the Object type. -func IsOrExtendsActivityStreamsObject(other vocab.Type) bool { - return typeobject.IsOrExtendsObject(other) -} - -// IsOrExtendsActivityStreamsOffer returns true if the other provided type is the -// Offer type or extends from the Offer type. -func IsOrExtendsActivityStreamsOffer(other vocab.Type) bool { - return typeoffer.IsOrExtendsOffer(other) -} - -// IsOrExtendsActivityStreamsOrderedCollection returns true if the other provided -// type is the OrderedCollection type or extends from the OrderedCollection -// type. -func IsOrExtendsActivityStreamsOrderedCollection(other vocab.Type) bool { - return typeorderedcollection.IsOrExtendsOrderedCollection(other) -} - -// IsOrExtendsActivityStreamsOrderedCollectionPage returns true if the other -// provided type is the OrderedCollectionPage type or extends from the -// OrderedCollectionPage type. -func IsOrExtendsActivityStreamsOrderedCollectionPage(other vocab.Type) bool { - return typeorderedcollectionpage.IsOrExtendsOrderedCollectionPage(other) -} - -// IsOrExtendsActivityStreamsOrganization returns true if the other provided type -// is the Organization type or extends from the Organization type. -func IsOrExtendsActivityStreamsOrganization(other vocab.Type) bool { - return typeorganization.IsOrExtendsOrganization(other) -} - -// IsOrExtendsActivityStreamsPage returns true if the other provided type is the -// Page type or extends from the Page type. -func IsOrExtendsActivityStreamsPage(other vocab.Type) bool { - return typepage.IsOrExtendsPage(other) -} - -// IsOrExtendsActivityStreamsPerson returns true if the other provided type is the -// Person type or extends from the Person type. -func IsOrExtendsActivityStreamsPerson(other vocab.Type) bool { - return typeperson.IsOrExtendsPerson(other) -} - -// IsOrExtendsActivityStreamsPlace returns true if the other provided type is the -// Place type or extends from the Place type. -func IsOrExtendsActivityStreamsPlace(other vocab.Type) bool { - return typeplace.IsOrExtendsPlace(other) -} - -// IsOrExtendsActivityStreamsProfile returns true if the other provided type is -// the Profile type or extends from the Profile type. -func IsOrExtendsActivityStreamsProfile(other vocab.Type) bool { - return typeprofile.IsOrExtendsProfile(other) -} - -// IsOrExtendsActivityStreamsQuestion returns true if the other provided type is -// the Question type or extends from the Question type. -func IsOrExtendsActivityStreamsQuestion(other vocab.Type) bool { - return typequestion.IsOrExtendsQuestion(other) -} - -// IsOrExtendsActivityStreamsRead returns true if the other provided type is the -// Read type or extends from the Read type. -func IsOrExtendsActivityStreamsRead(other vocab.Type) bool { - return typeread.IsOrExtendsRead(other) -} - -// IsOrExtendsActivityStreamsReject returns true if the other provided type is the -// Reject type or extends from the Reject type. -func IsOrExtendsActivityStreamsReject(other vocab.Type) bool { - return typereject.IsOrExtendsReject(other) -} - -// IsOrExtendsActivityStreamsRelationship returns true if the other provided type -// is the Relationship type or extends from the Relationship type. -func IsOrExtendsActivityStreamsRelationship(other vocab.Type) bool { - return typerelationship.IsOrExtendsRelationship(other) -} - -// IsOrExtendsActivityStreamsRemove returns true if the other provided type is the -// Remove type or extends from the Remove type. -func IsOrExtendsActivityStreamsRemove(other vocab.Type) bool { - return typeremove.IsOrExtendsRemove(other) -} - -// IsOrExtendsActivityStreamsService returns true if the other provided type is -// the Service type or extends from the Service type. -func IsOrExtendsActivityStreamsService(other vocab.Type) bool { - return typeservice.IsOrExtendsService(other) -} - -// IsOrExtendsActivityStreamsTentativeAccept returns true if the other provided -// type is the TentativeAccept type or extends from the TentativeAccept type. -func IsOrExtendsActivityStreamsTentativeAccept(other vocab.Type) bool { - return typetentativeaccept.IsOrExtendsTentativeAccept(other) -} - -// IsOrExtendsActivityStreamsTentativeReject returns true if the other provided -// type is the TentativeReject type or extends from the TentativeReject type. -func IsOrExtendsActivityStreamsTentativeReject(other vocab.Type) bool { - return typetentativereject.IsOrExtendsTentativeReject(other) -} - -// IsOrExtendsActivityStreamsTombstone returns true if the other provided type is -// the Tombstone type or extends from the Tombstone type. -func IsOrExtendsActivityStreamsTombstone(other vocab.Type) bool { - return typetombstone.IsOrExtendsTombstone(other) -} - -// IsOrExtendsActivityStreamsTravel returns true if the other provided type is the -// Travel type or extends from the Travel type. -func IsOrExtendsActivityStreamsTravel(other vocab.Type) bool { - return typetravel.IsOrExtendsTravel(other) -} - -// IsOrExtendsActivityStreamsUndo returns true if the other provided type is the -// Undo type or extends from the Undo type. -func IsOrExtendsActivityStreamsUndo(other vocab.Type) bool { - return typeundo.IsOrExtendsUndo(other) -} - -// IsOrExtendsActivityStreamsUpdate returns true if the other provided type is the -// Update type or extends from the Update type. -func IsOrExtendsActivityStreamsUpdate(other vocab.Type) bool { - return typeupdate.IsOrExtendsUpdate(other) -} - -// IsOrExtendsActivityStreamsVideo returns true if the other provided type is the -// Video type or extends from the Video type. -func IsOrExtendsActivityStreamsVideo(other vocab.Type) bool { - return typevideo.IsOrExtendsVideo(other) -} - -// IsOrExtendsActivityStreamsView returns true if the other provided type is the -// View type or extends from the View type. -func IsOrExtendsActivityStreamsView(other vocab.Type) bool { - return typeview.IsOrExtendsView(other) -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_property_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_property_constructors.go deleted file mode 100644 index 07e3dd705..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_property_constructors.go +++ /dev/null @@ -1,511 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - propertyaccuracy "github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy" - propertyactor "github.com/go-fed/activity/streams/impl/activitystreams/property_actor" - propertyaltitude "github.com/go-fed/activity/streams/impl/activitystreams/property_altitude" - propertyanyof "github.com/go-fed/activity/streams/impl/activitystreams/property_anyof" - propertyattachment "github.com/go-fed/activity/streams/impl/activitystreams/property_attachment" - propertyattributedto "github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto" - propertyaudience "github.com/go-fed/activity/streams/impl/activitystreams/property_audience" - propertybcc "github.com/go-fed/activity/streams/impl/activitystreams/property_bcc" - propertybto "github.com/go-fed/activity/streams/impl/activitystreams/property_bto" - propertycc "github.com/go-fed/activity/streams/impl/activitystreams/property_cc" - propertyclosed "github.com/go-fed/activity/streams/impl/activitystreams/property_closed" - propertycontent "github.com/go-fed/activity/streams/impl/activitystreams/property_content" - propertycontext "github.com/go-fed/activity/streams/impl/activitystreams/property_context" - propertycurrent "github.com/go-fed/activity/streams/impl/activitystreams/property_current" - propertydeleted "github.com/go-fed/activity/streams/impl/activitystreams/property_deleted" - propertydescribes "github.com/go-fed/activity/streams/impl/activitystreams/property_describes" - propertyduration "github.com/go-fed/activity/streams/impl/activitystreams/property_duration" - propertyendtime "github.com/go-fed/activity/streams/impl/activitystreams/property_endtime" - propertyfirst "github.com/go-fed/activity/streams/impl/activitystreams/property_first" - propertyfollowers "github.com/go-fed/activity/streams/impl/activitystreams/property_followers" - propertyfollowing "github.com/go-fed/activity/streams/impl/activitystreams/property_following" - propertyformertype "github.com/go-fed/activity/streams/impl/activitystreams/property_formertype" - propertygenerator "github.com/go-fed/activity/streams/impl/activitystreams/property_generator" - propertyheight "github.com/go-fed/activity/streams/impl/activitystreams/property_height" - propertyhref "github.com/go-fed/activity/streams/impl/activitystreams/property_href" - propertyhreflang "github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang" - propertyicon "github.com/go-fed/activity/streams/impl/activitystreams/property_icon" - propertyimage "github.com/go-fed/activity/streams/impl/activitystreams/property_image" - propertyinbox "github.com/go-fed/activity/streams/impl/activitystreams/property_inbox" - propertyinreplyto "github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto" - propertyinstrument "github.com/go-fed/activity/streams/impl/activitystreams/property_instrument" - propertyitems "github.com/go-fed/activity/streams/impl/activitystreams/property_items" - propertylast "github.com/go-fed/activity/streams/impl/activitystreams/property_last" - propertylatitude "github.com/go-fed/activity/streams/impl/activitystreams/property_latitude" - propertyliked "github.com/go-fed/activity/streams/impl/activitystreams/property_liked" - propertylikes "github.com/go-fed/activity/streams/impl/activitystreams/property_likes" - propertylocation "github.com/go-fed/activity/streams/impl/activitystreams/property_location" - propertylongitude "github.com/go-fed/activity/streams/impl/activitystreams/property_longitude" - propertymanuallyapprovesfollowers "github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers" - propertymediatype "github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype" - propertyname "github.com/go-fed/activity/streams/impl/activitystreams/property_name" - propertynext "github.com/go-fed/activity/streams/impl/activitystreams/property_next" - propertyobject "github.com/go-fed/activity/streams/impl/activitystreams/property_object" - propertyoneof "github.com/go-fed/activity/streams/impl/activitystreams/property_oneof" - propertyordereditems "github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems" - propertyorigin "github.com/go-fed/activity/streams/impl/activitystreams/property_origin" - propertyoutbox "github.com/go-fed/activity/streams/impl/activitystreams/property_outbox" - propertypartof "github.com/go-fed/activity/streams/impl/activitystreams/property_partof" - propertypreferredusername "github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername" - propertyprev "github.com/go-fed/activity/streams/impl/activitystreams/property_prev" - propertypreview "github.com/go-fed/activity/streams/impl/activitystreams/property_preview" - propertypublished "github.com/go-fed/activity/streams/impl/activitystreams/property_published" - propertyradius "github.com/go-fed/activity/streams/impl/activitystreams/property_radius" - propertyrel "github.com/go-fed/activity/streams/impl/activitystreams/property_rel" - propertyrelationship "github.com/go-fed/activity/streams/impl/activitystreams/property_relationship" - propertyreplies "github.com/go-fed/activity/streams/impl/activitystreams/property_replies" - propertyresult "github.com/go-fed/activity/streams/impl/activitystreams/property_result" - propertyshares "github.com/go-fed/activity/streams/impl/activitystreams/property_shares" - propertysource "github.com/go-fed/activity/streams/impl/activitystreams/property_source" - propertystartindex "github.com/go-fed/activity/streams/impl/activitystreams/property_startindex" - propertystarttime "github.com/go-fed/activity/streams/impl/activitystreams/property_starttime" - propertystreams "github.com/go-fed/activity/streams/impl/activitystreams/property_streams" - propertysubject "github.com/go-fed/activity/streams/impl/activitystreams/property_subject" - propertysummary "github.com/go-fed/activity/streams/impl/activitystreams/property_summary" - propertytag "github.com/go-fed/activity/streams/impl/activitystreams/property_tag" - propertytarget "github.com/go-fed/activity/streams/impl/activitystreams/property_target" - propertyto "github.com/go-fed/activity/streams/impl/activitystreams/property_to" - propertytotalitems "github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems" - propertyunits "github.com/go-fed/activity/streams/impl/activitystreams/property_units" - propertyupdated "github.com/go-fed/activity/streams/impl/activitystreams/property_updated" - propertyurl "github.com/go-fed/activity/streams/impl/activitystreams/property_url" - propertywidth "github.com/go-fed/activity/streams/impl/activitystreams/property_width" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// NewActivityStreamsActivityStreamsAccuracyProperty creates a new -// ActivityStreamsAccuracyProperty -func NewActivityStreamsAccuracyProperty() vocab.ActivityStreamsAccuracyProperty { - return propertyaccuracy.NewActivityStreamsAccuracyProperty() -} - -// NewActivityStreamsActivityStreamsActorProperty creates a new -// ActivityStreamsActorProperty -func NewActivityStreamsActorProperty() vocab.ActivityStreamsActorProperty { - return propertyactor.NewActivityStreamsActorProperty() -} - -// NewActivityStreamsActivityStreamsAltitudeProperty creates a new -// ActivityStreamsAltitudeProperty -func NewActivityStreamsAltitudeProperty() vocab.ActivityStreamsAltitudeProperty { - return propertyaltitude.NewActivityStreamsAltitudeProperty() -} - -// NewActivityStreamsActivityStreamsAnyOfProperty creates a new -// ActivityStreamsAnyOfProperty -func NewActivityStreamsAnyOfProperty() vocab.ActivityStreamsAnyOfProperty { - return propertyanyof.NewActivityStreamsAnyOfProperty() -} - -// NewActivityStreamsActivityStreamsAttachmentProperty creates a new -// ActivityStreamsAttachmentProperty -func NewActivityStreamsAttachmentProperty() vocab.ActivityStreamsAttachmentProperty { - return propertyattachment.NewActivityStreamsAttachmentProperty() -} - -// NewActivityStreamsActivityStreamsAttributedToProperty creates a new -// ActivityStreamsAttributedToProperty -func NewActivityStreamsAttributedToProperty() vocab.ActivityStreamsAttributedToProperty { - return propertyattributedto.NewActivityStreamsAttributedToProperty() -} - -// NewActivityStreamsActivityStreamsAudienceProperty creates a new -// ActivityStreamsAudienceProperty -func NewActivityStreamsAudienceProperty() vocab.ActivityStreamsAudienceProperty { - return propertyaudience.NewActivityStreamsAudienceProperty() -} - -// NewActivityStreamsActivityStreamsBccProperty creates a new -// ActivityStreamsBccProperty -func NewActivityStreamsBccProperty() vocab.ActivityStreamsBccProperty { - return propertybcc.NewActivityStreamsBccProperty() -} - -// NewActivityStreamsActivityStreamsBtoProperty creates a new -// ActivityStreamsBtoProperty -func NewActivityStreamsBtoProperty() vocab.ActivityStreamsBtoProperty { - return propertybto.NewActivityStreamsBtoProperty() -} - -// NewActivityStreamsActivityStreamsCcProperty creates a new -// ActivityStreamsCcProperty -func NewActivityStreamsCcProperty() vocab.ActivityStreamsCcProperty { - return propertycc.NewActivityStreamsCcProperty() -} - -// NewActivityStreamsActivityStreamsClosedProperty creates a new -// ActivityStreamsClosedProperty -func NewActivityStreamsClosedProperty() vocab.ActivityStreamsClosedProperty { - return propertyclosed.NewActivityStreamsClosedProperty() -} - -// NewActivityStreamsActivityStreamsContentProperty creates a new -// ActivityStreamsContentProperty -func NewActivityStreamsContentProperty() vocab.ActivityStreamsContentProperty { - return propertycontent.NewActivityStreamsContentProperty() -} - -// NewActivityStreamsActivityStreamsContextProperty creates a new -// ActivityStreamsContextProperty -func NewActivityStreamsContextProperty() vocab.ActivityStreamsContextProperty { - return propertycontext.NewActivityStreamsContextProperty() -} - -// NewActivityStreamsActivityStreamsCurrentProperty creates a new -// ActivityStreamsCurrentProperty -func NewActivityStreamsCurrentProperty() vocab.ActivityStreamsCurrentProperty { - return propertycurrent.NewActivityStreamsCurrentProperty() -} - -// NewActivityStreamsActivityStreamsDeletedProperty creates a new -// ActivityStreamsDeletedProperty -func NewActivityStreamsDeletedProperty() vocab.ActivityStreamsDeletedProperty { - return propertydeleted.NewActivityStreamsDeletedProperty() -} - -// NewActivityStreamsActivityStreamsDescribesProperty creates a new -// ActivityStreamsDescribesProperty -func NewActivityStreamsDescribesProperty() vocab.ActivityStreamsDescribesProperty { - return propertydescribes.NewActivityStreamsDescribesProperty() -} - -// NewActivityStreamsActivityStreamsDurationProperty creates a new -// ActivityStreamsDurationProperty -func NewActivityStreamsDurationProperty() vocab.ActivityStreamsDurationProperty { - return propertyduration.NewActivityStreamsDurationProperty() -} - -// NewActivityStreamsActivityStreamsEndTimeProperty creates a new -// ActivityStreamsEndTimeProperty -func NewActivityStreamsEndTimeProperty() vocab.ActivityStreamsEndTimeProperty { - return propertyendtime.NewActivityStreamsEndTimeProperty() -} - -// NewActivityStreamsActivityStreamsFirstProperty creates a new -// ActivityStreamsFirstProperty -func NewActivityStreamsFirstProperty() vocab.ActivityStreamsFirstProperty { - return propertyfirst.NewActivityStreamsFirstProperty() -} - -// NewActivityStreamsActivityStreamsFollowersProperty creates a new -// ActivityStreamsFollowersProperty -func NewActivityStreamsFollowersProperty() vocab.ActivityStreamsFollowersProperty { - return propertyfollowers.NewActivityStreamsFollowersProperty() -} - -// NewActivityStreamsActivityStreamsFollowingProperty creates a new -// ActivityStreamsFollowingProperty -func NewActivityStreamsFollowingProperty() vocab.ActivityStreamsFollowingProperty { - return propertyfollowing.NewActivityStreamsFollowingProperty() -} - -// NewActivityStreamsActivityStreamsFormerTypeProperty creates a new -// ActivityStreamsFormerTypeProperty -func NewActivityStreamsFormerTypeProperty() vocab.ActivityStreamsFormerTypeProperty { - return propertyformertype.NewActivityStreamsFormerTypeProperty() -} - -// NewActivityStreamsActivityStreamsGeneratorProperty creates a new -// ActivityStreamsGeneratorProperty -func NewActivityStreamsGeneratorProperty() vocab.ActivityStreamsGeneratorProperty { - return propertygenerator.NewActivityStreamsGeneratorProperty() -} - -// NewActivityStreamsActivityStreamsHeightProperty creates a new -// ActivityStreamsHeightProperty -func NewActivityStreamsHeightProperty() vocab.ActivityStreamsHeightProperty { - return propertyheight.NewActivityStreamsHeightProperty() -} - -// NewActivityStreamsActivityStreamsHrefProperty creates a new -// ActivityStreamsHrefProperty -func NewActivityStreamsHrefProperty() vocab.ActivityStreamsHrefProperty { - return propertyhref.NewActivityStreamsHrefProperty() -} - -// NewActivityStreamsActivityStreamsHreflangProperty creates a new -// ActivityStreamsHreflangProperty -func NewActivityStreamsHreflangProperty() vocab.ActivityStreamsHreflangProperty { - return propertyhreflang.NewActivityStreamsHreflangProperty() -} - -// NewActivityStreamsActivityStreamsIconProperty creates a new -// ActivityStreamsIconProperty -func NewActivityStreamsIconProperty() vocab.ActivityStreamsIconProperty { - return propertyicon.NewActivityStreamsIconProperty() -} - -// NewActivityStreamsActivityStreamsImageProperty creates a new -// ActivityStreamsImageProperty -func NewActivityStreamsImageProperty() vocab.ActivityStreamsImageProperty { - return propertyimage.NewActivityStreamsImageProperty() -} - -// NewActivityStreamsActivityStreamsInReplyToProperty creates a new -// ActivityStreamsInReplyToProperty -func NewActivityStreamsInReplyToProperty() vocab.ActivityStreamsInReplyToProperty { - return propertyinreplyto.NewActivityStreamsInReplyToProperty() -} - -// NewActivityStreamsActivityStreamsInboxProperty creates a new -// ActivityStreamsInboxProperty -func NewActivityStreamsInboxProperty() vocab.ActivityStreamsInboxProperty { - return propertyinbox.NewActivityStreamsInboxProperty() -} - -// NewActivityStreamsActivityStreamsInstrumentProperty creates a new -// ActivityStreamsInstrumentProperty -func NewActivityStreamsInstrumentProperty() vocab.ActivityStreamsInstrumentProperty { - return propertyinstrument.NewActivityStreamsInstrumentProperty() -} - -// NewActivityStreamsActivityStreamsItemsProperty creates a new -// ActivityStreamsItemsProperty -func NewActivityStreamsItemsProperty() vocab.ActivityStreamsItemsProperty { - return propertyitems.NewActivityStreamsItemsProperty() -} - -// NewActivityStreamsActivityStreamsLastProperty creates a new -// ActivityStreamsLastProperty -func NewActivityStreamsLastProperty() vocab.ActivityStreamsLastProperty { - return propertylast.NewActivityStreamsLastProperty() -} - -// NewActivityStreamsActivityStreamsLatitudeProperty creates a new -// ActivityStreamsLatitudeProperty -func NewActivityStreamsLatitudeProperty() vocab.ActivityStreamsLatitudeProperty { - return propertylatitude.NewActivityStreamsLatitudeProperty() -} - -// NewActivityStreamsActivityStreamsLikedProperty creates a new -// ActivityStreamsLikedProperty -func NewActivityStreamsLikedProperty() vocab.ActivityStreamsLikedProperty { - return propertyliked.NewActivityStreamsLikedProperty() -} - -// NewActivityStreamsActivityStreamsLikesProperty creates a new -// ActivityStreamsLikesProperty -func NewActivityStreamsLikesProperty() vocab.ActivityStreamsLikesProperty { - return propertylikes.NewActivityStreamsLikesProperty() -} - -// NewActivityStreamsActivityStreamsLocationProperty creates a new -// ActivityStreamsLocationProperty -func NewActivityStreamsLocationProperty() vocab.ActivityStreamsLocationProperty { - return propertylocation.NewActivityStreamsLocationProperty() -} - -// NewActivityStreamsActivityStreamsLongitudeProperty creates a new -// ActivityStreamsLongitudeProperty -func NewActivityStreamsLongitudeProperty() vocab.ActivityStreamsLongitudeProperty { - return propertylongitude.NewActivityStreamsLongitudeProperty() -} - -// NewActivityStreamsActivityStreamsManuallyApprovesFollowersProperty creates a -// new ActivityStreamsManuallyApprovesFollowersProperty -func NewActivityStreamsManuallyApprovesFollowersProperty() vocab.ActivityStreamsManuallyApprovesFollowersProperty { - return propertymanuallyapprovesfollowers.NewActivityStreamsManuallyApprovesFollowersProperty() -} - -// NewActivityStreamsActivityStreamsMediaTypeProperty creates a new -// ActivityStreamsMediaTypeProperty -func NewActivityStreamsMediaTypeProperty() vocab.ActivityStreamsMediaTypeProperty { - return propertymediatype.NewActivityStreamsMediaTypeProperty() -} - -// NewActivityStreamsActivityStreamsNameProperty creates a new -// ActivityStreamsNameProperty -func NewActivityStreamsNameProperty() vocab.ActivityStreamsNameProperty { - return propertyname.NewActivityStreamsNameProperty() -} - -// NewActivityStreamsActivityStreamsNextProperty creates a new -// ActivityStreamsNextProperty -func NewActivityStreamsNextProperty() vocab.ActivityStreamsNextProperty { - return propertynext.NewActivityStreamsNextProperty() -} - -// NewActivityStreamsActivityStreamsObjectProperty creates a new -// ActivityStreamsObjectProperty -func NewActivityStreamsObjectProperty() vocab.ActivityStreamsObjectProperty { - return propertyobject.NewActivityStreamsObjectProperty() -} - -// NewActivityStreamsActivityStreamsOneOfProperty creates a new -// ActivityStreamsOneOfProperty -func NewActivityStreamsOneOfProperty() vocab.ActivityStreamsOneOfProperty { - return propertyoneof.NewActivityStreamsOneOfProperty() -} - -// NewActivityStreamsActivityStreamsOrderedItemsProperty creates a new -// ActivityStreamsOrderedItemsProperty -func NewActivityStreamsOrderedItemsProperty() vocab.ActivityStreamsOrderedItemsProperty { - return propertyordereditems.NewActivityStreamsOrderedItemsProperty() -} - -// NewActivityStreamsActivityStreamsOriginProperty creates a new -// ActivityStreamsOriginProperty -func NewActivityStreamsOriginProperty() vocab.ActivityStreamsOriginProperty { - return propertyorigin.NewActivityStreamsOriginProperty() -} - -// NewActivityStreamsActivityStreamsOutboxProperty creates a new -// ActivityStreamsOutboxProperty -func NewActivityStreamsOutboxProperty() vocab.ActivityStreamsOutboxProperty { - return propertyoutbox.NewActivityStreamsOutboxProperty() -} - -// NewActivityStreamsActivityStreamsPartOfProperty creates a new -// ActivityStreamsPartOfProperty -func NewActivityStreamsPartOfProperty() vocab.ActivityStreamsPartOfProperty { - return propertypartof.NewActivityStreamsPartOfProperty() -} - -// NewActivityStreamsActivityStreamsPreferredUsernameProperty creates a new -// ActivityStreamsPreferredUsernameProperty -func NewActivityStreamsPreferredUsernameProperty() vocab.ActivityStreamsPreferredUsernameProperty { - return propertypreferredusername.NewActivityStreamsPreferredUsernameProperty() -} - -// NewActivityStreamsActivityStreamsPrevProperty creates a new -// ActivityStreamsPrevProperty -func NewActivityStreamsPrevProperty() vocab.ActivityStreamsPrevProperty { - return propertyprev.NewActivityStreamsPrevProperty() -} - -// NewActivityStreamsActivityStreamsPreviewProperty creates a new -// ActivityStreamsPreviewProperty -func NewActivityStreamsPreviewProperty() vocab.ActivityStreamsPreviewProperty { - return propertypreview.NewActivityStreamsPreviewProperty() -} - -// NewActivityStreamsActivityStreamsPublishedProperty creates a new -// ActivityStreamsPublishedProperty -func NewActivityStreamsPublishedProperty() vocab.ActivityStreamsPublishedProperty { - return propertypublished.NewActivityStreamsPublishedProperty() -} - -// NewActivityStreamsActivityStreamsRadiusProperty creates a new -// ActivityStreamsRadiusProperty -func NewActivityStreamsRadiusProperty() vocab.ActivityStreamsRadiusProperty { - return propertyradius.NewActivityStreamsRadiusProperty() -} - -// NewActivityStreamsActivityStreamsRelProperty creates a new -// ActivityStreamsRelProperty -func NewActivityStreamsRelProperty() vocab.ActivityStreamsRelProperty { - return propertyrel.NewActivityStreamsRelProperty() -} - -// NewActivityStreamsActivityStreamsRelationshipProperty creates a new -// ActivityStreamsRelationshipProperty -func NewActivityStreamsRelationshipProperty() vocab.ActivityStreamsRelationshipProperty { - return propertyrelationship.NewActivityStreamsRelationshipProperty() -} - -// NewActivityStreamsActivityStreamsRepliesProperty creates a new -// ActivityStreamsRepliesProperty -func NewActivityStreamsRepliesProperty() vocab.ActivityStreamsRepliesProperty { - return propertyreplies.NewActivityStreamsRepliesProperty() -} - -// NewActivityStreamsActivityStreamsResultProperty creates a new -// ActivityStreamsResultProperty -func NewActivityStreamsResultProperty() vocab.ActivityStreamsResultProperty { - return propertyresult.NewActivityStreamsResultProperty() -} - -// NewActivityStreamsActivityStreamsSharesProperty creates a new -// ActivityStreamsSharesProperty -func NewActivityStreamsSharesProperty() vocab.ActivityStreamsSharesProperty { - return propertyshares.NewActivityStreamsSharesProperty() -} - -// NewActivityStreamsActivityStreamsSourceProperty creates a new -// ActivityStreamsSourceProperty -func NewActivityStreamsSourceProperty() vocab.ActivityStreamsSourceProperty { - return propertysource.NewActivityStreamsSourceProperty() -} - -// NewActivityStreamsActivityStreamsStartIndexProperty creates a new -// ActivityStreamsStartIndexProperty -func NewActivityStreamsStartIndexProperty() vocab.ActivityStreamsStartIndexProperty { - return propertystartindex.NewActivityStreamsStartIndexProperty() -} - -// NewActivityStreamsActivityStreamsStartTimeProperty creates a new -// ActivityStreamsStartTimeProperty -func NewActivityStreamsStartTimeProperty() vocab.ActivityStreamsStartTimeProperty { - return propertystarttime.NewActivityStreamsStartTimeProperty() -} - -// NewActivityStreamsActivityStreamsStreamsProperty creates a new -// ActivityStreamsStreamsProperty -func NewActivityStreamsStreamsProperty() vocab.ActivityStreamsStreamsProperty { - return propertystreams.NewActivityStreamsStreamsProperty() -} - -// NewActivityStreamsActivityStreamsSubjectProperty creates a new -// ActivityStreamsSubjectProperty -func NewActivityStreamsSubjectProperty() vocab.ActivityStreamsSubjectProperty { - return propertysubject.NewActivityStreamsSubjectProperty() -} - -// NewActivityStreamsActivityStreamsSummaryProperty creates a new -// ActivityStreamsSummaryProperty -func NewActivityStreamsSummaryProperty() vocab.ActivityStreamsSummaryProperty { - return propertysummary.NewActivityStreamsSummaryProperty() -} - -// NewActivityStreamsActivityStreamsTagProperty creates a new -// ActivityStreamsTagProperty -func NewActivityStreamsTagProperty() vocab.ActivityStreamsTagProperty { - return propertytag.NewActivityStreamsTagProperty() -} - -// NewActivityStreamsActivityStreamsTargetProperty creates a new -// ActivityStreamsTargetProperty -func NewActivityStreamsTargetProperty() vocab.ActivityStreamsTargetProperty { - return propertytarget.NewActivityStreamsTargetProperty() -} - -// NewActivityStreamsActivityStreamsToProperty creates a new -// ActivityStreamsToProperty -func NewActivityStreamsToProperty() vocab.ActivityStreamsToProperty { - return propertyto.NewActivityStreamsToProperty() -} - -// NewActivityStreamsActivityStreamsTotalItemsProperty creates a new -// ActivityStreamsTotalItemsProperty -func NewActivityStreamsTotalItemsProperty() vocab.ActivityStreamsTotalItemsProperty { - return propertytotalitems.NewActivityStreamsTotalItemsProperty() -} - -// NewActivityStreamsActivityStreamsUnitsProperty creates a new -// ActivityStreamsUnitsProperty -func NewActivityStreamsUnitsProperty() vocab.ActivityStreamsUnitsProperty { - return propertyunits.NewActivityStreamsUnitsProperty() -} - -// NewActivityStreamsActivityStreamsUpdatedProperty creates a new -// ActivityStreamsUpdatedProperty -func NewActivityStreamsUpdatedProperty() vocab.ActivityStreamsUpdatedProperty { - return propertyupdated.NewActivityStreamsUpdatedProperty() -} - -// NewActivityStreamsActivityStreamsUrlProperty creates a new -// ActivityStreamsUrlProperty -func NewActivityStreamsUrlProperty() vocab.ActivityStreamsUrlProperty { - return propertyurl.NewActivityStreamsUrlProperty() -} - -// NewActivityStreamsActivityStreamsWidthProperty creates a new -// ActivityStreamsWidthProperty -func NewActivityStreamsWidthProperty() vocab.ActivityStreamsWidthProperty { - return propertywidth.NewActivityStreamsWidthProperty() -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_type_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_type_constructors.go deleted file mode 100644 index e22d1c16a..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_type_constructors.go +++ /dev/null @@ -1,334 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_accept" - typeactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_activity" - typeadd "github.com/go-fed/activity/streams/impl/activitystreams/type_add" - typeannounce "github.com/go-fed/activity/streams/impl/activitystreams/type_announce" - typeapplication "github.com/go-fed/activity/streams/impl/activitystreams/type_application" - typearrive "github.com/go-fed/activity/streams/impl/activitystreams/type_arrive" - typearticle "github.com/go-fed/activity/streams/impl/activitystreams/type_article" - typeaudio "github.com/go-fed/activity/streams/impl/activitystreams/type_audio" - typeblock "github.com/go-fed/activity/streams/impl/activitystreams/type_block" - typecollection "github.com/go-fed/activity/streams/impl/activitystreams/type_collection" - typecollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage" - typecreate "github.com/go-fed/activity/streams/impl/activitystreams/type_create" - typedelete "github.com/go-fed/activity/streams/impl/activitystreams/type_delete" - typedislike "github.com/go-fed/activity/streams/impl/activitystreams/type_dislike" - typedocument "github.com/go-fed/activity/streams/impl/activitystreams/type_document" - typeevent "github.com/go-fed/activity/streams/impl/activitystreams/type_event" - typeflag "github.com/go-fed/activity/streams/impl/activitystreams/type_flag" - typefollow "github.com/go-fed/activity/streams/impl/activitystreams/type_follow" - typegroup "github.com/go-fed/activity/streams/impl/activitystreams/type_group" - typeignore "github.com/go-fed/activity/streams/impl/activitystreams/type_ignore" - typeimage "github.com/go-fed/activity/streams/impl/activitystreams/type_image" - typeintransitiveactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity" - typeinvite "github.com/go-fed/activity/streams/impl/activitystreams/type_invite" - typejoin "github.com/go-fed/activity/streams/impl/activitystreams/type_join" - typeleave "github.com/go-fed/activity/streams/impl/activitystreams/type_leave" - typelike "github.com/go-fed/activity/streams/impl/activitystreams/type_like" - typelink "github.com/go-fed/activity/streams/impl/activitystreams/type_link" - typelisten "github.com/go-fed/activity/streams/impl/activitystreams/type_listen" - typemention "github.com/go-fed/activity/streams/impl/activitystreams/type_mention" - typemove "github.com/go-fed/activity/streams/impl/activitystreams/type_move" - typenote "github.com/go-fed/activity/streams/impl/activitystreams/type_note" - typeobject "github.com/go-fed/activity/streams/impl/activitystreams/type_object" - typeoffer "github.com/go-fed/activity/streams/impl/activitystreams/type_offer" - typeorderedcollection "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection" - typeorderedcollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage" - typeorganization "github.com/go-fed/activity/streams/impl/activitystreams/type_organization" - typepage "github.com/go-fed/activity/streams/impl/activitystreams/type_page" - typeperson "github.com/go-fed/activity/streams/impl/activitystreams/type_person" - typeplace "github.com/go-fed/activity/streams/impl/activitystreams/type_place" - typeprofile "github.com/go-fed/activity/streams/impl/activitystreams/type_profile" - typequestion "github.com/go-fed/activity/streams/impl/activitystreams/type_question" - typeread "github.com/go-fed/activity/streams/impl/activitystreams/type_read" - typereject "github.com/go-fed/activity/streams/impl/activitystreams/type_reject" - typerelationship "github.com/go-fed/activity/streams/impl/activitystreams/type_relationship" - typeremove "github.com/go-fed/activity/streams/impl/activitystreams/type_remove" - typeservice "github.com/go-fed/activity/streams/impl/activitystreams/type_service" - typetentativeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept" - typetentativereject "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject" - typetombstone "github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone" - typetravel "github.com/go-fed/activity/streams/impl/activitystreams/type_travel" - typeundo "github.com/go-fed/activity/streams/impl/activitystreams/type_undo" - typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update" - typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video" - typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// NewActivityStreamsAccept creates a new ActivityStreamsAccept -func NewActivityStreamsAccept() vocab.ActivityStreamsAccept { - return typeaccept.NewActivityStreamsAccept() -} - -// NewActivityStreamsActivity creates a new ActivityStreamsActivity -func NewActivityStreamsActivity() vocab.ActivityStreamsActivity { - return typeactivity.NewActivityStreamsActivity() -} - -// NewActivityStreamsAdd creates a new ActivityStreamsAdd -func NewActivityStreamsAdd() vocab.ActivityStreamsAdd { - return typeadd.NewActivityStreamsAdd() -} - -// NewActivityStreamsAnnounce creates a new ActivityStreamsAnnounce -func NewActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return typeannounce.NewActivityStreamsAnnounce() -} - -// NewActivityStreamsApplication creates a new ActivityStreamsApplication -func NewActivityStreamsApplication() vocab.ActivityStreamsApplication { - return typeapplication.NewActivityStreamsApplication() -} - -// NewActivityStreamsArrive creates a new ActivityStreamsArrive -func NewActivityStreamsArrive() vocab.ActivityStreamsArrive { - return typearrive.NewActivityStreamsArrive() -} - -// NewActivityStreamsArticle creates a new ActivityStreamsArticle -func NewActivityStreamsArticle() vocab.ActivityStreamsArticle { - return typearticle.NewActivityStreamsArticle() -} - -// NewActivityStreamsAudio creates a new ActivityStreamsAudio -func NewActivityStreamsAudio() vocab.ActivityStreamsAudio { - return typeaudio.NewActivityStreamsAudio() -} - -// NewActivityStreamsBlock creates a new ActivityStreamsBlock -func NewActivityStreamsBlock() vocab.ActivityStreamsBlock { - return typeblock.NewActivityStreamsBlock() -} - -// NewActivityStreamsCollection creates a new ActivityStreamsCollection -func NewActivityStreamsCollection() vocab.ActivityStreamsCollection { - return typecollection.NewActivityStreamsCollection() -} - -// NewActivityStreamsCollectionPage creates a new ActivityStreamsCollectionPage -func NewActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return typecollectionpage.NewActivityStreamsCollectionPage() -} - -// NewActivityStreamsCreate creates a new ActivityStreamsCreate -func NewActivityStreamsCreate() vocab.ActivityStreamsCreate { - return typecreate.NewActivityStreamsCreate() -} - -// NewActivityStreamsDelete creates a new ActivityStreamsDelete -func NewActivityStreamsDelete() vocab.ActivityStreamsDelete { - return typedelete.NewActivityStreamsDelete() -} - -// NewActivityStreamsDislike creates a new ActivityStreamsDislike -func NewActivityStreamsDislike() vocab.ActivityStreamsDislike { - return typedislike.NewActivityStreamsDislike() -} - -// NewActivityStreamsDocument creates a new ActivityStreamsDocument -func NewActivityStreamsDocument() vocab.ActivityStreamsDocument { - return typedocument.NewActivityStreamsDocument() -} - -// NewActivityStreamsEvent creates a new ActivityStreamsEvent -func NewActivityStreamsEvent() vocab.ActivityStreamsEvent { - return typeevent.NewActivityStreamsEvent() -} - -// NewActivityStreamsFlag creates a new ActivityStreamsFlag -func NewActivityStreamsFlag() vocab.ActivityStreamsFlag { - return typeflag.NewActivityStreamsFlag() -} - -// NewActivityStreamsFollow creates a new ActivityStreamsFollow -func NewActivityStreamsFollow() vocab.ActivityStreamsFollow { - return typefollow.NewActivityStreamsFollow() -} - -// NewActivityStreamsGroup creates a new ActivityStreamsGroup -func NewActivityStreamsGroup() vocab.ActivityStreamsGroup { - return typegroup.NewActivityStreamsGroup() -} - -// NewActivityStreamsIgnore creates a new ActivityStreamsIgnore -func NewActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return typeignore.NewActivityStreamsIgnore() -} - -// NewActivityStreamsImage creates a new ActivityStreamsImage -func NewActivityStreamsImage() vocab.ActivityStreamsImage { - return typeimage.NewActivityStreamsImage() -} - -// NewActivityStreamsIntransitiveActivity creates a new -// ActivityStreamsIntransitiveActivity -func NewActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return typeintransitiveactivity.NewActivityStreamsIntransitiveActivity() -} - -// NewActivityStreamsInvite creates a new ActivityStreamsInvite -func NewActivityStreamsInvite() vocab.ActivityStreamsInvite { - return typeinvite.NewActivityStreamsInvite() -} - -// NewActivityStreamsJoin creates a new ActivityStreamsJoin -func NewActivityStreamsJoin() vocab.ActivityStreamsJoin { - return typejoin.NewActivityStreamsJoin() -} - -// NewActivityStreamsLeave creates a new ActivityStreamsLeave -func NewActivityStreamsLeave() vocab.ActivityStreamsLeave { - return typeleave.NewActivityStreamsLeave() -} - -// NewActivityStreamsLike creates a new ActivityStreamsLike -func NewActivityStreamsLike() vocab.ActivityStreamsLike { - return typelike.NewActivityStreamsLike() -} - -// NewActivityStreamsLink creates a new ActivityStreamsLink -func NewActivityStreamsLink() vocab.ActivityStreamsLink { - return typelink.NewActivityStreamsLink() -} - -// NewActivityStreamsListen creates a new ActivityStreamsListen -func NewActivityStreamsListen() vocab.ActivityStreamsListen { - return typelisten.NewActivityStreamsListen() -} - -// NewActivityStreamsMention creates a new ActivityStreamsMention -func NewActivityStreamsMention() vocab.ActivityStreamsMention { - return typemention.NewActivityStreamsMention() -} - -// NewActivityStreamsMove creates a new ActivityStreamsMove -func NewActivityStreamsMove() vocab.ActivityStreamsMove { - return typemove.NewActivityStreamsMove() -} - -// NewActivityStreamsNote creates a new ActivityStreamsNote -func NewActivityStreamsNote() vocab.ActivityStreamsNote { - return typenote.NewActivityStreamsNote() -} - -// NewActivityStreamsObject creates a new ActivityStreamsObject -func NewActivityStreamsObject() vocab.ActivityStreamsObject { - return typeobject.NewActivityStreamsObject() -} - -// NewActivityStreamsOffer creates a new ActivityStreamsOffer -func NewActivityStreamsOffer() vocab.ActivityStreamsOffer { - return typeoffer.NewActivityStreamsOffer() -} - -// NewActivityStreamsOrderedCollection creates a new -// ActivityStreamsOrderedCollection -func NewActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return typeorderedcollection.NewActivityStreamsOrderedCollection() -} - -// NewActivityStreamsOrderedCollectionPage creates a new -// ActivityStreamsOrderedCollectionPage -func NewActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return typeorderedcollectionpage.NewActivityStreamsOrderedCollectionPage() -} - -// NewActivityStreamsOrganization creates a new ActivityStreamsOrganization -func NewActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return typeorganization.NewActivityStreamsOrganization() -} - -// NewActivityStreamsPage creates a new ActivityStreamsPage -func NewActivityStreamsPage() vocab.ActivityStreamsPage { - return typepage.NewActivityStreamsPage() -} - -// NewActivityStreamsPerson creates a new ActivityStreamsPerson -func NewActivityStreamsPerson() vocab.ActivityStreamsPerson { - return typeperson.NewActivityStreamsPerson() -} - -// NewActivityStreamsPlace creates a new ActivityStreamsPlace -func NewActivityStreamsPlace() vocab.ActivityStreamsPlace { - return typeplace.NewActivityStreamsPlace() -} - -// NewActivityStreamsProfile creates a new ActivityStreamsProfile -func NewActivityStreamsProfile() vocab.ActivityStreamsProfile { - return typeprofile.NewActivityStreamsProfile() -} - -// NewActivityStreamsQuestion creates a new ActivityStreamsQuestion -func NewActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return typequestion.NewActivityStreamsQuestion() -} - -// NewActivityStreamsRead creates a new ActivityStreamsRead -func NewActivityStreamsRead() vocab.ActivityStreamsRead { - return typeread.NewActivityStreamsRead() -} - -// NewActivityStreamsReject creates a new ActivityStreamsReject -func NewActivityStreamsReject() vocab.ActivityStreamsReject { - return typereject.NewActivityStreamsReject() -} - -// NewActivityStreamsRelationship creates a new ActivityStreamsRelationship -func NewActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return typerelationship.NewActivityStreamsRelationship() -} - -// NewActivityStreamsRemove creates a new ActivityStreamsRemove -func NewActivityStreamsRemove() vocab.ActivityStreamsRemove { - return typeremove.NewActivityStreamsRemove() -} - -// NewActivityStreamsService creates a new ActivityStreamsService -func NewActivityStreamsService() vocab.ActivityStreamsService { - return typeservice.NewActivityStreamsService() -} - -// NewActivityStreamsTentativeAccept creates a new ActivityStreamsTentativeAccept -func NewActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return typetentativeaccept.NewActivityStreamsTentativeAccept() -} - -// NewActivityStreamsTentativeReject creates a new ActivityStreamsTentativeReject -func NewActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return typetentativereject.NewActivityStreamsTentativeReject() -} - -// NewActivityStreamsTombstone creates a new ActivityStreamsTombstone -func NewActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return typetombstone.NewActivityStreamsTombstone() -} - -// NewActivityStreamsTravel creates a new ActivityStreamsTravel -func NewActivityStreamsTravel() vocab.ActivityStreamsTravel { - return typetravel.NewActivityStreamsTravel() -} - -// NewActivityStreamsUndo creates a new ActivityStreamsUndo -func NewActivityStreamsUndo() vocab.ActivityStreamsUndo { - return typeundo.NewActivityStreamsUndo() -} - -// NewActivityStreamsUpdate creates a new ActivityStreamsUpdate -func NewActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return typeupdate.NewActivityStreamsUpdate() -} - -// NewActivityStreamsVideo creates a new ActivityStreamsVideo -func NewActivityStreamsVideo() vocab.ActivityStreamsVideo { - return typevideo.NewActivityStreamsVideo() -} - -// NewActivityStreamsView creates a new ActivityStreamsView -func NewActivityStreamsView() vocab.ActivityStreamsView { - return typeview.NewActivityStreamsView() -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_disjoint.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_disjoint.go deleted file mode 100644 index d6299f7ae..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_disjoint.go +++ /dev/null @@ -1,49 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch" - typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit" - typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push" - typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository" - typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket" - typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// ForgeFedBranchIsDisjointWith returns true if Branch is disjoint with the -// other's type. -func ForgeFedBranchIsDisjointWith(other vocab.Type) bool { - return typebranch.BranchIsDisjointWith(other) -} - -// ForgeFedCommitIsDisjointWith returns true if Commit is disjoint with the -// other's type. -func ForgeFedCommitIsDisjointWith(other vocab.Type) bool { - return typecommit.CommitIsDisjointWith(other) -} - -// ForgeFedPushIsDisjointWith returns true if Push is disjoint with the other's -// type. -func ForgeFedPushIsDisjointWith(other vocab.Type) bool { - return typepush.PushIsDisjointWith(other) -} - -// ForgeFedRepositoryIsDisjointWith returns true if Repository is disjoint with -// the other's type. -func ForgeFedRepositoryIsDisjointWith(other vocab.Type) bool { - return typerepository.RepositoryIsDisjointWith(other) -} - -// ForgeFedTicketIsDisjointWith returns true if Ticket is disjoint with the -// other's type. -func ForgeFedTicketIsDisjointWith(other vocab.Type) bool { - return typeticket.TicketIsDisjointWith(other) -} - -// ForgeFedTicketDependencyIsDisjointWith returns true if TicketDependency is -// disjoint with the other's type. -func ForgeFedTicketDependencyIsDisjointWith(other vocab.Type) bool { - return typeticketdependency.TicketDependencyIsDisjointWith(other) -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_extendedby.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_extendedby.go deleted file mode 100644 index 2a70d7ad2..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_extendedby.go +++ /dev/null @@ -1,55 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch" - typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit" - typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push" - typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository" - typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket" - typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// ForgeFedBranchIsExtendedBy returns true if the other's type extends from -// Branch. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ForgeFedBranchIsExtendedBy(other vocab.Type) bool { - return typebranch.BranchIsExtendedBy(other) -} - -// ForgeFedCommitIsExtendedBy returns true if the other's type extends from -// Commit. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ForgeFedCommitIsExtendedBy(other vocab.Type) bool { - return typecommit.CommitIsExtendedBy(other) -} - -// ForgeFedPushIsExtendedBy returns true if the other's type extends from Push. -// Note that it returns false if the types are the same; see the "IsOrExtends" -// variant instead. -func ForgeFedPushIsExtendedBy(other vocab.Type) bool { - return typepush.PushIsExtendedBy(other) -} - -// ForgeFedRepositoryIsExtendedBy returns true if the other's type extends from -// Repository. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ForgeFedRepositoryIsExtendedBy(other vocab.Type) bool { - return typerepository.RepositoryIsExtendedBy(other) -} - -// ForgeFedTicketIsExtendedBy returns true if the other's type extends from -// Ticket. Note that it returns false if the types are the same; see the -// "IsOrExtends" variant instead. -func ForgeFedTicketIsExtendedBy(other vocab.Type) bool { - return typeticket.TicketIsExtendedBy(other) -} - -// ForgeFedTicketDependencyIsExtendedBy returns true if the other's type extends -// from TicketDependency. Note that it returns false if the types are the -// same; see the "IsOrExtends" variant instead. -func ForgeFedTicketDependencyIsExtendedBy(other vocab.Type) bool { - return typeticketdependency.TicketDependencyIsExtendedBy(other) -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_extends.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_extends.go deleted file mode 100644 index 2118ba375..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_extends.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch" - typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit" - typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push" - typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository" - typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket" - typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// ForgeFedForgeFedBranchExtends returns true if Branch extends from the other's -// type. -func ForgeFedForgeFedBranchExtends(other vocab.Type) bool { - return typebranch.ForgeFedBranchExtends(other) -} - -// ForgeFedForgeFedCommitExtends returns true if Commit extends from the other's -// type. -func ForgeFedForgeFedCommitExtends(other vocab.Type) bool { - return typecommit.ForgeFedCommitExtends(other) -} - -// ForgeFedForgeFedPushExtends returns true if Push extends from the other's type. -func ForgeFedForgeFedPushExtends(other vocab.Type) bool { - return typepush.ForgeFedPushExtends(other) -} - -// ForgeFedForgeFedRepositoryExtends returns true if Repository extends from the -// other's type. -func ForgeFedForgeFedRepositoryExtends(other vocab.Type) bool { - return typerepository.ForgeFedRepositoryExtends(other) -} - -// ForgeFedForgeFedTicketExtends returns true if Ticket extends from the other's -// type. -func ForgeFedForgeFedTicketExtends(other vocab.Type) bool { - return typeticket.ForgeFedTicketExtends(other) -} - -// ForgeFedForgeFedTicketDependencyExtends returns true if TicketDependency -// extends from the other's type. -func ForgeFedForgeFedTicketDependencyExtends(other vocab.Type) bool { - return typeticketdependency.ForgeFedTicketDependencyExtends(other) -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_isorextends.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_isorextends.go deleted file mode 100644 index 96d445505..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_isorextends.go +++ /dev/null @@ -1,49 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch" - typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit" - typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push" - typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository" - typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket" - typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// IsOrExtendsForgeFedBranch returns true if the other provided type is the Branch -// type or extends from the Branch type. -func IsOrExtendsForgeFedBranch(other vocab.Type) bool { - return typebranch.IsOrExtendsBranch(other) -} - -// IsOrExtendsForgeFedCommit returns true if the other provided type is the Commit -// type or extends from the Commit type. -func IsOrExtendsForgeFedCommit(other vocab.Type) bool { - return typecommit.IsOrExtendsCommit(other) -} - -// IsOrExtendsForgeFedPush returns true if the other provided type is the Push -// type or extends from the Push type. -func IsOrExtendsForgeFedPush(other vocab.Type) bool { - return typepush.IsOrExtendsPush(other) -} - -// IsOrExtendsForgeFedRepository returns true if the other provided type is the -// Repository type or extends from the Repository type. -func IsOrExtendsForgeFedRepository(other vocab.Type) bool { - return typerepository.IsOrExtendsRepository(other) -} - -// IsOrExtendsForgeFedTicket returns true if the other provided type is the Ticket -// type or extends from the Ticket type. -func IsOrExtendsForgeFedTicket(other vocab.Type) bool { - return typeticket.IsOrExtendsTicket(other) -} - -// IsOrExtendsForgeFedTicketDependency returns true if the other provided type is -// the TicketDependency type or extends from the TicketDependency type. -func IsOrExtendsForgeFedTicketDependency(other vocab.Type) bool { - return typeticketdependency.IsOrExtendsTicketDependency(other) -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_property_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_property_constructors.go deleted file mode 100644 index d8921cbb1..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_property_constructors.go +++ /dev/null @@ -1,126 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - propertyassignedto "github.com/go-fed/activity/streams/impl/forgefed/property_assignedto" - propertycommitted "github.com/go-fed/activity/streams/impl/forgefed/property_committed" - propertycommittedby "github.com/go-fed/activity/streams/impl/forgefed/property_committedby" - propertydependants "github.com/go-fed/activity/streams/impl/forgefed/property_dependants" - propertydependedby "github.com/go-fed/activity/streams/impl/forgefed/property_dependedby" - propertydependencies "github.com/go-fed/activity/streams/impl/forgefed/property_dependencies" - propertydependson "github.com/go-fed/activity/streams/impl/forgefed/property_dependson" - propertydescription "github.com/go-fed/activity/streams/impl/forgefed/property_description" - propertyearlyitems "github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems" - propertyfilesadded "github.com/go-fed/activity/streams/impl/forgefed/property_filesadded" - propertyfilesmodified "github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified" - propertyfilesremoved "github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved" - propertyforks "github.com/go-fed/activity/streams/impl/forgefed/property_forks" - propertyhash "github.com/go-fed/activity/streams/impl/forgefed/property_hash" - propertyisresolved "github.com/go-fed/activity/streams/impl/forgefed/property_isresolved" - propertyref "github.com/go-fed/activity/streams/impl/forgefed/property_ref" - propertyteam "github.com/go-fed/activity/streams/impl/forgefed/property_team" - propertyticketstrackedby "github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby" - propertytracksticketsfor "github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// NewForgeFedForgeFedAssignedToProperty creates a new ForgeFedAssignedToProperty -func NewForgeFedAssignedToProperty() vocab.ForgeFedAssignedToProperty { - return propertyassignedto.NewForgeFedAssignedToProperty() -} - -// NewForgeFedForgeFedCommittedProperty creates a new ForgeFedCommittedProperty -func NewForgeFedCommittedProperty() vocab.ForgeFedCommittedProperty { - return propertycommitted.NewForgeFedCommittedProperty() -} - -// NewForgeFedForgeFedCommittedByProperty creates a new ForgeFedCommittedByProperty -func NewForgeFedCommittedByProperty() vocab.ForgeFedCommittedByProperty { - return propertycommittedby.NewForgeFedCommittedByProperty() -} - -// NewForgeFedForgeFedDependantsProperty creates a new ForgeFedDependantsProperty -func NewForgeFedDependantsProperty() vocab.ForgeFedDependantsProperty { - return propertydependants.NewForgeFedDependantsProperty() -} - -// NewForgeFedForgeFedDependedByProperty creates a new ForgeFedDependedByProperty -func NewForgeFedDependedByProperty() vocab.ForgeFedDependedByProperty { - return propertydependedby.NewForgeFedDependedByProperty() -} - -// NewForgeFedForgeFedDependenciesProperty creates a new -// ForgeFedDependenciesProperty -func NewForgeFedDependenciesProperty() vocab.ForgeFedDependenciesProperty { - return propertydependencies.NewForgeFedDependenciesProperty() -} - -// NewForgeFedForgeFedDependsOnProperty creates a new ForgeFedDependsOnProperty -func NewForgeFedDependsOnProperty() vocab.ForgeFedDependsOnProperty { - return propertydependson.NewForgeFedDependsOnProperty() -} - -// NewForgeFedForgeFedDescriptionProperty creates a new ForgeFedDescriptionProperty -func NewForgeFedDescriptionProperty() vocab.ForgeFedDescriptionProperty { - return propertydescription.NewForgeFedDescriptionProperty() -} - -// NewForgeFedForgeFedEarlyItemsProperty creates a new ForgeFedEarlyItemsProperty -func NewForgeFedEarlyItemsProperty() vocab.ForgeFedEarlyItemsProperty { - return propertyearlyitems.NewForgeFedEarlyItemsProperty() -} - -// NewForgeFedForgeFedFilesAddedProperty creates a new ForgeFedFilesAddedProperty -func NewForgeFedFilesAddedProperty() vocab.ForgeFedFilesAddedProperty { - return propertyfilesadded.NewForgeFedFilesAddedProperty() -} - -// NewForgeFedForgeFedFilesModifiedProperty creates a new -// ForgeFedFilesModifiedProperty -func NewForgeFedFilesModifiedProperty() vocab.ForgeFedFilesModifiedProperty { - return propertyfilesmodified.NewForgeFedFilesModifiedProperty() -} - -// NewForgeFedForgeFedFilesRemovedProperty creates a new -// ForgeFedFilesRemovedProperty -func NewForgeFedFilesRemovedProperty() vocab.ForgeFedFilesRemovedProperty { - return propertyfilesremoved.NewForgeFedFilesRemovedProperty() -} - -// NewForgeFedForgeFedForksProperty creates a new ForgeFedForksProperty -func NewForgeFedForksProperty() vocab.ForgeFedForksProperty { - return propertyforks.NewForgeFedForksProperty() -} - -// NewForgeFedForgeFedHashProperty creates a new ForgeFedHashProperty -func NewForgeFedHashProperty() vocab.ForgeFedHashProperty { - return propertyhash.NewForgeFedHashProperty() -} - -// NewForgeFedForgeFedIsResolvedProperty creates a new ForgeFedIsResolvedProperty -func NewForgeFedIsResolvedProperty() vocab.ForgeFedIsResolvedProperty { - return propertyisresolved.NewForgeFedIsResolvedProperty() -} - -// NewForgeFedForgeFedRefProperty creates a new ForgeFedRefProperty -func NewForgeFedRefProperty() vocab.ForgeFedRefProperty { - return propertyref.NewForgeFedRefProperty() -} - -// NewForgeFedForgeFedTeamProperty creates a new ForgeFedTeamProperty -func NewForgeFedTeamProperty() vocab.ForgeFedTeamProperty { - return propertyteam.NewForgeFedTeamProperty() -} - -// NewForgeFedForgeFedTicketsTrackedByProperty creates a new -// ForgeFedTicketsTrackedByProperty -func NewForgeFedTicketsTrackedByProperty() vocab.ForgeFedTicketsTrackedByProperty { - return propertyticketstrackedby.NewForgeFedTicketsTrackedByProperty() -} - -// NewForgeFedForgeFedTracksTicketsForProperty creates a new -// ForgeFedTracksTicketsForProperty -func NewForgeFedTracksTicketsForProperty() vocab.ForgeFedTracksTicketsForProperty { - return propertytracksticketsfor.NewForgeFedTracksTicketsForProperty() -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_type_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_type_constructors.go deleted file mode 100644 index 78b59500f..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_type_constructors.go +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch" - typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit" - typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push" - typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository" - typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket" - typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// NewForgeFedBranch creates a new ForgeFedBranch -func NewForgeFedBranch() vocab.ForgeFedBranch { - return typebranch.NewForgeFedBranch() -} - -// NewForgeFedCommit creates a new ForgeFedCommit -func NewForgeFedCommit() vocab.ForgeFedCommit { - return typecommit.NewForgeFedCommit() -} - -// NewForgeFedPush creates a new ForgeFedPush -func NewForgeFedPush() vocab.ForgeFedPush { - return typepush.NewForgeFedPush() -} - -// NewForgeFedRepository creates a new ForgeFedRepository -func NewForgeFedRepository() vocab.ForgeFedRepository { - return typerepository.NewForgeFedRepository() -} - -// NewForgeFedTicket creates a new ForgeFedTicket -func NewForgeFedTicket() vocab.ForgeFedTicket { - return typeticket.NewForgeFedTicket() -} - -// NewForgeFedTicketDependency creates a new ForgeFedTicketDependency -func NewForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return typeticketdependency.NewForgeFedTicketDependency() -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_jsonld_property_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_jsonld_property_constructors.go deleted file mode 100644 index 9f9f9d137..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_jsonld_property_constructors.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - propertyid "github.com/go-fed/activity/streams/impl/jsonld/property_id" - propertytype "github.com/go-fed/activity/streams/impl/jsonld/property_type" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// NewJSONLDJSONLDTypeProperty creates a new JSONLDTypeProperty -func NewJSONLDTypeProperty() vocab.JSONLDTypeProperty { - return propertytype.NewJSONLDTypeProperty() -} - -// NewJSONLDJSONLDIdProperty creates a new JSONLDIdProperty -func NewJSONLDIdProperty() vocab.JSONLDIdProperty { - return propertyid.NewJSONLDIdProperty() -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_disjoint.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_disjoint.go deleted file mode 100644 index 144f27fa2..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_disjoint.go +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeemoji "github.com/go-fed/activity/streams/impl/toot/type_emoji" - typeidentityproof "github.com/go-fed/activity/streams/impl/toot/type_identityproof" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// TootEmojiIsDisjointWith returns true if Emoji is disjoint with the other's type. -func TootEmojiIsDisjointWith(other vocab.Type) bool { - return typeemoji.EmojiIsDisjointWith(other) -} - -// TootIdentityProofIsDisjointWith returns true if IdentityProof is disjoint with -// the other's type. -func TootIdentityProofIsDisjointWith(other vocab.Type) bool { - return typeidentityproof.IdentityProofIsDisjointWith(other) -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_extendedby.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_extendedby.go deleted file mode 100644 index 8327ce103..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_extendedby.go +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeemoji "github.com/go-fed/activity/streams/impl/toot/type_emoji" - typeidentityproof "github.com/go-fed/activity/streams/impl/toot/type_identityproof" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// TootEmojiIsExtendedBy returns true if the other's type extends from Emoji. Note -// that it returns false if the types are the same; see the "IsOrExtends" -// variant instead. -func TootEmojiIsExtendedBy(other vocab.Type) bool { - return typeemoji.EmojiIsExtendedBy(other) -} - -// TootIdentityProofIsExtendedBy returns true if the other's type extends from -// IdentityProof. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func TootIdentityProofIsExtendedBy(other vocab.Type) bool { - return typeidentityproof.IdentityProofIsExtendedBy(other) -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_extends.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_extends.go deleted file mode 100644 index bef71b49c..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_extends.go +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeemoji "github.com/go-fed/activity/streams/impl/toot/type_emoji" - typeidentityproof "github.com/go-fed/activity/streams/impl/toot/type_identityproof" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// TootTootEmojiExtends returns true if Emoji extends from the other's type. -func TootTootEmojiExtends(other vocab.Type) bool { - return typeemoji.TootEmojiExtends(other) -} - -// TootTootIdentityProofExtends returns true if IdentityProof extends from the -// other's type. -func TootTootIdentityProofExtends(other vocab.Type) bool { - return typeidentityproof.TootIdentityProofExtends(other) -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_isorextends.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_isorextends.go deleted file mode 100644 index 6890c5987..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_isorextends.go +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeemoji "github.com/go-fed/activity/streams/impl/toot/type_emoji" - typeidentityproof "github.com/go-fed/activity/streams/impl/toot/type_identityproof" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// IsOrExtendsTootEmoji returns true if the other provided type is the Emoji type -// or extends from the Emoji type. -func IsOrExtendsTootEmoji(other vocab.Type) bool { - return typeemoji.IsOrExtendsEmoji(other) -} - -// IsOrExtendsTootIdentityProof returns true if the other provided type is the -// IdentityProof type or extends from the IdentityProof type. -func IsOrExtendsTootIdentityProof(other vocab.Type) bool { - return typeidentityproof.IsOrExtendsIdentityProof(other) -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_property_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_property_constructors.go deleted file mode 100644 index b93c20c76..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_property_constructors.go +++ /dev/null @@ -1,44 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - propertyblurhash "github.com/go-fed/activity/streams/impl/toot/property_blurhash" - propertydiscoverable "github.com/go-fed/activity/streams/impl/toot/property_discoverable" - propertyfeatured "github.com/go-fed/activity/streams/impl/toot/property_featured" - propertysignaturealgorithm "github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm" - propertysignaturevalue "github.com/go-fed/activity/streams/impl/toot/property_signaturevalue" - propertyvoterscount "github.com/go-fed/activity/streams/impl/toot/property_voterscount" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// NewTootTootBlurhashProperty creates a new TootBlurhashProperty -func NewTootBlurhashProperty() vocab.TootBlurhashProperty { - return propertyblurhash.NewTootBlurhashProperty() -} - -// NewTootTootDiscoverableProperty creates a new TootDiscoverableProperty -func NewTootDiscoverableProperty() vocab.TootDiscoverableProperty { - return propertydiscoverable.NewTootDiscoverableProperty() -} - -// NewTootTootFeaturedProperty creates a new TootFeaturedProperty -func NewTootFeaturedProperty() vocab.TootFeaturedProperty { - return propertyfeatured.NewTootFeaturedProperty() -} - -// NewTootTootSignatureAlgorithmProperty creates a new -// TootSignatureAlgorithmProperty -func NewTootSignatureAlgorithmProperty() vocab.TootSignatureAlgorithmProperty { - return propertysignaturealgorithm.NewTootSignatureAlgorithmProperty() -} - -// NewTootTootSignatureValueProperty creates a new TootSignatureValueProperty -func NewTootSignatureValueProperty() vocab.TootSignatureValueProperty { - return propertysignaturevalue.NewTootSignatureValueProperty() -} - -// NewTootTootVotersCountProperty creates a new TootVotersCountProperty -func NewTootVotersCountProperty() vocab.TootVotersCountProperty { - return propertyvoterscount.NewTootVotersCountProperty() -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_type_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_type_constructors.go deleted file mode 100644 index 77ba41c71..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_type_constructors.go +++ /dev/null @@ -1,19 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typeemoji "github.com/go-fed/activity/streams/impl/toot/type_emoji" - typeidentityproof "github.com/go-fed/activity/streams/impl/toot/type_identityproof" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// NewTootEmoji creates a new TootEmoji -func NewTootEmoji() vocab.TootEmoji { - return typeemoji.NewTootEmoji() -} - -// NewTootIdentityProof creates a new TootIdentityProof -func NewTootIdentityProof() vocab.TootIdentityProof { - return typeidentityproof.NewTootIdentityProof() -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go deleted file mode 100644 index c8a34164d..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typepublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// W3IDSecurityV1PublicKeyIsDisjointWith returns true if PublicKey is disjoint -// with the other's type. -func W3IDSecurityV1PublicKeyIsDisjointWith(other vocab.Type) bool { - return typepublickey.PublicKeyIsDisjointWith(other) -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go deleted file mode 100644 index 301544e69..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typepublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// W3IDSecurityV1PublicKeyIsExtendedBy returns true if the other's type extends -// from PublicKey. Note that it returns false if the types are the same; see -// the "IsOrExtends" variant instead. -func W3IDSecurityV1PublicKeyIsExtendedBy(other vocab.Type) bool { - return typepublickey.PublicKeyIsExtendedBy(other) -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_extends.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_extends.go deleted file mode 100644 index 54d3f6625..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_extends.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typepublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// W3IDSecurityV1W3IDSecurityV1PublicKeyExtends returns true if PublicKey extends -// from the other's type. -func W3IDSecurityV1W3IDSecurityV1PublicKeyExtends(other vocab.Type) bool { - return typepublickey.W3IDSecurityV1PublicKeyExtends(other) -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go deleted file mode 100644 index 028ba96a1..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typepublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// IsOrExtendsW3IDSecurityV1PublicKey returns true if the other provided type is -// the PublicKey type or extends from the PublicKey type. -func IsOrExtendsW3IDSecurityV1PublicKey(other vocab.Type) bool { - return typepublickey.IsOrExtendsPublicKey(other) -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go deleted file mode 100644 index e35820921..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - propertyowner "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner" - propertypublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey" - propertypublickeypem "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// NewW3IDSecurityV1W3IDSecurityV1OwnerProperty creates a new -// W3IDSecurityV1OwnerProperty -func NewW3IDSecurityV1OwnerProperty() vocab.W3IDSecurityV1OwnerProperty { - return propertyowner.NewW3IDSecurityV1OwnerProperty() -} - -// NewW3IDSecurityV1W3IDSecurityV1PublicKeyProperty creates a new -// W3IDSecurityV1PublicKeyProperty -func NewW3IDSecurityV1PublicKeyProperty() vocab.W3IDSecurityV1PublicKeyProperty { - return propertypublickey.NewW3IDSecurityV1PublicKeyProperty() -} - -// NewW3IDSecurityV1W3IDSecurityV1PublicKeyPemProperty creates a new -// W3IDSecurityV1PublicKeyPemProperty -func NewW3IDSecurityV1PublicKeyPemProperty() vocab.W3IDSecurityV1PublicKeyPemProperty { - return propertypublickeypem.NewW3IDSecurityV1PublicKeyPemProperty() -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go deleted file mode 100644 index dbea0dc4e..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go +++ /dev/null @@ -1,13 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - typepublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// NewW3IDSecurityV1PublicKey creates a new W3IDSecurityV1PublicKey -func NewW3IDSecurityV1PublicKey() vocab.W3IDSecurityV1PublicKey { - return typepublickey.NewW3IDSecurityV1PublicKey() -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_resolver_utils.go b/vendor/github.com/go-fed/activity/streams/gen_resolver_utils.go deleted file mode 100644 index 30eae3f78..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_resolver_utils.go +++ /dev/null @@ -1,244 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - "context" - "errors" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// ErrNoCallbackMatch indicates a Resolver could not match the ActivityStreams value to a callback function. -var ErrNoCallbackMatch error = errors.New("activity stream did not match the callback function") - -// ErrUnhandledType indicates that an ActivityStreams value has a type that is not handled by the code that has been generated. -var ErrUnhandledType error = errors.New("activity stream did not match any known types") - -// ErrPredicateUnmatched indicates that a predicate is accepting a type or interface that does not match an ActivityStreams value's type or interface. -var ErrPredicateUnmatched error = errors.New("activity stream did not match type demanded by predicate") - -// errCannotTypeAssertType indicates that the 'type' property returned by the ActivityStreams value cannot be type-asserted to its interface form. -var errCannotTypeAssertType error = errors.New("activity stream type cannot be asserted to its interface") - -// ActivityStreamsInterface represents any ActivityStream value code-generated by -// go-fed or compatible with the generated interfaces. -type ActivityStreamsInterface interface { - // GetTypeName returns the ActiivtyStreams value's type. - GetTypeName() string - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} - -// Resolver represents any TypeResolver. -type Resolver interface { - // Resolve will attempt to resolve an untyped ActivityStreams value into a - // Go concrete type. - Resolve(ctx context.Context, o ActivityStreamsInterface) error -} - -// IsUnmatchedErr is true when the error indicates that a Resolver was -// unsuccessful due to the ActivityStreams value not matching its callbacks or -// predicates. -func IsUnmatchedErr(err error) bool { - return err == ErrPredicateUnmatched || err == ErrUnhandledType || err == ErrNoCallbackMatch -} - -// ToType attempts to resolve the generic JSON map into a Type. -func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err error) { - var r *JSONResolver - r, err = NewJSONResolver(func(ctx context.Context, i vocab.ActivityStreamsAccept) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsActivity) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsAdd) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsAnnounce) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsApplication) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsArrive) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsArticle) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsAudio) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsBlock) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ForgeFedBranch) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsCollection) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsCollectionPage) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ForgeFedCommit) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsCreate) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsDelete) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsDislike) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsDocument) error { - t = i - return nil - }, func(ctx context.Context, i vocab.TootEmoji) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsEvent) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsFlag) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsFollow) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsGroup) error { - t = i - return nil - }, func(ctx context.Context, i vocab.TootIdentityProof) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsIgnore) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsImage) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsIntransitiveActivity) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsInvite) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsJoin) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsLeave) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsLike) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsLink) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsListen) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsMention) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsMove) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsNote) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsObject) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsOffer) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsOrderedCollection) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsOrderedCollectionPage) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsOrganization) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsPage) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsPerson) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsPlace) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsProfile) error { - t = i - return nil - }, func(ctx context.Context, i vocab.W3IDSecurityV1PublicKey) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ForgeFedPush) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsQuestion) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsRead) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsReject) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsRelationship) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsRemove) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ForgeFedRepository) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsService) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsTentativeAccept) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsTentativeReject) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ForgeFedTicket) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ForgeFedTicketDependency) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsTombstone) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsTravel) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsUndo) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsUpdate) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsVideo) error { - t = i - return nil - }, func(ctx context.Context, i vocab.ActivityStreamsView) error { - t = i - return nil - }) - if err != nil { - return - } - err = r.Resolve(c, m) - return -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_type_predicated_resolver.go b/vendor/github.com/go-fed/activity/streams/gen_type_predicated_resolver.go deleted file mode 100644 index 6199b6ca1..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_type_predicated_resolver.go +++ /dev/null @@ -1,881 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - "context" - "errors" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// TypePredicatedResolver resolves ActivityStreams values if the value satisfies a -// predicate condition based on its type. -type TypePredicatedResolver struct { - delegate Resolver - predicate interface{} -} - -// NewTypePredicatedResolver creates a new Resolver that applies a predicate to an -// ActivityStreams value to determine whether to Resolve or not. The -// ActivityStreams value's type is examined to determine if the predicate can -// apply itself to the value. This guarantees the predicate will receive a -// concrete value whose underlying ActivityStreams type matches the concrete -// interface name. The predicate function must be of the form: -// -// func(context.Context, ) (bool, error) -// -// where TypeInterface is the code-generated interface for an ActivityStreams -// type. An error is returned if the predicate does not match this signature. -func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypePredicatedResolver, error) { - // The predicate must satisfy one known predicate function signature, or else we will generate a runtime error instead of silently fail. - switch predicate.(type) { - case func(context.Context, vocab.ActivityStreamsAccept) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsActivity) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsAdd) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsAnnounce) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsApplication) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsArrive) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsArticle) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsAudio) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsBlock) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ForgeFedBranch) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsCollection) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsCollectionPage) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ForgeFedCommit) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsCreate) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsDelete) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsDislike) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsDocument) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.TootEmoji) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsEvent) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsFlag) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsFollow) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsGroup) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.TootIdentityProof) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsIgnore) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsImage) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsIntransitiveActivity) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsInvite) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsJoin) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsLeave) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsLike) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsLink) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsListen) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsMention) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsMove) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsNote) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsObject) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsOffer) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrderedCollection) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrganization) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsPage) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsPerson) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsPlace) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsProfile) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.W3IDSecurityV1PublicKey) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ForgeFedPush) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsQuestion) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsRead) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsReject) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsRelationship) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsRemove) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ForgeFedRepository) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsService) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsTentativeAccept) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsTentativeReject) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ForgeFedTicket) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ForgeFedTicketDependency) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsTombstone) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsTravel) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsUndo) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsUpdate) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsVideo) (bool, error): - // Do nothing, this predicate has a correct signature. - case func(context.Context, vocab.ActivityStreamsView) (bool, error): - // Do nothing, this predicate has a correct signature. - default: - return nil, errors.New("the predicate function is of the wrong signature and would never be called") - } - return &TypePredicatedResolver{ - delegate: delegate, - predicate: predicate, - }, nil -} - -// Apply uses a predicate to determine whether to resolve the ActivityStreams -// value. The predicate's signature is matched with the ActivityStreams -// value's type. This strictly assures that the predicate will only be passed -// ActivityStream objects whose type matches its interface. Returns an error -// if the ActivityStreams type does not match the predicate, is not a type -// handled by the generated code, or the resolver returns an error. Returns -// true if the predicate returned true. -func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsInterface) (bool, error) { - var predicatePasses bool - var err error - if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Accept" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAccept) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsAccept); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Activity" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsActivity) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsActivity); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Add" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAdd) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsAdd); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Announce" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAnnounce) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsAnnounce); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Application" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsApplication) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsApplication); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Arrive" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsArrive) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsArrive); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Article" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsArticle) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsArticle); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Audio" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAudio) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsAudio); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Block" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsBlock) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsBlock); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Branch" { - if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedBranch) (bool, error)); ok { - if v, ok := o.(vocab.ForgeFedBranch); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Collection" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsCollection) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsCollection); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "CollectionPage" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsCollectionPage) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsCollectionPage); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Commit" { - if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedCommit) (bool, error)); ok { - if v, ok := o.(vocab.ForgeFedCommit); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Create" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsCreate) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsCreate); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Delete" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsDelete) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsDelete); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Dislike" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsDislike) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsDislike); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Document" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsDocument) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsDocument); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "Emoji" { - if fn, ok := this.predicate.(func(context.Context, vocab.TootEmoji) (bool, error)); ok { - if v, ok := o.(vocab.TootEmoji); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Event" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsEvent) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsEvent); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Flag" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsFlag) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsFlag); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Follow" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsFollow) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsFollow); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Group" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsGroup) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsGroup); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "IdentityProof" { - if fn, ok := this.predicate.(func(context.Context, vocab.TootIdentityProof) (bool, error)); ok { - if v, ok := o.(vocab.TootIdentityProof); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Ignore" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsIgnore) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsIgnore); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Image" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsImage) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsImage); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "IntransitiveActivity" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsIntransitiveActivity) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsIntransitiveActivity); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Invite" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsInvite) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsInvite); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Join" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsJoin) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsJoin); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Leave" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLeave) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsLeave); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Like" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLike) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsLike); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Link" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLink) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsLink); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Listen" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsListen) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsListen); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Mention" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsMention) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsMention); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Move" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsMove) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsMove); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Note" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsNote) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsNote); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Object" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsObject) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsObject); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Offer" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOffer) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsOffer); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollection" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOrderedCollection) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsOrderedCollection); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollectionPage" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsOrderedCollectionPage); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Organization" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOrganization) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsOrganization); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Page" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsPage) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsPage); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Person" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsPerson) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsPerson); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Place" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsPlace) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsPlace); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Profile" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsProfile) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsProfile); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://w3id.org/security/v1" && o.GetTypeName() == "PublicKey" { - if fn, ok := this.predicate.(func(context.Context, vocab.W3IDSecurityV1PublicKey) (bool, error)); ok { - if v, ok := o.(vocab.W3IDSecurityV1PublicKey); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Push" { - if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedPush) (bool, error)); ok { - if v, ok := o.(vocab.ForgeFedPush); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Question" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsQuestion) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsQuestion); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Read" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsRead) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsRead); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Reject" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsReject) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsReject); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Relationship" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsRelationship) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsRelationship); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Remove" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsRemove) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsRemove); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Repository" { - if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedRepository) (bool, error)); ok { - if v, ok := o.(vocab.ForgeFedRepository); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Service" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsService) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsService); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeAccept" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTentativeAccept) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsTentativeAccept); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeReject" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTentativeReject) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsTentativeReject); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Ticket" { - if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedTicket) (bool, error)); ok { - if v, ok := o.(vocab.ForgeFedTicket); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "TicketDependency" { - if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedTicketDependency) (bool, error)); ok { - if v, ok := o.(vocab.ForgeFedTicketDependency); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Tombstone" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTombstone) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsTombstone); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Travel" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTravel) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsTravel); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Undo" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsUndo) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsUndo); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Update" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsUpdate) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsUpdate); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Video" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsVideo) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsVideo); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "View" { - if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsView) (bool, error)); ok { - if v, ok := o.(vocab.ActivityStreamsView); ok { - predicatePasses, err = fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return false, errCannotTypeAssertType - } - } else { - return false, ErrPredicateUnmatched - } - } else { - return false, ErrUnhandledType - } - if err != nil { - return predicatePasses, err - } - if predicatePasses { - return true, this.delegate.Resolve(ctx, o) - } else { - return false, nil - } -} diff --git a/vendor/github.com/go-fed/activity/streams/gen_type_resolver.go b/vendor/github.com/go-fed/activity/streams/gen_type_resolver.go deleted file mode 100644 index f834520f0..000000000 --- a/vendor/github.com/go-fed/activity/streams/gen_type_resolver.go +++ /dev/null @@ -1,744 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package streams - -import ( - "context" - "errors" - vocab "github.com/go-fed/activity/streams/vocab" -) - -// TypeResolver resolves ActivityStreams values based on their type name. -type TypeResolver struct { - callbacks []interface{} -} - -// NewTypeResolver creates a new Resolver that examines the type of an -// ActivityStream value to determine what callback function to pass the -// concretely typed value. The callback is guaranteed to receive a value whose -// underlying ActivityStreams type matches the concrete interface name in its -// signature. The callback functions must be of the form: -// -// func(context.Context, ) error -// -// where TypeInterface is the code-generated interface for an ActivityStream -// type. An error is returned if a callback function does not match this -// signature. -func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) { - for _, cb := range callbacks { - // Each callback function must satisfy one known function signature, or else we will generate a runtime error instead of silently fail. - switch cb.(type) { - case func(context.Context, vocab.ActivityStreamsAccept) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsActivity) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsAdd) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsAnnounce) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsApplication) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsArrive) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsArticle) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsAudio) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsBlock) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ForgeFedBranch) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsCollection) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsCollectionPage) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ForgeFedCommit) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsCreate) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsDelete) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsDislike) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsDocument) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.TootEmoji) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsEvent) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsFlag) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsFollow) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsGroup) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.TootIdentityProof) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsIgnore) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsImage) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsInvite) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsJoin) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsLeave) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsLike) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsLink) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsListen) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsMention) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsMove) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsNote) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsObject) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsOffer) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrderedCollection) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsOrganization) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsPage) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsPerson) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsPlace) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsProfile) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.W3IDSecurityV1PublicKey) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ForgeFedPush) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsQuestion) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsRead) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsReject) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsRelationship) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsRemove) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ForgeFedRepository) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsService) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsTentativeAccept) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsTentativeReject) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ForgeFedTicket) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ForgeFedTicketDependency) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsTombstone) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsTravel) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsUndo) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsUpdate) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsVideo) error: - // Do nothing, this callback has a correct signature. - case func(context.Context, vocab.ActivityStreamsView) error: - // Do nothing, this callback has a correct signature. - default: - return nil, errors.New("a callback function is of the wrong signature and would never be called") - } - } - return &TypeResolver{callbacks: callbacks}, nil -} - -// Resolve applies the first callback function whose signature accepts the -// ActivityStreams value's type. This strictly assures that the callback -// function will only be passed ActivityStream objects whose type matches its -// interface. Returns an error if the ActivityStreams type does not match -// callbackers, is not a type handled by the generated code, or the value -// passed in is not go-fed compatible. -func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface) error { - for _, i := range this.callbacks { - if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Accept" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAccept) error); ok { - if v, ok := o.(vocab.ActivityStreamsAccept); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Activity" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsActivity) error); ok { - if v, ok := o.(vocab.ActivityStreamsActivity); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Add" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAdd) error); ok { - if v, ok := o.(vocab.ActivityStreamsAdd); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Announce" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAnnounce) error); ok { - if v, ok := o.(vocab.ActivityStreamsAnnounce); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Application" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsApplication) error); ok { - if v, ok := o.(vocab.ActivityStreamsApplication); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Arrive" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArrive) error); ok { - if v, ok := o.(vocab.ActivityStreamsArrive); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Article" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArticle) error); ok { - if v, ok := o.(vocab.ActivityStreamsArticle); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Audio" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAudio) error); ok { - if v, ok := o.(vocab.ActivityStreamsAudio); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Block" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsBlock) error); ok { - if v, ok := o.(vocab.ActivityStreamsBlock); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Branch" { - if fn, ok := i.(func(context.Context, vocab.ForgeFedBranch) error); ok { - if v, ok := o.(vocab.ForgeFedBranch); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Collection" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollection) error); ok { - if v, ok := o.(vocab.ActivityStreamsCollection); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "CollectionPage" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollectionPage) error); ok { - if v, ok := o.(vocab.ActivityStreamsCollectionPage); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Commit" { - if fn, ok := i.(func(context.Context, vocab.ForgeFedCommit) error); ok { - if v, ok := o.(vocab.ForgeFedCommit); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Create" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCreate) error); ok { - if v, ok := o.(vocab.ActivityStreamsCreate); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Delete" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDelete) error); ok { - if v, ok := o.(vocab.ActivityStreamsDelete); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Dislike" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDislike) error); ok { - if v, ok := o.(vocab.ActivityStreamsDislike); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Document" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDocument) error); ok { - if v, ok := o.(vocab.ActivityStreamsDocument); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "Emoji" { - if fn, ok := i.(func(context.Context, vocab.TootEmoji) error); ok { - if v, ok := o.(vocab.TootEmoji); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Event" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsEvent) error); ok { - if v, ok := o.(vocab.ActivityStreamsEvent); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Flag" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFlag) error); ok { - if v, ok := o.(vocab.ActivityStreamsFlag); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Follow" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFollow) error); ok { - if v, ok := o.(vocab.ActivityStreamsFollow); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Group" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsGroup) error); ok { - if v, ok := o.(vocab.ActivityStreamsGroup); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "IdentityProof" { - if fn, ok := i.(func(context.Context, vocab.TootIdentityProof) error); ok { - if v, ok := o.(vocab.TootIdentityProof); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Ignore" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIgnore) error); ok { - if v, ok := o.(vocab.ActivityStreamsIgnore); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Image" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsImage) error); ok { - if v, ok := o.(vocab.ActivityStreamsImage); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "IntransitiveActivity" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error); ok { - if v, ok := o.(vocab.ActivityStreamsIntransitiveActivity); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Invite" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsInvite) error); ok { - if v, ok := o.(vocab.ActivityStreamsInvite); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Join" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsJoin) error); ok { - if v, ok := o.(vocab.ActivityStreamsJoin); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Leave" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLeave) error); ok { - if v, ok := o.(vocab.ActivityStreamsLeave); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Like" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLike) error); ok { - if v, ok := o.(vocab.ActivityStreamsLike); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Link" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLink) error); ok { - if v, ok := o.(vocab.ActivityStreamsLink); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Listen" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsListen) error); ok { - if v, ok := o.(vocab.ActivityStreamsListen); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Mention" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMention) error); ok { - if v, ok := o.(vocab.ActivityStreamsMention); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Move" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMove) error); ok { - if v, ok := o.(vocab.ActivityStreamsMove); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Note" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsNote) error); ok { - if v, ok := o.(vocab.ActivityStreamsNote); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Object" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsObject) error); ok { - if v, ok := o.(vocab.ActivityStreamsObject); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Offer" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOffer) error); ok { - if v, ok := o.(vocab.ActivityStreamsOffer); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollection" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollection) error); ok { - if v, ok := o.(vocab.ActivityStreamsOrderedCollection); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollectionPage" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error); ok { - if v, ok := o.(vocab.ActivityStreamsOrderedCollectionPage); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Organization" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrganization) error); ok { - if v, ok := o.(vocab.ActivityStreamsOrganization); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Page" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPage) error); ok { - if v, ok := o.(vocab.ActivityStreamsPage); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Person" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPerson) error); ok { - if v, ok := o.(vocab.ActivityStreamsPerson); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Place" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPlace) error); ok { - if v, ok := o.(vocab.ActivityStreamsPlace); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Profile" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsProfile) error); ok { - if v, ok := o.(vocab.ActivityStreamsProfile); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://w3id.org/security/v1" && o.GetTypeName() == "PublicKey" { - if fn, ok := i.(func(context.Context, vocab.W3IDSecurityV1PublicKey) error); ok { - if v, ok := o.(vocab.W3IDSecurityV1PublicKey); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Push" { - if fn, ok := i.(func(context.Context, vocab.ForgeFedPush) error); ok { - if v, ok := o.(vocab.ForgeFedPush); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Question" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsQuestion) error); ok { - if v, ok := o.(vocab.ActivityStreamsQuestion); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Read" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRead) error); ok { - if v, ok := o.(vocab.ActivityStreamsRead); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Reject" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsReject) error); ok { - if v, ok := o.(vocab.ActivityStreamsReject); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Relationship" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRelationship) error); ok { - if v, ok := o.(vocab.ActivityStreamsRelationship); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Remove" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRemove) error); ok { - if v, ok := o.(vocab.ActivityStreamsRemove); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Repository" { - if fn, ok := i.(func(context.Context, vocab.ForgeFedRepository) error); ok { - if v, ok := o.(vocab.ForgeFedRepository); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Service" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsService) error); ok { - if v, ok := o.(vocab.ActivityStreamsService); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeAccept" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeAccept) error); ok { - if v, ok := o.(vocab.ActivityStreamsTentativeAccept); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeReject" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeReject) error); ok { - if v, ok := o.(vocab.ActivityStreamsTentativeReject); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Ticket" { - if fn, ok := i.(func(context.Context, vocab.ForgeFedTicket) error); ok { - if v, ok := o.(vocab.ForgeFedTicket); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "TicketDependency" { - if fn, ok := i.(func(context.Context, vocab.ForgeFedTicketDependency) error); ok { - if v, ok := o.(vocab.ForgeFedTicketDependency); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Tombstone" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTombstone) error); ok { - if v, ok := o.(vocab.ActivityStreamsTombstone); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Travel" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTravel) error); ok { - if v, ok := o.(vocab.ActivityStreamsTravel); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Undo" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUndo) error); ok { - if v, ok := o.(vocab.ActivityStreamsUndo); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Update" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUpdate) error); ok { - if v, ok := o.(vocab.ActivityStreamsUpdate); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Video" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsVideo) error); ok { - if v, ok := o.(vocab.ActivityStreamsVideo); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "View" { - if fn, ok := i.(func(context.Context, vocab.ActivityStreamsView) error); ok { - if v, ok := o.(vocab.ActivityStreamsView); ok { - return fn(ctx, v) - } else { - // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. - return errCannotTypeAssertType - } - } - } else { - return ErrUnhandledType - } - } - return ErrNoCallbackMatch -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_doc.go deleted file mode 100644 index 51987e2ba..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyaccuracy contains the implementation for the accuracy property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyaccuracy diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go deleted file mode 100644 index 5e3d5a700..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyaccuracy - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go deleted file mode 100644 index 9bbe03ade..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyaccuracy - -import ( - "fmt" - float "github.com/go-fed/activity/streams/values/float" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsAccuracyProperty is the functional property "accuracy". It is -// permitted to be a single default-valued value type. -type ActivityStreamsAccuracyProperty struct { - xmlschemaFloatMember float64 - hasFloatMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeAccuracyProperty creates a "accuracy" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeAccuracyProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsAccuracyProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "accuracy" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "accuracy") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsAccuracyProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := float.DeserializeFloat(i); err == nil { - this := &ActivityStreamsAccuracyProperty{ - alias: alias, - hasFloatMember: true, - xmlschemaFloatMember: v, - } - return this, nil - } - this := &ActivityStreamsAccuracyProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsAccuracyProperty creates a new accuracy property. -func NewActivityStreamsAccuracyProperty() *ActivityStreamsAccuracyProperty { - return &ActivityStreamsAccuracyProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaFloat -// afterwards will return false. -func (this *ActivityStreamsAccuracyProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasFloatMember = false -} - -// Get returns the value of this property. When IsXMLSchemaFloat returns false, -// Get will return any arbitrary value. -func (this ActivityStreamsAccuracyProperty) Get() float64 { - return this.xmlschemaFloatMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsAccuracyProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsAccuracyProperty) HasAny() bool { - return this.IsXMLSchemaFloat() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsAccuracyProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaFloat returns true if this property is set and not an IRI. -func (this ActivityStreamsAccuracyProperty) IsXMLSchemaFloat() bool { - return this.hasFloatMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsAccuracyProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsAccuracyProperty) KindIndex() int { - if this.IsXMLSchemaFloat() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsAccuracyProperty) LessThan(o vocab.ActivityStreamsAccuracyProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaFloat() && o.IsXMLSchemaFloat() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return float.LessFloat(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "accuracy". -func (this ActivityStreamsAccuracyProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "accuracy" - } else { - return "accuracy" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsAccuracyProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaFloat() { - return float.SerializeFloat(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaFloat afterwards will -// return true. -func (this *ActivityStreamsAccuracyProperty) Set(v float64) { - this.Clear() - this.xmlschemaFloatMember = v - this.hasFloatMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsAccuracyProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_doc.go deleted file mode 100644 index 6dee21217..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyactor contains the implementation for the actor property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyactor diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_pkg.go deleted file mode 100644 index 85c65198c..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyactor - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go deleted file mode 100644 index 6c5dec70c..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go +++ /dev/null @@ -1,7030 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyactor - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsActorPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsActorPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsActorProperty -} - -// NewActivityStreamsActorPropertyIterator creates a new ActivityStreamsActor -// property. -func NewActivityStreamsActorPropertyIterator() *ActivityStreamsActorPropertyIterator { - return &ActivityStreamsActorPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsActorPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsActorPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsActorPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsActorPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsActorPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsActorPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsActorPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsActorPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsActorPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsActorPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsActorPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsActorPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsActorPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStreamsActorPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsActor". -func (this ActivityStreamsActorPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsActor" - } else { - return "ActivityStreamsActor" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsActorPropertyIterator) Next() vocab.ActivityStreamsActorPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsActorPropertyIterator) Prev() vocab.ActivityStreamsActorPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsActorPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsActorPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsActor property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsActorPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsActorProperty is the non-functional property "actor". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsActorProperty struct { - properties []*ActivityStreamsActorPropertyIterator - alias string -} - -// DeserializeActorProperty creates a "actor" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeActorProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsActorProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "actor" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "actor") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsActorProperty{ - alias: alias, - properties: []*ActivityStreamsActorPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsActorPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsActorPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsActorProperty creates a new actor property. -func NewActivityStreamsActorProperty() *ActivityStreamsActorProperty { - return &ActivityStreamsActorProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "actor". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "actor". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "actor". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "actor". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "actor". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "actor". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "actor". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "actor". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "actor". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "actor". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "actor". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "actor". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsActorProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "actor" -func (this *ActivityStreamsActorProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "actor". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsActorProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "actor". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsActorProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsActorProperty) At(index int) vocab.ActivityStreamsActorPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsActorProperty) Begin() vocab.ActivityStreamsActorPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsActorProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsActorProperty) End() vocab.ActivityStreamsActorPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "actor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "actor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "actor". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "actor". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "actor". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "actor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "actor". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "actor". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "actor". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "actor". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "actor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "actor". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "actor". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "actor". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "actor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "actor". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "actor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "actor". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "actor". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "actor". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "actor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "actor". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsActorProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsActorProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsActorProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "actor" property. -func (this ActivityStreamsActorProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsActorProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsActorProperty) LessThan(o vocab.ActivityStreamsActorProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("actor") with any alias. -func (this ActivityStreamsActorProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "actor" - } else { - return "actor" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "actor". Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "actor". Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property "actor". -func (this *ActivityStreamsActorProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "actor". Invalidates all iterators. -func (this *ActivityStreamsActorProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsActorPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "actor". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsActorProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsActorPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "actor", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsActorProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsActorPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsActorProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "actor". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "actor". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "actor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "actor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "actor". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "actor". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "actor". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "actor". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "actor". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "actor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "actor". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "actor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "actor". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "actor". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "actor". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "actor". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "actor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsActorProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "actor". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property "actor". -// Panics if the index is out of bounds. -func (this *ActivityStreamsActorProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "actor". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsActorProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "actor". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsActorProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "actor". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsActorProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsActorPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "actor" property. -func (this ActivityStreamsActorProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_doc.go deleted file mode 100644 index 373eab307..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyaltitude contains the implementation for the altitude property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyaltitude diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go deleted file mode 100644 index 2bfcb1ceb..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyaltitude - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go deleted file mode 100644 index 06e4e1f0f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyaltitude - -import ( - "fmt" - float "github.com/go-fed/activity/streams/values/float" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsAltitudeProperty is the functional property "altitude". It is -// permitted to be a single default-valued value type. -type ActivityStreamsAltitudeProperty struct { - xmlschemaFloatMember float64 - hasFloatMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeAltitudeProperty creates a "altitude" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeAltitudeProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsAltitudeProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "altitude" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "altitude") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsAltitudeProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := float.DeserializeFloat(i); err == nil { - this := &ActivityStreamsAltitudeProperty{ - alias: alias, - hasFloatMember: true, - xmlschemaFloatMember: v, - } - return this, nil - } - this := &ActivityStreamsAltitudeProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsAltitudeProperty creates a new altitude property. -func NewActivityStreamsAltitudeProperty() *ActivityStreamsAltitudeProperty { - return &ActivityStreamsAltitudeProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaFloat -// afterwards will return false. -func (this *ActivityStreamsAltitudeProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasFloatMember = false -} - -// Get returns the value of this property. When IsXMLSchemaFloat returns false, -// Get will return any arbitrary value. -func (this ActivityStreamsAltitudeProperty) Get() float64 { - return this.xmlschemaFloatMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsAltitudeProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsAltitudeProperty) HasAny() bool { - return this.IsXMLSchemaFloat() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsAltitudeProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaFloat returns true if this property is set and not an IRI. -func (this ActivityStreamsAltitudeProperty) IsXMLSchemaFloat() bool { - return this.hasFloatMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsAltitudeProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsAltitudeProperty) KindIndex() int { - if this.IsXMLSchemaFloat() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsAltitudeProperty) LessThan(o vocab.ActivityStreamsAltitudeProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaFloat() && o.IsXMLSchemaFloat() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return float.LessFloat(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "altitude". -func (this ActivityStreamsAltitudeProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "altitude" - } else { - return "altitude" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsAltitudeProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaFloat() { - return float.SerializeFloat(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaFloat afterwards will -// return true. -func (this *ActivityStreamsAltitudeProperty) Set(v float64) { - this.Clear() - this.xmlschemaFloatMember = v - this.hasFloatMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsAltitudeProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_doc.go deleted file mode 100644 index b962ff710..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyanyof contains the implementation for the anyOf property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyanyof diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go deleted file mode 100644 index e2ea4919a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyanyof - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go deleted file mode 100644 index 54f168795..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go +++ /dev/null @@ -1,7030 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyanyof - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsAnyOfPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsAnyOfPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsAnyOfProperty -} - -// NewActivityStreamsAnyOfPropertyIterator creates a new ActivityStreamsAnyOf -// property. -func NewActivityStreamsAnyOfPropertyIterator() *ActivityStreamsAnyOfPropertyIterator { - return &ActivityStreamsAnyOfPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsAnyOfPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsAnyOfPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsAnyOfPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsAnyOfPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsAnyOfPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsAnyOfPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsAnyOfPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsAnyOfPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStreamsAnyOfPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsAnyOf". -func (this ActivityStreamsAnyOfPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsAnyOf" - } else { - return "ActivityStreamsAnyOf" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsAnyOfPropertyIterator) Next() vocab.ActivityStreamsAnyOfPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsAnyOfPropertyIterator) Prev() vocab.ActivityStreamsAnyOfPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsAnyOfPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsAnyOf property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsAnyOfPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsAnyOfProperty is the non-functional property "anyOf". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsAnyOfProperty struct { - properties []*ActivityStreamsAnyOfPropertyIterator - alias string -} - -// DeserializeAnyOfProperty creates a "anyOf" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeAnyOfProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAnyOfProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "anyOf" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "anyOf") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsAnyOfProperty{ - alias: alias, - properties: []*ActivityStreamsAnyOfPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsAnyOfPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsAnyOfPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsAnyOfProperty creates a new anyOf property. -func NewActivityStreamsAnyOfProperty() *ActivityStreamsAnyOfProperty { - return &ActivityStreamsAnyOfProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "anyOf". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "anyOf". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "anyOf". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "anyOf". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "anyOf". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "anyOf". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "anyOf". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "anyOf". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "anyOf". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "anyOf". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "anyOf". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "anyOf". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "anyOf" -func (this *ActivityStreamsAnyOfProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "anyOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAnyOfProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "anyOf". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsAnyOfProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsAnyOfProperty) At(index int) vocab.ActivityStreamsAnyOfPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsAnyOfProperty) Begin() vocab.ActivityStreamsAnyOfPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsAnyOfProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsAnyOfProperty) End() vocab.ActivityStreamsAnyOfPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "anyOf". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "anyOf". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "anyOf". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "anyOf". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "anyOf". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "anyOf". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "anyOf". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "anyOf". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "anyOf". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "anyOf". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "anyOf". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "anyOf". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "anyOf". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "anyOf". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "anyOf". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "anyOf". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "anyOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "anyOf". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "anyOf". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "anyOf". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "anyOf". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "anyOf". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsAnyOfProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsAnyOfProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsAnyOfProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "anyOf" property. -func (this ActivityStreamsAnyOfProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsAnyOfProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsAnyOfProperty) LessThan(o vocab.ActivityStreamsAnyOfProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("anyOf") with any alias. -func (this ActivityStreamsAnyOfProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "anyOf" - } else { - return "anyOf" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "anyOf". Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "anyOf". Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property "anyOf". -func (this *ActivityStreamsAnyOfProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "anyOf". Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "anyOf". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsAnyOfProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "anyOf", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsAnyOfPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsAnyOfProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "anyOf". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "anyOf". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "anyOf". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "anyOf". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "anyOf". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "anyOf". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "anyOf". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "anyOf". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "anyOf". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "anyOf". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "anyOf". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "anyOf". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "anyOf". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "anyOf". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "anyOf". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "anyOf". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "anyOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAnyOfProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "anyOf". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property "anyOf". -// Panics if the index is out of bounds. -func (this *ActivityStreamsAnyOfProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "anyOf". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsAnyOfProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "anyOf". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAnyOfProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "anyOf". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsAnyOfProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsAnyOfPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "anyOf" property. -func (this ActivityStreamsAnyOfProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_doc.go deleted file mode 100644 index 997e74d36..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyattachment contains the implementation for the attachment -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyattachment diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go deleted file mode 100644 index a9b93f681..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyattachment - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go deleted file mode 100644 index efe1b3a38..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go +++ /dev/null @@ -1,7047 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyattachment - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsAttachmentPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsAttachmentPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsAttachmentProperty -} - -// NewActivityStreamsAttachmentPropertyIterator creates a new -// ActivityStreamsAttachment property. -func NewActivityStreamsAttachmentPropertyIterator() *ActivityStreamsAttachmentPropertyIterator { - return &ActivityStreamsAttachmentPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsAttachmentPropertyIterator creates an iterator from -// an element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsAttachmentPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsAttachmentPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsAttachmentPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsAttachmentPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsAttachmentPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsAttachmentPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsAttachmentPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityStreamsAttachmentPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsAttachment". -func (this ActivityStreamsAttachmentPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsAttachment" - } else { - return "ActivityStreamsAttachment" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsAttachmentPropertyIterator) Next() vocab.ActivityStreamsAttachmentPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsAttachmentPropertyIterator) Prev() vocab.ActivityStreamsAttachmentPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsAttachmentPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsAttachment property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsAttachmentPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsAttachmentProperty is the non-functional property "attachment". -// It is permitted to have one or more values, and of different value types. -type ActivityStreamsAttachmentProperty struct { - properties []*ActivityStreamsAttachmentPropertyIterator - alias string -} - -// DeserializeAttachmentProperty creates a "attachment" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeAttachmentProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "attachment" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "attachment") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsAttachmentProperty{ - alias: alias, - properties: []*ActivityStreamsAttachmentPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsAttachmentPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsAttachmentPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsAttachmentProperty creates a new attachment property. -func NewActivityStreamsAttachmentProperty() *ActivityStreamsAttachmentProperty { - return &ActivityStreamsAttachmentProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "attachment". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "attachment". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "attachment". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "attachment". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "attachment". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "attachment". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "attachment". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "attachment". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "attachment". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "attachment". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "attachment". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "attachment". Invalidates -// iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "attachment". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "attachment". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "attachment". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "attachment". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "attachment". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "attachment". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "attachment". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "attachment". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "attachment". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttachmentProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "attachment". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "attachment" -func (this *ActivityStreamsAttachmentProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "attachment". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttachmentProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "attachment". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttachmentProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "attachment". Invalidates iterators that are traversing using -// Prev. Returns an error if the type is not a valid one to set for this -// property. -func (this *ActivityStreamsAttachmentProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsAttachmentProperty) At(index int) vocab.ActivityStreamsAttachmentPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsAttachmentProperty) Begin() vocab.ActivityStreamsAttachmentPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsAttachmentProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsAttachmentProperty) End() vocab.ActivityStreamsAttachmentPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "attachment". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "attachment". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "attachment". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "attachment". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "attachment". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "attachment". Existing elements -// at that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "attachment". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "attachment". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "attachment". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "attachment". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "attachment". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "attachment". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "attachment". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "attachment". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "attachment". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "attachment". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsAttachmentProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsAttachmentProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsAttachmentProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "attachment" property. -func (this ActivityStreamsAttachmentProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsAttachmentProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsAttachmentProperty) LessThan(o vocab.ActivityStreamsAttachmentProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("attachment") with any alias. -func (this ActivityStreamsAttachmentProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "attachment" - } else { - return "attachment" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "attachment". Invalidates all -// iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "attachment". Invalidates all -// iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "attachment". -func (this *ActivityStreamsAttachmentProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "attachment". Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "attachment". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsAttachmentProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "attachment", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsAttachmentPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsAttachmentProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "attachment". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "attachment". Panics if the index -// is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "attachment". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "attachment". Panics if the -// index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "attachment". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "attachment". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "attachment". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAttachmentProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "attachment". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttachmentProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "attachment". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "attachment". Panics if the index is out of bounds. -func (this *ActivityStreamsAttachmentProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "attachment". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAttachmentProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "attachment". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttachmentProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "attachment". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. Panics if the index is out of -// bounds. -func (this *ActivityStreamsAttachmentProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsAttachmentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "attachment" property. -func (this ActivityStreamsAttachmentProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_doc.go deleted file mode 100644 index 08c99c087..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyattributedto contains the implementation for the attributedTo -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyattributedto diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go deleted file mode 100644 index bccd4bde3..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyattributedto - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go deleted file mode 100644 index ca378cb9f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go +++ /dev/null @@ -1,7089 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyattributedto - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsAttributedToPropertyIterator is an iterator for a property. It -// is permitted to be one of multiple value types. At most, one type of value -// can be present, or none at all. Setting a value will clear the other types -// of values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsAttributedToPropertyIterator struct { - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsAttributedToProperty -} - -// NewActivityStreamsAttributedToPropertyIterator creates a new -// ActivityStreamsAttributedTo property. -func NewActivityStreamsAttributedToPropertyIterator() *ActivityStreamsAttributedToPropertyIterator { - return &ActivityStreamsAttributedToPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsAttributedToPropertyIterator creates an iterator from -// an element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsAttributedToPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsAttributedToPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsAttributedToPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsAttributedToPropertyIterator) HasAny() bool { - return this.IsActivityStreamsLink() || - this.IsActivityStreamsObject() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsAttributedToPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsAttributedToPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsAttributedToPropertyIterator) KindIndex() int { - if this.IsActivityStreamsLink() { - return 0 - } - if this.IsActivityStreamsObject() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.ActivityStreamsAttributedToPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsAttributedTo". -func (this ActivityStreamsAttributedToPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsAttributedTo" - } else { - return "ActivityStreamsAttributedTo" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsAttributedToPropertyIterator) Next() vocab.ActivityStreamsAttributedToPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsAttributedToPropertyIterator) Prev() vocab.ActivityStreamsAttributedToPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsAttributedToPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsAttributedTo property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsAttributedToPropertyIterator) clear() { - this.activitystreamsLinkMember = nil - this.activitystreamsObjectMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsAttributedToProperty is the non-functional property -// "attributedTo". It is permitted to have one or more values, and of -// different value types. -type ActivityStreamsAttributedToProperty struct { - properties []*ActivityStreamsAttributedToPropertyIterator - alias string -} - -// DeserializeAttributedToProperty creates a "attributedTo" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeAttributedToProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "attributedTo" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "attributedTo") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsAttributedToProperty{ - alias: alias, - properties: []*ActivityStreamsAttributedToPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsAttributedToPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsAttributedToPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsAttributedToProperty creates a new attributedTo property. -func NewActivityStreamsAttributedToProperty() *ActivityStreamsAttributedToProperty { - return &ActivityStreamsAttributedToProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "attributedTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "attributedTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "attributedTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "attributedTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "attributedTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "attributedTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "attributedTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "attributedTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "attributedTo". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "attributedTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "attributedTo". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "attributedTo". Invalidates -// iterators that are traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "attributedTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "attributedTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "attributedTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "attributedTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "attributedTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "attributedTo". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "attributedTo". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "attributedTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "attributedTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "attributedTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAttributedToProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "attributedTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "attributedTo" -func (this *ActivityStreamsAttributedToProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "attributedTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "attributedTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAttributedToProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "attributedTo". Invalidates iterators that are traversing using -// Prev. Returns an error if the type is not a valid one to set for this -// property. -func (this *ActivityStreamsAttributedToProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsAttributedToProperty) At(index int) vocab.ActivityStreamsAttributedToPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsAttributedToProperty) Begin() vocab.ActivityStreamsAttributedToPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsAttributedToProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsAttributedToProperty) End() vocab.ActivityStreamsAttributedToPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "attributedTo". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "attributedTo". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "attributedTo". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "attributedTo". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "attributedTo". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "attributedTo". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "attributedTo". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "attributedTo". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "attributedTo". Existing -// elements at that index and higher are shifted back once. Invalidates all -// iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "attributedTo". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "attributedTo". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "attributedTo". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "attributedTo". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "attributedTo". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "attributedTo". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "attributedTo". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "attributedTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "attributedTo". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property -// "attributedTo". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "attributedTo". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "attributedTo". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "attributedTo". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsAttributedToProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsAttributedToProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsAttributedToProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "attributedTo" property. -func (this ActivityStreamsAttributedToProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsAttributedToProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsAttributedToProperty) LessThan(o vocab.ActivityStreamsAttributedToProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("attributedTo") with any alias. -func (this ActivityStreamsAttributedToProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "attributedTo" - } else { - return "attributedTo" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "attributedTo". Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "attributedTo". Invalidates all -// iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "attributedTo". Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "attributedTo". -func (this *ActivityStreamsAttributedToProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "attributedTo". Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "attributedTo". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsAttributedToProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "attributedTo", regardless of its type. Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsAttributedToPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsAttributedToProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "attributedTo". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "attributedTo". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "attributedTo". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "attributedTo". Panics if the index -// is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "attributedTo". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "attributedTo". Panics if the -// index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "attributedTo". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "attributedTo". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "attributedTo". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "attributedTo". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "attributedTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAttributedToProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "attributedTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAttributedToProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "attributedTo". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "attributedTo". Panics if the index is out of bounds. -func (this *ActivityStreamsAttributedToProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "attributedTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAttributedToProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "attributedTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAttributedToProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "attributedTo". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. Panics if the index is out of -// bounds. -func (this *ActivityStreamsAttributedToProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsAttributedToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "attributedTo" -// property. -func (this ActivityStreamsAttributedToProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_doc.go deleted file mode 100644 index 0c4fc3e39..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyaudience contains the implementation for the audience property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyaudience diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_pkg.go deleted file mode 100644 index 9f7a550a5..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyaudience - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go deleted file mode 100644 index aca72d149..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go +++ /dev/null @@ -1,7042 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyaudience - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsAudiencePropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsAudiencePropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsAudienceProperty -} - -// NewActivityStreamsAudiencePropertyIterator creates a new -// ActivityStreamsAudience property. -func NewActivityStreamsAudiencePropertyIterator() *ActivityStreamsAudiencePropertyIterator { - return &ActivityStreamsAudiencePropertyIterator{alias: ""} -} - -// deserializeActivityStreamsAudiencePropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsAudiencePropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsAudiencePropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsAudiencePropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsAudiencePropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsAudiencePropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsAudiencePropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsAudiencePropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsAudiencePropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStreamsAudiencePropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsAudience". -func (this ActivityStreamsAudiencePropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsAudience" - } else { - return "ActivityStreamsAudience" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsAudiencePropertyIterator) Next() vocab.ActivityStreamsAudiencePropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsAudiencePropertyIterator) Prev() vocab.ActivityStreamsAudiencePropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsAudiencePropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsAudience property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsAudiencePropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsAudienceProperty is the non-functional property "audience". It -// is permitted to have one or more values, and of different value types. -type ActivityStreamsAudienceProperty struct { - properties []*ActivityStreamsAudiencePropertyIterator - alias string -} - -// DeserializeAudienceProperty creates a "audience" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeAudienceProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAudienceProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "audience" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "audience") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsAudienceProperty{ - alias: alias, - properties: []*ActivityStreamsAudiencePropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsAudiencePropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsAudiencePropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsAudienceProperty creates a new audience property. -func NewActivityStreamsAudienceProperty() *ActivityStreamsAudienceProperty { - return &ActivityStreamsAudienceProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "audience". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "audience". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "audience". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "audience". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "audience". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "audience". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "audience". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "audience". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "audience". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "audience". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "audience". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "audience". Invalidates -// iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "audience". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "audience". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "audience". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "audience". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "audience". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "audience". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "audience". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "audience". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "audience". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAudienceProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "audience". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "audience" -func (this *ActivityStreamsAudienceProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "audience". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsAudienceProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "audience". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsAudienceProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "audience". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsAudienceProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsAudienceProperty) At(index int) vocab.ActivityStreamsAudiencePropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsAudienceProperty) Begin() vocab.ActivityStreamsAudiencePropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsAudienceProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsAudienceProperty) End() vocab.ActivityStreamsAudiencePropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "audience". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "audience". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "audience". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "audience". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "audience". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "audience". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "audience". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "audience". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "audience". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "audience". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "audience". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "audience". Existing elements -// at that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "audience". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "audience". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "audience". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "audience". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "audience". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "audience". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "audience". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "audience". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "audience". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "audience". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "audience". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "audience". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "audience". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "audience". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "audience". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "audience". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsAudienceProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsAudienceProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsAudienceProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "audience" property. -func (this ActivityStreamsAudienceProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsAudienceProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsAudienceProperty) LessThan(o vocab.ActivityStreamsAudienceProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("audience") with any alias. -func (this ActivityStreamsAudienceProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "audience" - } else { - return "audience" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "audience". Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "audience". Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "audience". -func (this *ActivityStreamsAudienceProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "audience". Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "audience". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsAudienceProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsAudiencePropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "audience", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsAudiencePropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsAudienceProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "audience". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "audience". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "audience". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "audience". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "audience". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "audience". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "audience". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "audience". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "audience". Panics if the index -// is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "audience". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "audience". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "audience". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "audience". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "audience". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "audience". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "audience". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "audience". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsAudienceProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "audience". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsAudienceProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "audience". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "audience". Panics if the index is out of bounds. -func (this *ActivityStreamsAudienceProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "audience". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "audience". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsAudienceProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "audience". Invalidates all iterators. Returns an error if the type is not -// a valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsAudienceProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsAudiencePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "audience" property. -func (this ActivityStreamsAudienceProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_doc.go deleted file mode 100644 index 65292aaae..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertybcc contains the implementation for the bcc property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertybcc diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go deleted file mode 100644 index edc0629b5..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertybcc - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go deleted file mode 100644 index 19beec707..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go +++ /dev/null @@ -1,7028 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertybcc - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsBccPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsBccPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsBccProperty -} - -// NewActivityStreamsBccPropertyIterator creates a new ActivityStreamsBcc property. -func NewActivityStreamsBccPropertyIterator() *ActivityStreamsBccPropertyIterator { - return &ActivityStreamsBccPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsBccPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsBccPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBccPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsBccPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsBccPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsBccPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsBccPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsBccPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsBccPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsBccPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsBccPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsBccPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsBccPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsBccPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsBcc". -func (this ActivityStreamsBccPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsBcc" - } else { - return "ActivityStreamsBcc" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsBccPropertyIterator) Next() vocab.ActivityStreamsBccPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsBccPropertyIterator) Prev() vocab.ActivityStreamsBccPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsBccPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsBccPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsBcc property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsBccPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsBccProperty is the non-functional property "bcc". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsBccProperty struct { - properties []*ActivityStreamsBccPropertyIterator - alias string -} - -// DeserializeBccProperty creates a "bcc" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeBccProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsBccProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "bcc" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "bcc") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsBccProperty{ - alias: alias, - properties: []*ActivityStreamsBccPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsBccPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsBccPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsBccProperty creates a new bcc property. -func NewActivityStreamsBccProperty() *ActivityStreamsBccProperty { - return &ActivityStreamsBccProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "bcc". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "bcc". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "bcc". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "bcc". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "bcc". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "bcc". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "bcc". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "bcc". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "bcc". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "bcc". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "bcc". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsBccProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "bcc" -func (this *ActivityStreamsBccProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "bcc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBccProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "bcc". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsBccProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsBccProperty) At(index int) vocab.ActivityStreamsBccPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsBccProperty) Begin() vocab.ActivityStreamsBccPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsBccProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsBccProperty) End() vocab.ActivityStreamsBccPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "bcc". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "bcc". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "bcc". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "bcc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "bcc". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "bcc". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "bcc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "bcc". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "bcc". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "bcc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "bcc". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "bcc". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "bcc". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "bcc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "bcc". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "bcc". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "bcc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "bcc". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "bcc". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "bcc". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "bcc". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "bcc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "bcc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "bcc". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "bcc". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "bcc". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "bcc". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "bcc". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. -func (this *ActivityStreamsBccProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsBccProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsBccProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "bcc" property. -func (this ActivityStreamsBccProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsBccProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsBccProperty) LessThan(o vocab.ActivityStreamsBccProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("bcc") with any alias. -func (this ActivityStreamsBccProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "bcc" - } else { - return "bcc" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "bcc". Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "bcc". Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property "bcc". -func (this *ActivityStreamsBccProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "bcc". Invalidates all iterators. -func (this *ActivityStreamsBccProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsBccPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "bcc". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. -func (this *ActivityStreamsBccProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsBccPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "bcc", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsBccProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsBccPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsBccProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "bcc". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "bcc". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "bcc". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "bcc". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "bcc". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "bcc". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "bcc". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "bcc". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "bcc". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "bcc". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "bcc". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "bcc". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "bcc". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "bcc". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "bcc". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "bcc". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "bcc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBccProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "bcc". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property "bcc". -// Panics if the index is out of bounds. -func (this *ActivityStreamsBccProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "bcc". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsBccProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "bcc". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsBccProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "bcc". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsBccProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsBccPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "bcc" property. -func (this ActivityStreamsBccProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_doc.go deleted file mode 100644 index d2ed4646a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertybto contains the implementation for the bto property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertybto diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_pkg.go deleted file mode 100644 index 151b80b73..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertybto - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go deleted file mode 100644 index a3e8b2c2c..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go +++ /dev/null @@ -1,7028 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertybto - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsBtoPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsBtoPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsBtoProperty -} - -// NewActivityStreamsBtoPropertyIterator creates a new ActivityStreamsBto property. -func NewActivityStreamsBtoPropertyIterator() *ActivityStreamsBtoPropertyIterator { - return &ActivityStreamsBtoPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsBtoPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsBtoPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsBtoPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsBtoPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsBtoPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsBtoPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsBtoPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsBtoPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsBtoPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsBtoPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsBtoPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsBtoPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsBtoPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsBtoPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsBto". -func (this ActivityStreamsBtoPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsBto" - } else { - return "ActivityStreamsBto" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsBtoPropertyIterator) Next() vocab.ActivityStreamsBtoPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsBtoPropertyIterator) Prev() vocab.ActivityStreamsBtoPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsBtoPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsBto property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsBtoPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsBtoProperty is the non-functional property "bto". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsBtoProperty struct { - properties []*ActivityStreamsBtoPropertyIterator - alias string -} - -// DeserializeBtoProperty creates a "bto" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeBtoProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsBtoProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "bto" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "bto") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsBtoProperty{ - alias: alias, - properties: []*ActivityStreamsBtoPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsBtoPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsBtoPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsBtoProperty creates a new bto property. -func NewActivityStreamsBtoProperty() *ActivityStreamsBtoProperty { - return &ActivityStreamsBtoProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "bto". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "bto". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "bto". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "bto". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "bto". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "bto". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "bto". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "bto". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "bto". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "bto". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "bto". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsBtoProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "bto" -func (this *ActivityStreamsBtoProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "bto". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsBtoProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "bto". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsBtoProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsBtoProperty) At(index int) vocab.ActivityStreamsBtoPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsBtoProperty) Begin() vocab.ActivityStreamsBtoPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsBtoProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsBtoProperty) End() vocab.ActivityStreamsBtoPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "bto". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "bto". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "bto". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "bto". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "bto". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "bto". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "bto". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "bto". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "bto". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "bto". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "bto". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "bto". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "bto". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "bto". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "bto". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "bto". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "bto". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "bto". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "bto". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "bto". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "bto". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "bto". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "bto". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "bto". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "bto". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "bto". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "bto". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "bto". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. -func (this *ActivityStreamsBtoProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsBtoProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsBtoProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "bto" property. -func (this ActivityStreamsBtoProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsBtoProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsBtoProperty) LessThan(o vocab.ActivityStreamsBtoProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("bto") with any alias. -func (this ActivityStreamsBtoProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "bto" - } else { - return "bto" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "bto". Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "bto". Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property "bto". -func (this *ActivityStreamsBtoProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "bto". Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "bto". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. -func (this *ActivityStreamsBtoProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsBtoPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "bto", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsBtoPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsBtoProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "bto". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "bto". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "bto". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "bto". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "bto". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "bto". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "bto". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "bto". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "bto". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "bto". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "bto". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "bto". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "bto". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "bto". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "bto". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "bto". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "bto". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsBtoProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "bto". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property "bto". -// Panics if the index is out of bounds. -func (this *ActivityStreamsBtoProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "bto". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsBtoProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "bto". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsBtoProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "bto". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsBtoProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsBtoPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "bto" property. -func (this ActivityStreamsBtoProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_doc.go deleted file mode 100644 index 59f1c6ce9..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertycc contains the implementation for the cc property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertycc diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_pkg.go deleted file mode 100644 index 5671fdfc2..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycc - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go deleted file mode 100644 index e4df02fa3..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go +++ /dev/null @@ -1,7028 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycc - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsCcPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsCcPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsCcProperty -} - -// NewActivityStreamsCcPropertyIterator creates a new ActivityStreamsCc property. -func NewActivityStreamsCcPropertyIterator() *ActivityStreamsCcPropertyIterator { - return &ActivityStreamsCcPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsCcPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsCcPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCcPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsCcPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsCcPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsCcPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsCcPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsCcPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsCcPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsCcPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsCcPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsCcPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsCcPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCcPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsCc". -func (this ActivityStreamsCcPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsCc" - } else { - return "ActivityStreamsCc" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsCcPropertyIterator) Next() vocab.ActivityStreamsCcPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsCcPropertyIterator) Prev() vocab.ActivityStreamsCcPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsCcPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsCcPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsCc property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsCcPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsCcProperty is the non-functional property "cc". It is permitted -// to have one or more values, and of different value types. -type ActivityStreamsCcProperty struct { - properties []*ActivityStreamsCcPropertyIterator - alias string -} - -// DeserializeCcProperty creates a "cc" property from an interface representation -// that has been unmarshalled from a text or binary format. -func DeserializeCcProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCcProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "cc" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "cc") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsCcProperty{ - alias: alias, - properties: []*ActivityStreamsCcPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsCcPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsCcPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsCcProperty creates a new cc property. -func NewActivityStreamsCcProperty() *ActivityStreamsCcProperty { - return &ActivityStreamsCcProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "cc". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "cc". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "cc". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "cc". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "cc". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "cc". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "cc". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "cc". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "cc". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "cc". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "cc". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsCcProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "cc" -func (this *ActivityStreamsCcProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "cc". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsCcProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "cc". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsCcProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsCcProperty) At(index int) vocab.ActivityStreamsCcPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsCcProperty) Begin() vocab.ActivityStreamsCcPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsCcProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsCcProperty) End() vocab.ActivityStreamsCcPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "cc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "cc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "cc". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "cc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "cc". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "cc". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "cc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "cc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "cc". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "cc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "cc". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "cc". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "cc". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "cc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "cc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "cc". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "cc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "cc". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "cc". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "cc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "cc". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "cc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "cc". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "cc". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "cc". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "cc". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "cc". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "cc". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. -func (this *ActivityStreamsCcProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsCcProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsCcProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "cc" property. -func (this ActivityStreamsCcProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsCcProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsCcProperty) LessThan(o vocab.ActivityStreamsCcProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("cc") with any alias. -func (this ActivityStreamsCcProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "cc" - } else { - return "cc" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "cc". Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "cc". Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property "cc". -func (this *ActivityStreamsCcProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "cc". Invalidates all iterators. -func (this *ActivityStreamsCcProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsCcPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "cc". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. -func (this *ActivityStreamsCcProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsCcPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "cc", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsCcProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsCcPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsCcProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "cc". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "cc". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "cc". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "cc". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "cc". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "cc". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "cc". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "cc". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "cc". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "cc". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "cc". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "cc". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "cc". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "cc". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "cc". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "cc". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "cc". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsCcProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "cc". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property "cc". -// Panics if the index is out of bounds. -func (this *ActivityStreamsCcProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "cc". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsCcProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "cc". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsCcProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "cc". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsCcProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsCcPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "cc" property. -func (this ActivityStreamsCcProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_doc.go deleted file mode 100644 index b98a695ac..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyclosed contains the implementation for the closed property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyclosed diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_pkg.go deleted file mode 100644 index cc4ce57cc..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyclosed - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go deleted file mode 100644 index ffe820f1b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go +++ /dev/null @@ -1,7240 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyclosed - -import ( - "fmt" - boolean "github.com/go-fed/activity/streams/values/boolean" - datetime "github.com/go-fed/activity/streams/values/dateTime" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" - "time" -) - -// ActivityStreamsClosedPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsClosedPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - xmlschemaDateTimeMember time.Time - hasDateTimeMember bool - xmlschemaBooleanMember bool - hasBooleanMember bool - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsClosedProperty -} - -// NewActivityStreamsClosedPropertyIterator creates a new ActivityStreamsClosed -// property. -func NewActivityStreamsClosedPropertyIterator() *ActivityStreamsClosedPropertyIterator { - return &ActivityStreamsClosedPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsClosedPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsClosedPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - if v, err := datetime.DeserializeDateTime(i); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - hasDateTimeMember: true, - xmlschemaDateTimeMember: v, - } - return this, nil - } else if v, err := boolean.DeserializeBoolean(i); err == nil { - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - hasBooleanMember: true, - xmlschemaBooleanMember: v, - } - return this, nil - } - this := &ActivityStreamsClosedPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// GetXMLSchemaBoolean returns the value of this property. When IsXMLSchemaBoolean -// returns false, GetXMLSchemaBoolean will return an arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetXMLSchemaBoolean() bool { - return this.xmlschemaBooleanMember -} - -// GetXMLSchemaDateTime returns the value of this property. When -// IsXMLSchemaDateTime returns false, GetXMLSchemaDateTime will return an -// arbitrary value. -func (this ActivityStreamsClosedPropertyIterator) GetXMLSchemaDateTime() time.Time { - return this.xmlschemaDateTimeMember -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsClosedPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsXMLSchemaDateTime() || - this.IsXMLSchemaBoolean() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsClosedPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsClosedPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsClosedPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsClosedPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsClosedPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// IsXMLSchemaBoolean returns true if this property has a type of "boolean". When -// true, use the GetXMLSchemaBoolean and SetXMLSchemaBoolean methods to access -// and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsXMLSchemaBoolean() bool { - return this.hasBooleanMember -} - -// IsXMLSchemaDateTime returns true if this property has a type of "dateTime". -// When true, use the GetXMLSchemaDateTime and SetXMLSchemaDateTime methods to -// access and set this property. -func (this ActivityStreamsClosedPropertyIterator) IsXMLSchemaDateTime() bool { - return this.hasDateTimeMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsClosedPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsXMLSchemaDateTime() { - return 2 - } - if this.IsXMLSchemaBoolean() { - return 3 - } - if this.IsActivityStreamsAccept() { - return 4 - } - if this.IsActivityStreamsActivity() { - return 5 - } - if this.IsActivityStreamsAdd() { - return 6 - } - if this.IsActivityStreamsAnnounce() { - return 7 - } - if this.IsActivityStreamsApplication() { - return 8 - } - if this.IsActivityStreamsArrive() { - return 9 - } - if this.IsActivityStreamsArticle() { - return 10 - } - if this.IsActivityStreamsAudio() { - return 11 - } - if this.IsActivityStreamsBlock() { - return 12 - } - if this.IsForgeFedBranch() { - return 13 - } - if this.IsActivityStreamsCollection() { - return 14 - } - if this.IsActivityStreamsCollectionPage() { - return 15 - } - if this.IsForgeFedCommit() { - return 16 - } - if this.IsActivityStreamsCreate() { - return 17 - } - if this.IsActivityStreamsDelete() { - return 18 - } - if this.IsActivityStreamsDislike() { - return 19 - } - if this.IsActivityStreamsDocument() { - return 20 - } - if this.IsTootEmoji() { - return 21 - } - if this.IsActivityStreamsEvent() { - return 22 - } - if this.IsActivityStreamsFlag() { - return 23 - } - if this.IsActivityStreamsFollow() { - return 24 - } - if this.IsActivityStreamsGroup() { - return 25 - } - if this.IsTootIdentityProof() { - return 26 - } - if this.IsActivityStreamsIgnore() { - return 27 - } - if this.IsActivityStreamsImage() { - return 28 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 29 - } - if this.IsActivityStreamsInvite() { - return 30 - } - if this.IsActivityStreamsJoin() { - return 31 - } - if this.IsActivityStreamsLeave() { - return 32 - } - if this.IsActivityStreamsLike() { - return 33 - } - if this.IsActivityStreamsListen() { - return 34 - } - if this.IsActivityStreamsMention() { - return 35 - } - if this.IsActivityStreamsMove() { - return 36 - } - if this.IsActivityStreamsNote() { - return 37 - } - if this.IsActivityStreamsOffer() { - return 38 - } - if this.IsActivityStreamsOrderedCollection() { - return 39 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 40 - } - if this.IsActivityStreamsOrganization() { - return 41 - } - if this.IsActivityStreamsPage() { - return 42 - } - if this.IsActivityStreamsPerson() { - return 43 - } - if this.IsActivityStreamsPlace() { - return 44 - } - if this.IsActivityStreamsProfile() { - return 45 - } - if this.IsForgeFedPush() { - return 46 - } - if this.IsActivityStreamsQuestion() { - return 47 - } - if this.IsActivityStreamsRead() { - return 48 - } - if this.IsActivityStreamsReject() { - return 49 - } - if this.IsActivityStreamsRelationship() { - return 50 - } - if this.IsActivityStreamsRemove() { - return 51 - } - if this.IsForgeFedRepository() { - return 52 - } - if this.IsActivityStreamsService() { - return 53 - } - if this.IsActivityStreamsTentativeAccept() { - return 54 - } - if this.IsActivityStreamsTentativeReject() { - return 55 - } - if this.IsForgeFedTicket() { - return 56 - } - if this.IsForgeFedTicketDependency() { - return 57 - } - if this.IsActivityStreamsTombstone() { - return 58 - } - if this.IsActivityStreamsTravel() { - return 59 - } - if this.IsActivityStreamsUndo() { - return 60 - } - if this.IsActivityStreamsUpdate() { - return 61 - } - if this.IsActivityStreamsVideo() { - return 62 - } - if this.IsActivityStreamsView() { - return 63 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStreamsClosedPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsXMLSchemaDateTime() { - return datetime.LessDateTime(this.GetXMLSchemaDateTime(), o.GetXMLSchemaDateTime()) - } else if this.IsXMLSchemaBoolean() { - return boolean.LessBoolean(this.GetXMLSchemaBoolean(), o.GetXMLSchemaBoolean()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsClosed". -func (this ActivityStreamsClosedPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsClosed" - } else { - return "ActivityStreamsClosed" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsClosedPropertyIterator) Next() vocab.ActivityStreamsClosedPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsClosedPropertyIterator) Prev() vocab.ActivityStreamsClosedPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsClosed property: %T", t) -} - -// SetXMLSchemaBoolean sets the value of this property. Calling IsXMLSchemaBoolean -// afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetXMLSchemaBoolean(v bool) { - this.clear() - this.xmlschemaBooleanMember = v - this.hasBooleanMember = true -} - -// SetXMLSchemaDateTime sets the value of this property. Calling -// IsXMLSchemaDateTime afterwards returns true. -func (this *ActivityStreamsClosedPropertyIterator) SetXMLSchemaDateTime(v time.Time) { - this.clear() - this.xmlschemaDateTimeMember = v - this.hasDateTimeMember = true -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsClosedPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.hasDateTimeMember = false - this.hasBooleanMember = false - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsXMLSchemaDateTime() { - return datetime.SerializeDateTime(this.GetXMLSchemaDateTime()) - } else if this.IsXMLSchemaBoolean() { - return boolean.SerializeBoolean(this.GetXMLSchemaBoolean()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsClosedProperty is the non-functional property "closed". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsClosedProperty struct { - properties []*ActivityStreamsClosedPropertyIterator - alias string -} - -// DeserializeClosedProperty creates a "closed" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeClosedProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsClosedProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "closed" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "closed") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsClosedProperty{ - alias: alias, - properties: []*ActivityStreamsClosedPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsClosedPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsClosedPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsClosedProperty creates a new closed property. -func NewActivityStreamsClosedProperty() *ActivityStreamsClosedProperty { - return &ActivityStreamsClosedProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "closed". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "closed". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "closed". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "closed". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "closed". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "closed". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "closed". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "closed". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "closed". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "closed". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "closed". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "closed". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsClosedProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "closed" -func (this *ActivityStreamsClosedProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsClosedProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// AppendXMLSchemaBoolean appends a boolean value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendXMLSchemaBoolean(v bool) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - hasBooleanMember: true, - myIdx: this.Len(), - parent: this, - xmlschemaBooleanMember: v, - }) -} - -// AppendXMLSchemaDateTime appends a dateTime value to the back of a list of the -// property "closed". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsClosedProperty) AppendXMLSchemaDateTime(v time.Time) { - this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - hasDateTimeMember: true, - myIdx: this.Len(), - parent: this, - xmlschemaDateTimeMember: v, - }) -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsClosedProperty) At(index int) vocab.ActivityStreamsClosedPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsClosedProperty) Begin() vocab.ActivityStreamsClosedPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsClosedProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsClosedProperty) End() vocab.ActivityStreamsClosedPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "closed". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "closed". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "closed". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "closed". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "closed". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "closed". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "closed". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "closed". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "closed". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "closed". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "closed". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "closed". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "closed". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "closed". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "closed". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "closed". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "closed". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "closed". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "closed". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "closed". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "closed". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsClosedProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// InsertXMLSchemaBoolean inserts a boolean value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertXMLSchemaBoolean(idx int, v bool) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - hasBooleanMember: true, - myIdx: idx, - parent: this, - xmlschemaBooleanMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaDateTime inserts a dateTime value at the specified index for a -// property "closed". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) InsertXMLSchemaDateTime(idx int, v time.Time) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - hasDateTimeMember: true, - myIdx: idx, - parent: this, - xmlschemaDateTimeMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsClosedProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsClosedProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "closed" property. -func (this ActivityStreamsClosedProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsClosedProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetXMLSchemaDateTime() - rhs := this.properties[j].GetXMLSchemaDateTime() - return datetime.LessDateTime(lhs, rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetXMLSchemaBoolean() - rhs := this.properties[j].GetXMLSchemaBoolean() - return boolean.LessBoolean(lhs, rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 62 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 63 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsClosedProperty) LessThan(o vocab.ActivityStreamsClosedProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("closed") with any alias. -func (this ActivityStreamsClosedProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "closed" - } else { - return "closed" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "closed". Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "closed". Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "closed". -func (this *ActivityStreamsClosedProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "closed". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsClosedProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsClosedPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// PrependXMLSchemaBoolean prepends a boolean value to the front of a list of the -// property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependXMLSchemaBoolean(v bool) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - hasBooleanMember: true, - myIdx: 0, - parent: this, - xmlschemaBooleanMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaDateTime prepends a dateTime value to the front of a list of -// the property "closed". Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) PrependXMLSchemaDateTime(v time.Time) { - this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ - alias: this.alias, - hasDateTimeMember: true, - myIdx: 0, - parent: this, - xmlschemaDateTimeMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Remove deletes an element at the specified index from a list of the property -// "closed", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsClosedPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsClosedProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "closed". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "closed". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "closed". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "closed". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "closed". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "closed". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "closed". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "closed". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "closed". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "closed". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "closed". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "closed". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "closed". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "closed". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "closed". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "closed". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "closed". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsClosedProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "closed". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "closed". Panics if the index is out of bounds. -func (this *ActivityStreamsClosedProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "closed". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "closed". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsClosedProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "closed". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsClosedProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// SetXMLSchemaBoolean sets a boolean value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetXMLSchemaBoolean(idx int, v bool) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - hasBooleanMember: true, - myIdx: idx, - parent: this, - xmlschemaBooleanMember: v, - } -} - -// SetXMLSchemaDateTime sets a dateTime value to be at the specified index for the -// property "closed". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsClosedProperty) SetXMLSchemaDateTime(idx int, v time.Time) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ - alias: this.alias, - hasDateTimeMember: true, - myIdx: idx, - parent: this, - xmlschemaDateTimeMember: v, - } -} - -// Swap swaps the location of values at two indices for the "closed" property. -func (this ActivityStreamsClosedProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_doc.go deleted file mode 100644 index 722a4a72e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertycontent contains the implementation for the content property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertycontent diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_pkg.go deleted file mode 100644 index 8d2ea1607..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycontent - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go deleted file mode 100644 index 8e6b624ad..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go +++ /dev/null @@ -1,668 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycontent - -import ( - "fmt" - langstring "github.com/go-fed/activity/streams/values/langString" - string1 "github.com/go-fed/activity/streams/values/string" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsContentPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsContentPropertyIterator struct { - xmlschemaStringMember string - hasStringMember bool - rdfLangStringMember map[string]string - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsContentProperty -} - -// NewActivityStreamsContentPropertyIterator creates a new ActivityStreamsContent -// property. -func NewActivityStreamsContentPropertyIterator() *ActivityStreamsContentPropertyIterator { - return &ActivityStreamsContentPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsContentPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsContentPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsContentPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsContentPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &ActivityStreamsContentPropertyIterator{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } else if v, err := langstring.DeserializeLangString(i); err == nil { - this := &ActivityStreamsContentPropertyIterator{ - alias: alias, - rdfLangStringMember: v, - } - return this, nil - } - this := &ActivityStreamsContentPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsContentPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetLanguage returns the value for the specified BCP47 language code, or an -// empty string if it is either not a language map or no value is present. -func (this ActivityStreamsContentPropertyIterator) GetLanguage(bcp47 string) string { - if this.rdfLangStringMember == nil { - return "" - } else if v, ok := this.rdfLangStringMember[bcp47]; ok { - return v - } else { - return "" - } -} - -// GetRDFLangString returns the value of this property. When IsRDFLangString -// returns false, GetRDFLangString will return an arbitrary value. -func (this ActivityStreamsContentPropertyIterator) GetRDFLangString() map[string]string { - return this.rdfLangStringMember -} - -// GetXMLSchemaString returns the value of this property. When IsXMLSchemaString -// returns false, GetXMLSchemaString will return an arbitrary value. -func (this ActivityStreamsContentPropertyIterator) GetXMLSchemaString() string { - return this.xmlschemaStringMember -} - -// HasAny returns true if any of the values are set, except for the natural -// language map. When true, the specific has, getter, and setter methods may -// be used to determine what kind of value there is to access and set this -// property. To determine if the property was set as a natural language map, -// use the IsRDFLangString method instead. -func (this ActivityStreamsContentPropertyIterator) HasAny() bool { - return this.IsXMLSchemaString() || - this.IsRDFLangString() || - this.iri != nil -} - -// HasLanguage returns true if the natural language map has an entry for the -// specified BCP47 language code. -func (this ActivityStreamsContentPropertyIterator) HasLanguage(bcp47 string) bool { - if this.rdfLangStringMember == nil { - return false - } else { - _, ok := this.rdfLangStringMember[bcp47] - return ok - } -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsContentPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsRDFLangString returns true if this property has a type of "langString". When -// true, use the GetRDFLangString and SetRDFLangString methods to access and -// set this property.. To determine if the property was set as a natural -// language map, use the IsRDFLangString method instead. -func (this ActivityStreamsContentPropertyIterator) IsRDFLangString() bool { - return this.rdfLangStringMember != nil -} - -// IsXMLSchemaString returns true if this property has a type of "string". When -// true, use the GetXMLSchemaString and SetXMLSchemaString methods to access -// and set this property.. To determine if the property was set as a natural -// language map, use the IsRDFLangString method instead. -func (this ActivityStreamsContentPropertyIterator) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsContentPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsContentPropertyIterator) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsRDFLangString() { - return 1 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsContentPropertyIterator) LessThan(o vocab.ActivityStreamsContentPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsXMLSchemaString() { - return string1.LessString(this.GetXMLSchemaString(), o.GetXMLSchemaString()) - } else if this.IsRDFLangString() { - return langstring.LessLangString(this.GetRDFLangString(), o.GetRDFLangString()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsContent". -func (this ActivityStreamsContentPropertyIterator) Name() string { - if this.IsRDFLangString() { - return "ActivityStreamsContentMap" - } else { - return "ActivityStreamsContent" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsContentPropertyIterator) Next() vocab.ActivityStreamsContentPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsContentPropertyIterator) Prev() vocab.ActivityStreamsContentPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsContentPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetLanguage sets the value for the specified BCP47 language code. -func (this *ActivityStreamsContentPropertyIterator) SetLanguage(bcp47, value string) { - this.hasStringMember = false - this.rdfLangStringMember = nil - this.unknown = nil - this.iri = nil - if this.rdfLangStringMember == nil { - this.rdfLangStringMember = make(map[string]string) - } - this.rdfLangStringMember[bcp47] = value -} - -// SetRDFLangString sets the value of this property and clears the natural -// language map. Calling IsRDFLangString afterwards will return true. Calling -// IsRDFLangString afterwards returns false. -func (this *ActivityStreamsContentPropertyIterator) SetRDFLangString(v map[string]string) { - this.clear() - this.rdfLangStringMember = v -} - -// SetXMLSchemaString sets the value of this property and clears the natural -// language map. Calling IsXMLSchemaString afterwards will return true. -// Calling IsRDFLangString afterwards returns false. -func (this *ActivityStreamsContentPropertyIterator) SetXMLSchemaString(v string) { - this.clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// clear ensures no value and no language map for this property is set. Calling -// HasAny or any of the 'Is' methods afterwards will return false. -func (this *ActivityStreamsContentPropertyIterator) clear() { - this.hasStringMember = false - this.rdfLangStringMember = nil - this.unknown = nil - this.iri = nil - this.rdfLangStringMember = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsContentPropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.GetXMLSchemaString()) - } else if this.IsRDFLangString() { - return langstring.SerializeLangString(this.GetRDFLangString()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsContentProperty is the non-functional property "content". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsContentProperty struct { - properties []*ActivityStreamsContentPropertyIterator - alias string -} - -// DeserializeContentProperty creates a "content" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeContentProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsContentProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "content" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "content") - } - i, ok := m[propName] - if !ok { - // Attempt to find the map instead. - i, ok = m[propName+"Map"] - } - if ok { - this := &ActivityStreamsContentProperty{ - alias: alias, - properties: []*ActivityStreamsContentPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsContentPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsContentPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsContentProperty creates a new content property. -func NewActivityStreamsContentProperty() *ActivityStreamsContentProperty { - return &ActivityStreamsContentProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property "content" -func (this *ActivityStreamsContentProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsContentPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendRDFLangString appends a langString value to the back of a list of the -// property "content". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContentProperty) AppendRDFLangString(v map[string]string) { - this.properties = append(this.properties, &ActivityStreamsContentPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - rdfLangStringMember: v, - }) -} - -// AppendXMLSchemaString appends a string value to the back of a list of the -// property "content". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContentProperty) AppendXMLSchemaString(v string) { - this.properties = append(this.properties, &ActivityStreamsContentPropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: this.Len(), - parent: this, - xmlschemaStringMember: v, - }) -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsContentProperty) At(index int) vocab.ActivityStreamsContentPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsContentProperty) Begin() vocab.ActivityStreamsContentPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsContentProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsContentProperty) End() vocab.ActivityStreamsContentPropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property "content". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsContentProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContentPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertRDFLangString inserts a langString value at the specified index for a -// property "content". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContentProperty) InsertRDFLangString(idx int, v map[string]string) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - rdfLangStringMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaString inserts a string value at the specified index for a -// property "content". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContentProperty) InsertXMLSchemaString(idx int, v string) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContentPropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsContentProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsContentProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "content" property. -func (this ActivityStreamsContentProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsContentProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetXMLSchemaString() - rhs := this.properties[j].GetXMLSchemaString() - return string1.LessString(lhs, rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetRDFLangString() - rhs := this.properties[j].GetRDFLangString() - return langstring.LessLangString(lhs, rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsContentProperty) LessThan(o vocab.ActivityStreamsContentProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("content") with any alias. -func (this ActivityStreamsContentProperty) Name() string { - if this.Len() == 1 && this.At(0).IsRDFLangString() { - return "contentMap" - } else { - return "content" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "content". -func (this *ActivityStreamsContentProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsContentPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependRDFLangString prepends a langString value to the front of a list of the -// property "content". Invalidates all iterators. -func (this *ActivityStreamsContentProperty) PrependRDFLangString(v map[string]string) { - this.properties = append([]*ActivityStreamsContentPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - rdfLangStringMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaString prepends a string value to the front of a list of the -// property "content". Invalidates all iterators. -func (this *ActivityStreamsContentProperty) PrependXMLSchemaString(v string) { - this.properties = append([]*ActivityStreamsContentPropertyIterator{{ - alias: this.alias, - hasStringMember: true, - myIdx: 0, - parent: this, - xmlschemaStringMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Remove deletes an element at the specified index from a list of the property -// "content", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsContentProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsContentPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsContentProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "content". Panics if the index is out of bounds. -func (this *ActivityStreamsContentProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContentPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetRDFLangString sets a langString value to be at the specified index for the -// property "content". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContentProperty) SetRDFLangString(idx int, v map[string]string) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - rdfLangStringMember: v, - } -} - -// SetXMLSchemaString sets a string value to be at the specified index for the -// property "content". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContentProperty) SetXMLSchemaString(idx int, v string) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContentPropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } -} - -// Swap swaps the location of values at two indices for the "content" property. -func (this ActivityStreamsContentProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_doc.go deleted file mode 100644 index b3d0a4934..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertycontext contains the implementation for the context property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertycontext diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_pkg.go deleted file mode 100644 index 54bf7c06e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycontext - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go deleted file mode 100644 index a173a4699..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go +++ /dev/null @@ -1,7042 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycontext - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsContextPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsContextPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsContextProperty -} - -// NewActivityStreamsContextPropertyIterator creates a new ActivityStreamsContext -// property. -func NewActivityStreamsContextPropertyIterator() *ActivityStreamsContextPropertyIterator { - return &ActivityStreamsContextPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsContextPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsContextPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsContextPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsContextPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsContextPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsContextPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsContextPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsContextPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsContextPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsContextPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsContextPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsContextPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsContextPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStreamsContextPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsContext". -func (this ActivityStreamsContextPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsContext" - } else { - return "ActivityStreamsContext" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsContextPropertyIterator) Next() vocab.ActivityStreamsContextPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsContextPropertyIterator) Prev() vocab.ActivityStreamsContextPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsContextPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsContextPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsContext property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsContextPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsContextProperty is the non-functional property "context". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsContextProperty struct { - properties []*ActivityStreamsContextPropertyIterator - alias string -} - -// DeserializeContextProperty creates a "context" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeContextProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsContextProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "context" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "context") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsContextProperty{ - alias: alias, - properties: []*ActivityStreamsContextPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsContextPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsContextPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsContextProperty creates a new context property. -func NewActivityStreamsContextProperty() *ActivityStreamsContextProperty { - return &ActivityStreamsContextProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "context". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "context". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "context". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "context". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "context". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "context". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "context". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "context". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "context". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "context". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "context". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "context". Invalidates -// iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "context". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "context". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "context". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "context". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "context". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "context". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "context". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "context". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "context". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsContextProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "context". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsContextProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "context" -func (this *ActivityStreamsContextProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "context". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsContextProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "context". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsContextProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "context". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsContextProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsContextProperty) At(index int) vocab.ActivityStreamsContextPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsContextProperty) Begin() vocab.ActivityStreamsContextPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsContextProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsContextProperty) End() vocab.ActivityStreamsContextPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "context". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "context". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "context". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "context". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "context". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "context". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "context". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "context". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "context". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "context". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "context". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "context". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "context". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "context". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "context". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "context". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "context". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "context". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "context". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "context". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "context". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "context". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "context". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "context". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "context". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "context". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "context". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "context". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsContextProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsContextProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsContextProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "context" property. -func (this ActivityStreamsContextProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsContextProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsContextProperty) LessThan(o vocab.ActivityStreamsContextProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("context") with any alias. -func (this ActivityStreamsContextProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "context" - } else { - return "context" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "context". Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "context". Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "context". -func (this *ActivityStreamsContextProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "context". Invalidates all iterators. -func (this *ActivityStreamsContextProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsContextPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "context". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsContextProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsContextPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "context", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsContextProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsContextPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsContextProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "context". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "context". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "context". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "context". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "context". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "context". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "context". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "context". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "context". Panics if the index -// is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "context". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "context". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "context". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "context". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "context". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "context". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "context". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "context". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsContextProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "context". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsContextProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "context". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "context". Panics if the index is out of bounds. -func (this *ActivityStreamsContextProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "context". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "context". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsContextProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "context". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsContextProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsContextPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "context" property. -func (this ActivityStreamsContextProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_doc.go deleted file mode 100644 index 4e598e242..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertycurrent contains the implementation for the current property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertycurrent diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_pkg.go deleted file mode 100644 index c52916bdf..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_pkg.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycurrent - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go deleted file mode 100644 index 0c9c6001e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go +++ /dev/null @@ -1,359 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycurrent - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsCurrentProperty is the functional property "current". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsCurrentProperty struct { - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeCurrentProperty creates a "current" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeCurrentProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsCurrentProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "current" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "current") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsCurrentProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCurrentProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCurrentProperty{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCurrentProperty{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsCurrentProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsCurrentProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsCurrentProperty creates a new current property. -func NewActivityStreamsCurrentProperty() *ActivityStreamsCurrentProperty { - return &ActivityStreamsCurrentProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsCurrentProperty) Clear() { - this.activitystreamsCollectionPageMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsCurrentProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsCurrentProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsCurrentProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsCurrentProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsCurrentProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsCurrentProperty) GetType() vocab.Type { - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsCurrentProperty) HasAny() bool { - return this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsCurrentProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsCurrentProperty) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsCurrentProperty) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsCurrentProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsCurrentProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsCurrentProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsCurrentProperty) KindIndex() int { - if this.IsActivityStreamsCollectionPage() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsMention() { - return 2 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 3 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsCurrentProperty) LessThan(o vocab.ActivityStreamsCurrentProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "current". -func (this ActivityStreamsCurrentProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "current" - } else { - return "current" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsCurrentProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsCurrentProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsCurrentProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.Clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsCurrentProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.Clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsCurrentProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsCurrentProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsCurrentProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on current property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_doc.go deleted file mode 100644 index e774a6cd5..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertydeleted contains the implementation for the deleted property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertydeleted diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go deleted file mode 100644 index 37abebbad..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydeleted - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go deleted file mode 100644 index beb3f8ce7..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydeleted - -import ( - "fmt" - datetime "github.com/go-fed/activity/streams/values/dateTime" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" - "time" -) - -// ActivityStreamsDeletedProperty is the functional property "deleted". It is -// permitted to be a single default-valued value type. -type ActivityStreamsDeletedProperty struct { - xmlschemaDateTimeMember time.Time - hasDateTimeMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeDeletedProperty creates a "deleted" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeDeletedProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsDeletedProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "deleted" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "deleted") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsDeletedProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := datetime.DeserializeDateTime(i); err == nil { - this := &ActivityStreamsDeletedProperty{ - alias: alias, - hasDateTimeMember: true, - xmlschemaDateTimeMember: v, - } - return this, nil - } - this := &ActivityStreamsDeletedProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsDeletedProperty creates a new deleted property. -func NewActivityStreamsDeletedProperty() *ActivityStreamsDeletedProperty { - return &ActivityStreamsDeletedProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaDateTime -// afterwards will return false. -func (this *ActivityStreamsDeletedProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasDateTimeMember = false -} - -// Get returns the value of this property. When IsXMLSchemaDateTime returns false, -// Get will return any arbitrary value. -func (this ActivityStreamsDeletedProperty) Get() time.Time { - return this.xmlschemaDateTimeMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsDeletedProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsDeletedProperty) HasAny() bool { - return this.IsXMLSchemaDateTime() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsDeletedProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaDateTime returns true if this property is set and not an IRI. -func (this ActivityStreamsDeletedProperty) IsXMLSchemaDateTime() bool { - return this.hasDateTimeMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsDeletedProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsDeletedProperty) KindIndex() int { - if this.IsXMLSchemaDateTime() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsDeletedProperty) LessThan(o vocab.ActivityStreamsDeletedProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaDateTime() && o.IsXMLSchemaDateTime() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return datetime.LessDateTime(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "deleted". -func (this ActivityStreamsDeletedProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "deleted" - } else { - return "deleted" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsDeletedProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaDateTime() { - return datetime.SerializeDateTime(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaDateTime afterwards -// will return true. -func (this *ActivityStreamsDeletedProperty) Set(v time.Time) { - this.Clear() - this.xmlschemaDateTimeMember = v - this.hasDateTimeMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsDeletedProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_doc.go deleted file mode 100644 index 5787b3500..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertydescribes contains the implementation for the describes -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertydescribes diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_pkg.go deleted file mode 100644 index 553d52a2d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_pkg.go +++ /dev/null @@ -1,257 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydescribes - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go deleted file mode 100644 index 1f66d6c09..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go +++ /dev/null @@ -1,2932 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydescribes - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsDescribesProperty is the functional property "describes". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsDescribesProperty struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeDescribesProperty creates a "describes" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsDescribesProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "describes" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "describes") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsDescribesProperty{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsDescribesProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsDescribesProperty creates a new describes property. -func NewActivityStreamsDescribesProperty() *ActivityStreamsDescribesProperty { - return &ActivityStreamsDescribesProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsDescribesProperty) Clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsDescribesProperty) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsDescribesProperty) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsDescribesProperty) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsDescribesProperty) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsDescribesProperty) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsDescribesProperty) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsDescribesProperty) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsDescribesProperty) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsDescribesProperty) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsDescribesProperty) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsDescribesProperty) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsDescribesProperty) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsDescribesProperty) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsDescribesProperty) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsDescribesProperty) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsAccept() { - return 1 - } - if this.IsActivityStreamsActivity() { - return 2 - } - if this.IsActivityStreamsAdd() { - return 3 - } - if this.IsActivityStreamsAnnounce() { - return 4 - } - if this.IsActivityStreamsApplication() { - return 5 - } - if this.IsActivityStreamsArrive() { - return 6 - } - if this.IsActivityStreamsArticle() { - return 7 - } - if this.IsActivityStreamsAudio() { - return 8 - } - if this.IsActivityStreamsBlock() { - return 9 - } - if this.IsForgeFedBranch() { - return 10 - } - if this.IsActivityStreamsCollection() { - return 11 - } - if this.IsActivityStreamsCollectionPage() { - return 12 - } - if this.IsForgeFedCommit() { - return 13 - } - if this.IsActivityStreamsCreate() { - return 14 - } - if this.IsActivityStreamsDelete() { - return 15 - } - if this.IsActivityStreamsDislike() { - return 16 - } - if this.IsActivityStreamsDocument() { - return 17 - } - if this.IsTootEmoji() { - return 18 - } - if this.IsActivityStreamsEvent() { - return 19 - } - if this.IsActivityStreamsFlag() { - return 20 - } - if this.IsActivityStreamsFollow() { - return 21 - } - if this.IsActivityStreamsGroup() { - return 22 - } - if this.IsTootIdentityProof() { - return 23 - } - if this.IsActivityStreamsIgnore() { - return 24 - } - if this.IsActivityStreamsImage() { - return 25 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 26 - } - if this.IsActivityStreamsInvite() { - return 27 - } - if this.IsActivityStreamsJoin() { - return 28 - } - if this.IsActivityStreamsLeave() { - return 29 - } - if this.IsActivityStreamsLike() { - return 30 - } - if this.IsActivityStreamsListen() { - return 31 - } - if this.IsActivityStreamsMove() { - return 32 - } - if this.IsActivityStreamsNote() { - return 33 - } - if this.IsActivityStreamsOffer() { - return 34 - } - if this.IsActivityStreamsOrderedCollection() { - return 35 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 36 - } - if this.IsActivityStreamsOrganization() { - return 37 - } - if this.IsActivityStreamsPage() { - return 38 - } - if this.IsActivityStreamsPerson() { - return 39 - } - if this.IsActivityStreamsPlace() { - return 40 - } - if this.IsActivityStreamsProfile() { - return 41 - } - if this.IsForgeFedPush() { - return 42 - } - if this.IsActivityStreamsQuestion() { - return 43 - } - if this.IsActivityStreamsRead() { - return 44 - } - if this.IsActivityStreamsReject() { - return 45 - } - if this.IsActivityStreamsRelationship() { - return 46 - } - if this.IsActivityStreamsRemove() { - return 47 - } - if this.IsForgeFedRepository() { - return 48 - } - if this.IsActivityStreamsService() { - return 49 - } - if this.IsActivityStreamsTentativeAccept() { - return 50 - } - if this.IsActivityStreamsTentativeReject() { - return 51 - } - if this.IsForgeFedTicket() { - return 52 - } - if this.IsForgeFedTicketDependency() { - return 53 - } - if this.IsActivityStreamsTombstone() { - return 54 - } - if this.IsActivityStreamsTravel() { - return 55 - } - if this.IsActivityStreamsUndo() { - return 56 - } - if this.IsActivityStreamsUpdate() { - return 57 - } - if this.IsActivityStreamsVideo() { - return 58 - } - if this.IsActivityStreamsView() { - return 59 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDescribesProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "describes". -func (this ActivityStreamsDescribesProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "describes" - } else { - return "describes" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.Clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.Clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.Clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.Clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.Clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.Clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.Clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.Clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.Clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.Clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.Clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.Clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.Clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.Clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.Clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.Clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.Clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.Clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.Clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.Clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.Clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.Clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.Clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.Clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.Clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.Clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.Clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.Clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.Clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.Clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.Clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.Clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.Clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.Clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.Clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.Clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.Clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.Clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.Clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.Clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.Clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.Clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.Clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.Clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.Clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.Clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.Clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.Clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.Clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.Clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.Clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetForgeFedPush(v vocab.ForgeFedPush) { - this.Clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.Clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.Clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.Clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsDescribesProperty) SetTootEmoji(v vocab.TootEmoji) { - this.Clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsDescribesProperty) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.Clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on describes property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_doc.go deleted file mode 100644 index 3ebc4df92..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyduration contains the implementation for the duration property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyduration diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_pkg.go deleted file mode 100644 index 3c6cd3f05..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyduration - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go deleted file mode 100644 index 556d583b3..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyduration - -import ( - "fmt" - duration "github.com/go-fed/activity/streams/values/duration" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" - "time" -) - -// ActivityStreamsDurationProperty is the functional property "duration". It is -// permitted to be a single default-valued value type. -type ActivityStreamsDurationProperty struct { - xmlschemaDurationMember time.Duration - hasDurationMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeDurationProperty creates a "duration" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeDurationProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsDurationProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "duration" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "duration") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsDurationProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := duration.DeserializeDuration(i); err == nil { - this := &ActivityStreamsDurationProperty{ - alias: alias, - hasDurationMember: true, - xmlschemaDurationMember: v, - } - return this, nil - } - this := &ActivityStreamsDurationProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsDurationProperty creates a new duration property. -func NewActivityStreamsDurationProperty() *ActivityStreamsDurationProperty { - return &ActivityStreamsDurationProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaDuration -// afterwards will return false. -func (this *ActivityStreamsDurationProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasDurationMember = false -} - -// Get returns the value of this property. When IsXMLSchemaDuration returns false, -// Get will return any arbitrary value. -func (this ActivityStreamsDurationProperty) Get() time.Duration { - return this.xmlschemaDurationMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsDurationProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsDurationProperty) HasAny() bool { - return this.IsXMLSchemaDuration() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsDurationProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaDuration returns true if this property is set and not an IRI. -func (this ActivityStreamsDurationProperty) IsXMLSchemaDuration() bool { - return this.hasDurationMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsDurationProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsDurationProperty) KindIndex() int { - if this.IsXMLSchemaDuration() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsDurationProperty) LessThan(o vocab.ActivityStreamsDurationProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaDuration() && !o.IsXMLSchemaDuration() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaDuration() && !o.IsXMLSchemaDuration() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaDuration() && o.IsXMLSchemaDuration() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return duration.LessDuration(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "duration". -func (this ActivityStreamsDurationProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "duration" - } else { - return "duration" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsDurationProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaDuration() { - return duration.SerializeDuration(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaDuration afterwards -// will return true. -func (this *ActivityStreamsDurationProperty) Set(v time.Duration) { - this.Clear() - this.xmlschemaDurationMember = v - this.hasDurationMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsDurationProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_doc.go deleted file mode 100644 index 171486c68..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyendtime contains the implementation for the endTime property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyendtime diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go deleted file mode 100644 index fbe2fc7a3..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyendtime - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go deleted file mode 100644 index 9e89dafb8..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyendtime - -import ( - "fmt" - datetime "github.com/go-fed/activity/streams/values/dateTime" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" - "time" -) - -// ActivityStreamsEndTimeProperty is the functional property "endTime". It is -// permitted to be a single default-valued value type. -type ActivityStreamsEndTimeProperty struct { - xmlschemaDateTimeMember time.Time - hasDateTimeMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeEndTimeProperty creates a "endTime" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeEndTimeProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsEndTimeProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "endTime" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "endTime") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsEndTimeProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := datetime.DeserializeDateTime(i); err == nil { - this := &ActivityStreamsEndTimeProperty{ - alias: alias, - hasDateTimeMember: true, - xmlschemaDateTimeMember: v, - } - return this, nil - } - this := &ActivityStreamsEndTimeProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsEndTimeProperty creates a new endTime property. -func NewActivityStreamsEndTimeProperty() *ActivityStreamsEndTimeProperty { - return &ActivityStreamsEndTimeProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaDateTime -// afterwards will return false. -func (this *ActivityStreamsEndTimeProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasDateTimeMember = false -} - -// Get returns the value of this property. When IsXMLSchemaDateTime returns false, -// Get will return any arbitrary value. -func (this ActivityStreamsEndTimeProperty) Get() time.Time { - return this.xmlschemaDateTimeMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsEndTimeProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsEndTimeProperty) HasAny() bool { - return this.IsXMLSchemaDateTime() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsEndTimeProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaDateTime returns true if this property is set and not an IRI. -func (this ActivityStreamsEndTimeProperty) IsXMLSchemaDateTime() bool { - return this.hasDateTimeMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsEndTimeProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsEndTimeProperty) KindIndex() int { - if this.IsXMLSchemaDateTime() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsEndTimeProperty) LessThan(o vocab.ActivityStreamsEndTimeProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaDateTime() && o.IsXMLSchemaDateTime() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return datetime.LessDateTime(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "endTime". -func (this ActivityStreamsEndTimeProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "endTime" - } else { - return "endTime" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsEndTimeProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaDateTime() { - return datetime.SerializeDateTime(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaDateTime afterwards -// will return true. -func (this *ActivityStreamsEndTimeProperty) Set(v time.Time) { - this.Clear() - this.xmlschemaDateTimeMember = v - this.hasDateTimeMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsEndTimeProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_doc.go deleted file mode 100644 index cde426655..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyfirst contains the implementation for the first property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyfirst diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_pkg.go deleted file mode 100644 index 1e738bb60..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_pkg.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfirst - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go deleted file mode 100644 index d63164b87..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go +++ /dev/null @@ -1,359 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfirst - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsFirstProperty is the functional property "first". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsFirstProperty struct { - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeFirstProperty creates a "first" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeFirstProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsFirstProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "first" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "first") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsFirstProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFirstProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFirstProperty{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFirstProperty{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFirstProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsFirstProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsFirstProperty creates a new first property. -func NewActivityStreamsFirstProperty() *ActivityStreamsFirstProperty { - return &ActivityStreamsFirstProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsFirstProperty) Clear() { - this.activitystreamsCollectionPageMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsFirstProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsFirstProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsFirstProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsFirstProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsFirstProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsFirstProperty) GetType() vocab.Type { - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsFirstProperty) HasAny() bool { - return this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsFirstProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsFirstProperty) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsFirstProperty) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsFirstProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsFirstProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsFirstProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsFirstProperty) KindIndex() int { - if this.IsActivityStreamsCollectionPage() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsMention() { - return 2 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 3 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsFirstProperty) LessThan(o vocab.ActivityStreamsFirstProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "first". -func (this ActivityStreamsFirstProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "first" - } else { - return "first" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsFirstProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsFirstProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsFirstProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.Clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsFirstProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.Clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsFirstProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsFirstProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsFirstProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on first property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_doc.go deleted file mode 100644 index 72d13b9e4..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyfollowers contains the implementation for the followers -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyfollowers diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_pkg.go deleted file mode 100644 index 01d7ea18b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_pkg.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfollowers - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go deleted file mode 100644 index 19eb0a6c9..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go +++ /dev/null @@ -1,360 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfollowers - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsFollowersProperty is the functional property "followers". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsFollowersProperty struct { - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeFollowersProperty creates a "followers" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeFollowersProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsFollowersProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "followers" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "followers") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsFollowersProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFollowersProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFollowersProperty{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFollowersProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFollowersProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsFollowersProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsFollowersProperty creates a new followers property. -func NewActivityStreamsFollowersProperty() *ActivityStreamsFollowersProperty { - return &ActivityStreamsFollowersProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsFollowersProperty) Clear() { - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsFollowersProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsFollowersProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsFollowersProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsFollowersProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsFollowersProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsFollowersProperty) GetType() vocab.Type { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsFollowersProperty) HasAny() bool { - return this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsFollowersProperty) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsFollowersProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsFollowersProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsFollowersProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsFollowersProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsFollowersProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsFollowersProperty) KindIndex() int { - if this.IsActivityStreamsOrderedCollection() { - return 0 - } - if this.IsActivityStreamsCollection() { - return 1 - } - if this.IsActivityStreamsCollectionPage() { - return 2 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 3 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsFollowersProperty) LessThan(o vocab.ActivityStreamsFollowersProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "followers". -func (this ActivityStreamsFollowersProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "followers" - } else { - return "followers" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsFollowersProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsFollowersProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.Clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsFollowersProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsFollowersProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsFollowersProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsFollowersProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsFollowersProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on followers property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_doc.go deleted file mode 100644 index b9a9f1d29..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyfollowing contains the implementation for the following -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyfollowing diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_pkg.go deleted file mode 100644 index 632b76f3f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_pkg.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfollowing - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go deleted file mode 100644 index 31a1edfc9..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go +++ /dev/null @@ -1,360 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfollowing - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsFollowingProperty is the functional property "following". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsFollowingProperty struct { - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeFollowingProperty creates a "following" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeFollowingProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsFollowingProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "following" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "following") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsFollowingProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFollowingProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFollowingProperty{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFollowingProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFollowingProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsFollowingProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsFollowingProperty creates a new following property. -func NewActivityStreamsFollowingProperty() *ActivityStreamsFollowingProperty { - return &ActivityStreamsFollowingProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsFollowingProperty) Clear() { - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsFollowingProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsFollowingProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsFollowingProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsFollowingProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsFollowingProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsFollowingProperty) GetType() vocab.Type { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsFollowingProperty) HasAny() bool { - return this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsFollowingProperty) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsFollowingProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsFollowingProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsFollowingProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsFollowingProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsFollowingProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsFollowingProperty) KindIndex() int { - if this.IsActivityStreamsOrderedCollection() { - return 0 - } - if this.IsActivityStreamsCollection() { - return 1 - } - if this.IsActivityStreamsCollectionPage() { - return 2 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 3 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsFollowingProperty) LessThan(o vocab.ActivityStreamsFollowingProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "following". -func (this ActivityStreamsFollowingProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "following" - } else { - return "following" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsFollowingProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsFollowingProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.Clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsFollowingProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsFollowingProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsFollowingProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsFollowingProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsFollowingProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on following property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_doc.go deleted file mode 100644 index 93b382c03..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyformertype contains the implementation for the formerType -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyformertype diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go deleted file mode 100644 index 899db00d8..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go +++ /dev/null @@ -1,257 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyformertype - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go deleted file mode 100644 index d4dd9bb70..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go +++ /dev/null @@ -1,6940 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyformertype - -import ( - "fmt" - string1 "github.com/go-fed/activity/streams/values/string" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsFormerTypePropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsFormerTypePropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - xmlschemaStringMember string - hasStringMember bool - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsFormerTypeProperty -} - -// NewActivityStreamsFormerTypePropertyIterator creates a new -// ActivityStreamsFormerType property. -func NewActivityStreamsFormerTypePropertyIterator() *ActivityStreamsFormerTypePropertyIterator { - return &ActivityStreamsFormerTypePropertyIterator{alias: ""} -} - -// deserializeActivityStreamsFormerTypePropertyIterator creates an iterator from -// an element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsFormerTypePropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } - this := &ActivityStreamsFormerTypePropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// GetXMLSchemaString returns the value of this property. When IsXMLSchemaString -// returns false, GetXMLSchemaString will return an arbitrary value. -func (this ActivityStreamsFormerTypePropertyIterator) GetXMLSchemaString() string { - return this.xmlschemaStringMember -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsXMLSchemaString() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsFormerTypePropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// IsXMLSchemaString returns true if this property has a type of "string". When -// true, use the GetXMLSchemaString and SetXMLSchemaString methods to access -// and set this property. -func (this ActivityStreamsFormerTypePropertyIterator) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsFormerTypePropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsXMLSchemaString() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMove() { - return 33 - } - if this.IsActivityStreamsNote() { - return 34 - } - if this.IsActivityStreamsOffer() { - return 35 - } - if this.IsActivityStreamsOrderedCollection() { - return 36 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 37 - } - if this.IsActivityStreamsOrganization() { - return 38 - } - if this.IsActivityStreamsPage() { - return 39 - } - if this.IsActivityStreamsPerson() { - return 40 - } - if this.IsActivityStreamsPlace() { - return 41 - } - if this.IsActivityStreamsProfile() { - return 42 - } - if this.IsForgeFedPush() { - return 43 - } - if this.IsActivityStreamsQuestion() { - return 44 - } - if this.IsActivityStreamsRead() { - return 45 - } - if this.IsActivityStreamsReject() { - return 46 - } - if this.IsActivityStreamsRelationship() { - return 47 - } - if this.IsActivityStreamsRemove() { - return 48 - } - if this.IsForgeFedRepository() { - return 49 - } - if this.IsActivityStreamsService() { - return 50 - } - if this.IsActivityStreamsTentativeAccept() { - return 51 - } - if this.IsActivityStreamsTentativeReject() { - return 52 - } - if this.IsForgeFedTicket() { - return 53 - } - if this.IsForgeFedTicketDependency() { - return 54 - } - if this.IsActivityStreamsTombstone() { - return 55 - } - if this.IsActivityStreamsTravel() { - return 56 - } - if this.IsActivityStreamsUndo() { - return 57 - } - if this.IsActivityStreamsUpdate() { - return 58 - } - if this.IsActivityStreamsVideo() { - return 59 - } - if this.IsActivityStreamsView() { - return 60 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityStreamsFormerTypePropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsXMLSchemaString() { - return string1.LessString(this.GetXMLSchemaString(), o.GetXMLSchemaString()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsFormerType". -func (this ActivityStreamsFormerTypePropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsFormerType" - } else { - return "ActivityStreamsFormerType" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsFormerTypePropertyIterator) Next() vocab.ActivityStreamsFormerTypePropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsFormerTypePropertyIterator) Prev() vocab.ActivityStreamsFormerTypePropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsFormerType property: %T", t) -} - -// SetXMLSchemaString sets the value of this property. Calling IsXMLSchemaString -// afterwards returns true. -func (this *ActivityStreamsFormerTypePropertyIterator) SetXMLSchemaString(v string) { - this.clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsFormerTypePropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.hasStringMember = false - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsXMLSchemaString() { - return string1.SerializeString(this.GetXMLSchemaString()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsFormerTypeProperty is the non-functional property "formerType". -// It is permitted to have one or more values, and of different value types. -type ActivityStreamsFormerTypeProperty struct { - properties []*ActivityStreamsFormerTypePropertyIterator - alias string -} - -// DeserializeFormerTypeProperty creates a "formerType" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeFormerTypeProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFormerTypeProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "formerType" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "formerType") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsFormerTypeProperty{ - alias: alias, - properties: []*ActivityStreamsFormerTypePropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsFormerTypePropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsFormerTypePropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsFormerTypeProperty creates a new formerType property. -func NewActivityStreamsFormerTypeProperty() *ActivityStreamsFormerTypeProperty { - return &ActivityStreamsFormerTypeProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "formerType". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "formerType". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "formerType". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "formerType". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "formerType". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "formerType". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "formerType". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "formerType". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "formerType". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "formerType". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "formerType". Invalidates -// iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "formerType". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "formerType". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "formerType". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "formerType". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "formerType". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "formerType". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "formerType". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "formerType". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "formerType". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "formerType". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "formerType" -func (this *ActivityStreamsFormerTypeProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "formerType". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "formerType". Invalidates iterators that are traversing using -// Prev. Returns an error if the type is not a valid one to set for this -// property. -func (this *ActivityStreamsFormerTypeProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// AppendXMLSchemaString appends a string value to the back of a list of the -// property "formerType". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsFormerTypeProperty) AppendXMLSchemaString(v string) { - this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: this.Len(), - parent: this, - xmlschemaStringMember: v, - }) -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsFormerTypeProperty) At(index int) vocab.ActivityStreamsFormerTypePropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsFormerTypeProperty) Begin() vocab.ActivityStreamsFormerTypePropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsFormerTypeProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsFormerTypeProperty) End() vocab.ActivityStreamsFormerTypePropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "formerType". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "formerType". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "formerType". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "formerType". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "formerType". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "formerType". Existing elements -// at that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "formerType". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "formerType". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "formerType". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "formerType". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "formerType". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "formerType". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "formerType". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "formerType". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "formerType". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsFormerTypeProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// InsertXMLSchemaString inserts a string value at the specified index for a -// property "formerType". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) InsertXMLSchemaString(idx int, v string) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsFormerTypeProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsFormerTypeProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "formerType" property. -func (this ActivityStreamsFormerTypeProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsFormerTypeProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetXMLSchemaString() - rhs := this.properties[j].GetXMLSchemaString() - return string1.LessString(lhs, rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsFormerTypeProperty) LessThan(o vocab.ActivityStreamsFormerTypeProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("formerType") with any alias. -func (this ActivityStreamsFormerTypeProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "formerType" - } else { - return "formerType" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "formerType". Invalidates all -// iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "formerType". Invalidates all -// iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "formerType". -func (this *ActivityStreamsFormerTypeProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "formerType". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsFormerTypeProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// PrependXMLSchemaString prepends a string value to the front of a list of the -// property "formerType". Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) PrependXMLSchemaString(v string) { - this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ - alias: this.alias, - hasStringMember: true, - myIdx: 0, - parent: this, - xmlschemaStringMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Remove deletes an element at the specified index from a list of the property -// "formerType", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsFormerTypePropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsFormerTypeProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "formerType". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "formerType". Panics if the index -// is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "formerType". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "formerType". Panics if the -// index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "formerType". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "formerType". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "formerType". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsFormerTypeProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "formerType". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "formerType". Panics if the index is out of bounds. -func (this *ActivityStreamsFormerTypeProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "formerType". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsFormerTypeProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "formerType". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "formerType". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. Panics if the index is out of -// bounds. -func (this *ActivityStreamsFormerTypeProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// SetXMLSchemaString sets a string value to be at the specified index for the -// property "formerType". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsFormerTypeProperty) SetXMLSchemaString(idx int, v string) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } -} - -// Swap swaps the location of values at two indices for the "formerType" property. -func (this ActivityStreamsFormerTypeProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_doc.go deleted file mode 100644 index 4142ee42f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertygenerator contains the implementation for the generator -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertygenerator diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_pkg.go deleted file mode 100644 index b388dfef7..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertygenerator - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go deleted file mode 100644 index 074ed84d6..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go +++ /dev/null @@ -1,7044 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertygenerator - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsGeneratorPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsGeneratorPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsGeneratorProperty -} - -// NewActivityStreamsGeneratorPropertyIterator creates a new -// ActivityStreamsGenerator property. -func NewActivityStreamsGeneratorPropertyIterator() *ActivityStreamsGeneratorPropertyIterator { - return &ActivityStreamsGeneratorPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsGeneratorPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsGeneratorPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsGeneratorPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsGeneratorPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsGeneratorPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsGeneratorPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsGeneratorPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsGeneratorPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivityStreamsGeneratorPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsGenerator". -func (this ActivityStreamsGeneratorPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsGenerator" - } else { - return "ActivityStreamsGenerator" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsGeneratorPropertyIterator) Next() vocab.ActivityStreamsGeneratorPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsGeneratorPropertyIterator) Prev() vocab.ActivityStreamsGeneratorPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsGeneratorPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsGenerator property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsGeneratorPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsGeneratorProperty is the non-functional property "generator". It -// is permitted to have one or more values, and of different value types. -type ActivityStreamsGeneratorProperty struct { - properties []*ActivityStreamsGeneratorPropertyIterator - alias string -} - -// DeserializeGeneratorProperty creates a "generator" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeGeneratorProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "generator" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "generator") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsGeneratorProperty{ - alias: alias, - properties: []*ActivityStreamsGeneratorPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsGeneratorPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsGeneratorPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsGeneratorProperty creates a new generator property. -func NewActivityStreamsGeneratorProperty() *ActivityStreamsGeneratorProperty { - return &ActivityStreamsGeneratorProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "generator". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "generator". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "generator". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "generator". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "generator". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "generator". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "generator". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "generator". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "generator". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "generator". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "generator". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "generator". Invalidates -// iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "generator". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "generator". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "generator". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "generator". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "generator". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "generator". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "generator". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "generator". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "generator". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsGeneratorProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "generator". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "generator" -func (this *ActivityStreamsGeneratorProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "generator". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsGeneratorProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "generator". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsGeneratorProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "generator". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsGeneratorProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsGeneratorProperty) At(index int) vocab.ActivityStreamsGeneratorPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsGeneratorProperty) Begin() vocab.ActivityStreamsGeneratorPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsGeneratorProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsGeneratorProperty) End() vocab.ActivityStreamsGeneratorPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "generator". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "generator". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "generator". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "generator". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "generator". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "generator". Existing elements -// at that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "generator". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "generator". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "generator". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "generator". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "generator". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "generator". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "generator". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "generator". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "generator". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "generator". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsGeneratorProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsGeneratorProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsGeneratorProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "generator" property. -func (this ActivityStreamsGeneratorProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsGeneratorProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsGeneratorProperty) LessThan(o vocab.ActivityStreamsGeneratorProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("generator") with any alias. -func (this ActivityStreamsGeneratorProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "generator" - } else { - return "generator" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "generator". Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "generator". Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "generator". -func (this *ActivityStreamsGeneratorProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "generator". Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "generator". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsGeneratorProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "generator", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsGeneratorPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsGeneratorProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "generator". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "generator". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "generator". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "generator". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "generator". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "generator". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "generator". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "generator". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "generator". Panics if the index -// is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "generator". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "generator". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "generator". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "generator". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "generator". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "generator". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "generator". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsGeneratorProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "generator". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "generator". Panics if the index is out of bounds. -func (this *ActivityStreamsGeneratorProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "generator". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsGeneratorProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "generator". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsGeneratorProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "generator". Invalidates all iterators. Returns an error if the type is not -// a valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsGeneratorProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsGeneratorPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "generator" property. -func (this ActivityStreamsGeneratorProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_doc.go deleted file mode 100644 index c6d74624e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyheight contains the implementation for the height property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyheight diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_pkg.go deleted file mode 100644 index c27687c4e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyheight - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go deleted file mode 100644 index c467bd65a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyheight - -import ( - "fmt" - nonnegativeinteger "github.com/go-fed/activity/streams/values/nonNegativeInteger" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsHeightProperty is the functional property "height". It is -// permitted to be a single default-valued value type. -type ActivityStreamsHeightProperty struct { - xmlschemaNonNegativeIntegerMember int - hasNonNegativeIntegerMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeHeightProperty creates a "height" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeHeightProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsHeightProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "height" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "height") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsHeightProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err == nil { - this := &ActivityStreamsHeightProperty{ - alias: alias, - hasNonNegativeIntegerMember: true, - xmlschemaNonNegativeIntegerMember: v, - } - return this, nil - } - this := &ActivityStreamsHeightProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsHeightProperty creates a new height property. -func NewActivityStreamsHeightProperty() *ActivityStreamsHeightProperty { - return &ActivityStreamsHeightProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling -// IsXMLSchemaNonNegativeInteger afterwards will return false. -func (this *ActivityStreamsHeightProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasNonNegativeIntegerMember = false -} - -// Get returns the value of this property. When IsXMLSchemaNonNegativeInteger -// returns false, Get will return any arbitrary value. -func (this ActivityStreamsHeightProperty) Get() int { - return this.xmlschemaNonNegativeIntegerMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsHeightProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsHeightProperty) HasAny() bool { - return this.IsXMLSchemaNonNegativeInteger() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsHeightProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaNonNegativeInteger returns true if this property is set and not an -// IRI. -func (this ActivityStreamsHeightProperty) IsXMLSchemaNonNegativeInteger() bool { - return this.hasNonNegativeIntegerMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsHeightProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsHeightProperty) KindIndex() int { - if this.IsXMLSchemaNonNegativeInteger() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsHeightProperty) LessThan(o vocab.ActivityStreamsHeightProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaNonNegativeInteger() && o.IsXMLSchemaNonNegativeInteger() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return nonnegativeinteger.LessNonNegativeInteger(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "height". -func (this ActivityStreamsHeightProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "height" - } else { - return "height" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsHeightProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaNonNegativeInteger() { - return nonnegativeinteger.SerializeNonNegativeInteger(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaNonNegativeInteger -// afterwards will return true. -func (this *ActivityStreamsHeightProperty) Set(v int) { - this.Clear() - this.xmlschemaNonNegativeIntegerMember = v - this.hasNonNegativeIntegerMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsHeightProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_doc.go deleted file mode 100644 index d9f6aab6e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyhref contains the implementation for the href property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyhref diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_pkg.go deleted file mode 100644 index 7b6ec2810..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyhref - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go deleted file mode 100644 index 3cd3ad8b2..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyhref - -import ( - "fmt" - anyuri "github.com/go-fed/activity/streams/values/anyURI" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsHrefProperty is the functional property "href". It is permitted -// to be a single nilable value type. -type ActivityStreamsHrefProperty struct { - xmlschemaAnyURIMember *url.URL - unknown interface{} - alias string -} - -// DeserializeHrefProperty creates a "href" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeHrefProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsHrefProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "href" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "href") - } - i, ok := m[propName] - - if ok { - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &ActivityStreamsHrefProperty{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } - this := &ActivityStreamsHrefProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsHrefProperty creates a new href property. -func NewActivityStreamsHrefProperty() *ActivityStreamsHrefProperty { - return &ActivityStreamsHrefProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI -// afterwards will return false. -func (this *ActivityStreamsHrefProperty) Clear() { - this.unknown = nil - this.xmlschemaAnyURIMember = nil -} - -// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, -// Get will return any arbitrary value. -func (this ActivityStreamsHrefProperty) Get() *url.URL { - return this.xmlschemaAnyURIMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsHrefProperty) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsHrefProperty) HasAny() bool { - return this.IsXMLSchemaAnyURI() -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsHrefProperty) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. -func (this ActivityStreamsHrefProperty) IsXMLSchemaAnyURI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsHrefProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsHrefProperty) KindIndex() int { - if this.IsXMLSchemaAnyURI() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsHrefProperty) LessThan(o vocab.ActivityStreamsHrefProperty) bool { - if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaAnyURI() && o.IsXMLSchemaAnyURI() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return anyuri.LessAnyURI(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "href". -func (this ActivityStreamsHrefProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "href" - } else { - return "href" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsHrefProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaAnyURI() { - return anyuri.SerializeAnyURI(this.Get()) - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will -// return true. -func (this *ActivityStreamsHrefProperty) Set(v *url.URL) { - this.Clear() - this.xmlschemaAnyURIMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsHrefProperty) SetIRI(v *url.URL) { - this.Clear() - this.Set(v) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_doc.go deleted file mode 100644 index 7c75ed765..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyhreflang contains the implementation for the hreflang property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyhreflang diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go deleted file mode 100644 index f6cfedd44..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyhreflang - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go deleted file mode 100644 index a87c7da6b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyhreflang - -import ( - "fmt" - bcp47 "github.com/go-fed/activity/streams/values/bcp47" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsHreflangProperty is the functional property "hreflang". It is -// permitted to be a single default-valued value type. -type ActivityStreamsHreflangProperty struct { - rfcBcp47Member string - hasBcp47Member bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeHreflangProperty creates a "hreflang" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeHreflangProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsHreflangProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "hreflang" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "hreflang") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsHreflangProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := bcp47.DeserializeBcp47(i); err == nil { - this := &ActivityStreamsHreflangProperty{ - alias: alias, - hasBcp47Member: true, - rfcBcp47Member: v, - } - return this, nil - } - this := &ActivityStreamsHreflangProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsHreflangProperty creates a new hreflang property. -func NewActivityStreamsHreflangProperty() *ActivityStreamsHreflangProperty { - return &ActivityStreamsHreflangProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsRFCBcp47 afterwards -// will return false. -func (this *ActivityStreamsHreflangProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasBcp47Member = false -} - -// Get returns the value of this property. When IsRFCBcp47 returns false, Get will -// return any arbitrary value. -func (this ActivityStreamsHreflangProperty) Get() string { - return this.rfcBcp47Member -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsHreflangProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsHreflangProperty) HasAny() bool { - return this.IsRFCBcp47() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsHreflangProperty) IsIRI() bool { - return this.iri != nil -} - -// IsRFCBcp47 returns true if this property is set and not an IRI. -func (this ActivityStreamsHreflangProperty) IsRFCBcp47() bool { - return this.hasBcp47Member -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsHreflangProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsHreflangProperty) KindIndex() int { - if this.IsRFCBcp47() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsHreflangProperty) LessThan(o vocab.ActivityStreamsHreflangProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsRFCBcp47() && !o.IsRFCBcp47() { - // Both are unknowns. - return false - } else if this.IsRFCBcp47() && !o.IsRFCBcp47() { - // Values are always greater than unknown values. - return false - } else if !this.IsRFCBcp47() && o.IsRFCBcp47() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return bcp47.LessBcp47(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "hreflang". -func (this ActivityStreamsHreflangProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "hreflang" - } else { - return "hreflang" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsHreflangProperty) Serialize() (interface{}, error) { - if this.IsRFCBcp47() { - return bcp47.SerializeBcp47(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsRFCBcp47 afterwards will return -// true. -func (this *ActivityStreamsHreflangProperty) Set(v string) { - this.Clear() - this.rfcBcp47Member = v - this.hasBcp47Member = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsHreflangProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_doc.go deleted file mode 100644 index 088b11899..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyicon contains the implementation for the icon property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyicon diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_pkg.go deleted file mode 100644 index f2cae8533..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_pkg.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyicon - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go deleted file mode 100644 index 7d1b7b868..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go +++ /dev/null @@ -1,824 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyicon - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsIconPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsIconPropertyIterator struct { - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsMentionMember vocab.ActivityStreamsMention - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsIconProperty -} - -// NewActivityStreamsIconPropertyIterator creates a new ActivityStreamsIcon -// property. -func NewActivityStreamsIconPropertyIterator() *ActivityStreamsIconPropertyIterator { - return &ActivityStreamsIconPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsIconPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsIconPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsIconPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsIconPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsIconPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsIconPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsIconPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsIconPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsIconPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsIconPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsIconPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsIconPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsIconPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsIconPropertyIterator) HasAny() bool { - return this.IsActivityStreamsImage() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsMention() || - this.iri != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsIconPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsIconPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsIconPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsIconPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsIconPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsIconPropertyIterator) KindIndex() int { - if this.IsActivityStreamsImage() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsMention() { - return 2 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsIconPropertyIterator) LessThan(o vocab.ActivityStreamsIconPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsIcon". -func (this ActivityStreamsIconPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsIcon" - } else { - return "ActivityStreamsIcon" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsIconPropertyIterator) Next() vocab.ActivityStreamsIconPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsIconPropertyIterator) Prev() vocab.ActivityStreamsIconPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsIconPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsIconPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsIconPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsIconPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsIconPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsIcon property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsIconPropertyIterator) clear() { - this.activitystreamsImageMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsMentionMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsIconPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsIconProperty is the non-functional property "icon". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsIconProperty struct { - properties []*ActivityStreamsIconPropertyIterator - alias string -} - -// DeserializeIconProperty creates a "icon" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeIconProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsIconProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "icon" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "icon") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsIconProperty{ - alias: alias, - properties: []*ActivityStreamsIconPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsIconPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsIconPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsIconProperty creates a new icon property. -func NewActivityStreamsIconProperty() *ActivityStreamsIconProperty { - return &ActivityStreamsIconProperty{alias: ""} -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "icon". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsIconProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsIconPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "icon". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsIconProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsIconPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "icon". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsIconProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsIconPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "icon" -func (this *ActivityStreamsIconProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsIconPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "icon". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsIconProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsIconPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsIconProperty) At(index int) vocab.ActivityStreamsIconPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsIconProperty) Begin() vocab.ActivityStreamsIconPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsIconProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsIconProperty) End() vocab.ActivityStreamsIconPropertyIterator { - return nil -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "icon". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsIconProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsIconPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "icon". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsIconProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsIconPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "icon". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsIconProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsIconPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "icon". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsIconProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsIconPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "icon". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. -func (this *ActivityStreamsIconProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsIconPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsIconProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsIconProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "icon" property. -func (this ActivityStreamsIconProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsIconProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsIconProperty) LessThan(o vocab.ActivityStreamsIconProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("icon") with any alias. -func (this ActivityStreamsIconProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "icon" - } else { - return "icon" - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "icon". Invalidates all iterators. -func (this *ActivityStreamsIconProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsIconPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "icon". Invalidates all iterators. -func (this *ActivityStreamsIconProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsIconPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "icon". Invalidates all iterators. -func (this *ActivityStreamsIconProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsIconPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property "icon". -func (this *ActivityStreamsIconProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsIconPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "icon". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. -func (this *ActivityStreamsIconProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsIconPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsIconPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "icon", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsIconProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsIconPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsIconProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "icon". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsIconProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsIconPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "icon". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsIconProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsIconPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "icon". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsIconProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsIconPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property "icon". -// Panics if the index is out of bounds. -func (this *ActivityStreamsIconProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsIconPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "icon". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsIconProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsIconPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "icon" property. -func (this ActivityStreamsIconProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_doc.go deleted file mode 100644 index 322c67066..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyimage contains the implementation for the image property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyimage diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_pkg.go deleted file mode 100644 index 7451bcb23..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_pkg.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyimage - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go deleted file mode 100644 index 6c971cc5a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go +++ /dev/null @@ -1,824 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyimage - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsImagePropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsImagePropertyIterator struct { - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsMentionMember vocab.ActivityStreamsMention - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsImageProperty -} - -// NewActivityStreamsImagePropertyIterator creates a new ActivityStreamsImage -// property. -func NewActivityStreamsImagePropertyIterator() *ActivityStreamsImagePropertyIterator { - return &ActivityStreamsImagePropertyIterator{alias: ""} -} - -// deserializeActivityStreamsImagePropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsImagePropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsImagePropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsImagePropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsImagePropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsImagePropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsImagePropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsImagePropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsImagePropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsImagePropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsImagePropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsImagePropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsImagePropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsImagePropertyIterator) HasAny() bool { - return this.IsActivityStreamsImage() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsMention() || - this.iri != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsImagePropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsImagePropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsImagePropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsImagePropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsImagePropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsImagePropertyIterator) KindIndex() int { - if this.IsActivityStreamsImage() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsMention() { - return 2 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsImagePropertyIterator) LessThan(o vocab.ActivityStreamsImagePropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsImage". -func (this ActivityStreamsImagePropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsImage" - } else { - return "ActivityStreamsImage" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsImagePropertyIterator) Next() vocab.ActivityStreamsImagePropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsImagePropertyIterator) Prev() vocab.ActivityStreamsImagePropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsImagePropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsImagePropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsImagePropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsImagePropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsImagePropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsImage property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsImagePropertyIterator) clear() { - this.activitystreamsImageMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsMentionMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsImagePropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsImageProperty is the non-functional property "image". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsImageProperty struct { - properties []*ActivityStreamsImagePropertyIterator - alias string -} - -// DeserializeImageProperty creates a "image" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeImageProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsImageProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "image" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "image") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsImageProperty{ - alias: alias, - properties: []*ActivityStreamsImagePropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsImagePropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsImagePropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsImageProperty creates a new image property. -func NewActivityStreamsImageProperty() *ActivityStreamsImageProperty { - return &ActivityStreamsImageProperty{alias: ""} -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "image". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsImageProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsImagePropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "image". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsImageProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsImagePropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "image". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsImageProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsImagePropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "image" -func (this *ActivityStreamsImageProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsImagePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "image". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsImageProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsImagePropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsImageProperty) At(index int) vocab.ActivityStreamsImagePropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsImageProperty) Begin() vocab.ActivityStreamsImagePropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsImageProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsImageProperty) End() vocab.ActivityStreamsImagePropertyIterator { - return nil -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "image". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsImageProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsImagePropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "image". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsImageProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsImagePropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "image". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsImageProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsImagePropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "image". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsImageProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsImagePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "image". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsImageProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsImagePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsImageProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsImageProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "image" property. -func (this ActivityStreamsImageProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsImageProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsImageProperty) LessThan(o vocab.ActivityStreamsImageProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("image") with any alias. -func (this ActivityStreamsImageProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "image" - } else { - return "image" - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "image". Invalidates all iterators. -func (this *ActivityStreamsImageProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsImagePropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "image". Invalidates all iterators. -func (this *ActivityStreamsImageProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsImagePropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "image". Invalidates all iterators. -func (this *ActivityStreamsImageProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsImagePropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property "image". -func (this *ActivityStreamsImageProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsImagePropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "image". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsImageProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsImagePropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsImagePropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "image", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsImageProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsImagePropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsImageProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "image". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsImageProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsImagePropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "image". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsImageProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsImagePropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "image". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsImageProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsImagePropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property "image". -// Panics if the index is out of bounds. -func (this *ActivityStreamsImageProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsImagePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "image". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsImageProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsImagePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "image" property. -func (this ActivityStreamsImageProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_doc.go deleted file mode 100644 index b3f67f050..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyinbox contains the implementation for the inbox property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyinbox diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go deleted file mode 100644 index fd89c2c62..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyinbox - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go deleted file mode 100644 index d93011f27..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go +++ /dev/null @@ -1,268 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyinbox - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsInboxProperty is the functional property "inbox". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsInboxProperty struct { - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeInboxProperty creates a "inbox" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeInboxProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsInboxProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "inbox" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "inbox") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsInboxProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInboxProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInboxProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsInboxProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsInboxProperty creates a new inbox property. -func NewActivityStreamsInboxProperty() *ActivityStreamsInboxProperty { - return &ActivityStreamsInboxProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsInboxProperty) Clear() { - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsInboxProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsInboxProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsInboxProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsInboxProperty) GetType() vocab.Type { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsInboxProperty) HasAny() bool { - return this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsInboxProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsInboxProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsInboxProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsInboxProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsInboxProperty) KindIndex() int { - if this.IsActivityStreamsOrderedCollection() { - return 0 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 1 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsInboxProperty) LessThan(o vocab.ActivityStreamsInboxProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "inbox". -func (this ActivityStreamsInboxProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "inbox" - } else { - return "inbox" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsInboxProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsInboxProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsInboxProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsInboxProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsInboxProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on inbox property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_doc.go deleted file mode 100644 index b4a0ba151..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyinreplyto contains the implementation for the inReplyTo -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyinreplyto diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go deleted file mode 100644 index 28597162f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyinreplyto - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go deleted file mode 100644 index 02ca1883b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go +++ /dev/null @@ -1,7044 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyinreplyto - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsInReplyToPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsInReplyToPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsInReplyToProperty -} - -// NewActivityStreamsInReplyToPropertyIterator creates a new -// ActivityStreamsInReplyTo property. -func NewActivityStreamsInReplyToPropertyIterator() *ActivityStreamsInReplyToPropertyIterator { - return &ActivityStreamsInReplyToPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsInReplyToPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsInReplyToPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsInReplyToPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsInReplyToPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsInReplyToPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsInReplyToPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsInReplyToPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsInReplyToPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivityStreamsInReplyToPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsInReplyTo". -func (this ActivityStreamsInReplyToPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsInReplyTo" - } else { - return "ActivityStreamsInReplyTo" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsInReplyToPropertyIterator) Next() vocab.ActivityStreamsInReplyToPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsInReplyToPropertyIterator) Prev() vocab.ActivityStreamsInReplyToPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsInReplyToPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsInReplyTo property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsInReplyToPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsInReplyToProperty is the non-functional property "inReplyTo". It -// is permitted to have one or more values, and of different value types. -type ActivityStreamsInReplyToProperty struct { - properties []*ActivityStreamsInReplyToPropertyIterator - alias string -} - -// DeserializeInReplyToProperty creates a "inReplyTo" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeInReplyToProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "inReplyTo" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "inReplyTo") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsInReplyToProperty{ - alias: alias, - properties: []*ActivityStreamsInReplyToPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsInReplyToPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsInReplyToPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsInReplyToProperty creates a new inReplyTo property. -func NewActivityStreamsInReplyToProperty() *ActivityStreamsInReplyToProperty { - return &ActivityStreamsInReplyToProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "inReplyTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "inReplyTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "inReplyTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "inReplyTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "inReplyTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "inReplyTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "inReplyTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "inReplyTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "inReplyTo". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "inReplyTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "inReplyTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "inReplyTo". Invalidates -// iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "inReplyTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "inReplyTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "inReplyTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "inReplyTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "inReplyTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "inReplyTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "inReplyTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "inReplyTo". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "inReplyTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInReplyToProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "inReplyTo". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "inReplyTo" -func (this *ActivityStreamsInReplyToProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "inReplyTo". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInReplyToProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "inReplyTo". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInReplyToProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "inReplyTo". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsInReplyToProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsInReplyToProperty) At(index int) vocab.ActivityStreamsInReplyToPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsInReplyToProperty) Begin() vocab.ActivityStreamsInReplyToPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsInReplyToProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsInReplyToProperty) End() vocab.ActivityStreamsInReplyToPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "inReplyTo". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "inReplyTo". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "inReplyTo". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "inReplyTo". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "inReplyTo". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "inReplyTo". Existing elements -// at that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "inReplyTo". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "inReplyTo". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "inReplyTo". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "inReplyTo". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "inReplyTo". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "inReplyTo". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "inReplyTo". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "inReplyTo". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "inReplyTo". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsInReplyToProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsInReplyToProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsInReplyToProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "inReplyTo" property. -func (this ActivityStreamsInReplyToProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsInReplyToProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsInReplyToProperty) LessThan(o vocab.ActivityStreamsInReplyToProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("inReplyTo") with any alias. -func (this ActivityStreamsInReplyToProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "inReplyTo" - } else { - return "inReplyTo" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "inReplyTo". Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "inReplyTo". Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "inReplyTo". -func (this *ActivityStreamsInReplyToProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "inReplyTo". Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "inReplyTo". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsInReplyToProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "inReplyTo", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsInReplyToPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsInReplyToProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "inReplyTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "inReplyTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "inReplyTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "inReplyTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "inReplyTo". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "inReplyTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "inReplyTo". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "inReplyTo". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "inReplyTo". Panics if the index -// is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "inReplyTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "inReplyTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "inReplyTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "inReplyTo". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "inReplyTo". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "inReplyTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "inReplyTo". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInReplyToProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "inReplyTo". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "inReplyTo". Panics if the index is out of bounds. -func (this *ActivityStreamsInReplyToProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "inReplyTo". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInReplyToProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "inReplyTo". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInReplyToProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "inReplyTo". Invalidates all iterators. Returns an error if the type is not -// a valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsInReplyToProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsInReplyToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "inReplyTo" property. -func (this ActivityStreamsInReplyToProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_doc.go deleted file mode 100644 index e8f2992a6..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyinstrument contains the implementation for the instrument -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyinstrument diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go deleted file mode 100644 index 7db2733ab..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyinstrument - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go deleted file mode 100644 index 5ec8a82c6..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go +++ /dev/null @@ -1,7047 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyinstrument - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsInstrumentPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsInstrumentPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsInstrumentProperty -} - -// NewActivityStreamsInstrumentPropertyIterator creates a new -// ActivityStreamsInstrument property. -func NewActivityStreamsInstrumentPropertyIterator() *ActivityStreamsInstrumentPropertyIterator { - return &ActivityStreamsInstrumentPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsInstrumentPropertyIterator creates an iterator from -// an element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsInstrumentPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsInstrumentPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsInstrumentPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsInstrumentPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsInstrumentPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsInstrumentPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsInstrumentPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityStreamsInstrumentPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsInstrument". -func (this ActivityStreamsInstrumentPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsInstrument" - } else { - return "ActivityStreamsInstrument" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsInstrumentPropertyIterator) Next() vocab.ActivityStreamsInstrumentPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsInstrumentPropertyIterator) Prev() vocab.ActivityStreamsInstrumentPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsInstrumentPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsInstrument property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsInstrumentPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsInstrumentProperty is the non-functional property "instrument". -// It is permitted to have one or more values, and of different value types. -type ActivityStreamsInstrumentProperty struct { - properties []*ActivityStreamsInstrumentPropertyIterator - alias string -} - -// DeserializeInstrumentProperty creates a "instrument" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeInstrumentProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "instrument" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "instrument") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsInstrumentProperty{ - alias: alias, - properties: []*ActivityStreamsInstrumentPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsInstrumentPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsInstrumentPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsInstrumentProperty creates a new instrument property. -func NewActivityStreamsInstrumentProperty() *ActivityStreamsInstrumentProperty { - return &ActivityStreamsInstrumentProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "instrument". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "instrument". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "instrument". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "instrument". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "instrument". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "instrument". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "instrument". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "instrument". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "instrument". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "instrument". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "instrument". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "instrument". Invalidates -// iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "instrument". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "instrument". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "instrument". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "instrument". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "instrument". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "instrument". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "instrument". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "instrument". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "instrument". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInstrumentProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "instrument". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "instrument" -func (this *ActivityStreamsInstrumentProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "instrument". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsInstrumentProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "instrument". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsInstrumentProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "instrument". Invalidates iterators that are traversing using -// Prev. Returns an error if the type is not a valid one to set for this -// property. -func (this *ActivityStreamsInstrumentProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsInstrumentProperty) At(index int) vocab.ActivityStreamsInstrumentPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsInstrumentProperty) Begin() vocab.ActivityStreamsInstrumentPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsInstrumentProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsInstrumentProperty) End() vocab.ActivityStreamsInstrumentPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "instrument". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "instrument". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "instrument". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "instrument". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "instrument". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "instrument". Existing elements -// at that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "instrument". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "instrument". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "instrument". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "instrument". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "instrument". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "instrument". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "instrument". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "instrument". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "instrument". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "instrument". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsInstrumentProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsInstrumentProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsInstrumentProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "instrument" property. -func (this ActivityStreamsInstrumentProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsInstrumentProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsInstrumentProperty) LessThan(o vocab.ActivityStreamsInstrumentProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("instrument") with any alias. -func (this ActivityStreamsInstrumentProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "instrument" - } else { - return "instrument" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "instrument". Invalidates all -// iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "instrument". Invalidates all -// iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "instrument". -func (this *ActivityStreamsInstrumentProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "instrument". Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "instrument". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsInstrumentProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "instrument", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsInstrumentPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsInstrumentProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "instrument". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "instrument". Panics if the index -// is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "instrument". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "instrument". Panics if the -// index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "instrument". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "instrument". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "instrument". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInstrumentProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "instrument". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsInstrumentProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "instrument". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "instrument". Panics if the index is out of bounds. -func (this *ActivityStreamsInstrumentProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "instrument". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsInstrumentProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "instrument". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsInstrumentProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "instrument". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. Panics if the index is out of -// bounds. -func (this *ActivityStreamsInstrumentProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsInstrumentPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "instrument" property. -func (this ActivityStreamsInstrumentProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_doc.go deleted file mode 100644 index 8c35ce49d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyitems contains the implementation for the items property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyitems diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_pkg.go deleted file mode 100644 index 35216bfa9..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyitems - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go deleted file mode 100644 index bdc6a457c..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go +++ /dev/null @@ -1,7030 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyitems - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsItemsPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsItemsPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsItemsProperty -} - -// NewActivityStreamsItemsPropertyIterator creates a new ActivityStreamsItems -// property. -func NewActivityStreamsItemsPropertyIterator() *ActivityStreamsItemsPropertyIterator { - return &ActivityStreamsItemsPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsItemsPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsItemsPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsItemsPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsItemsPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsItemsPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsItemsPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsItemsPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsItemsPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsItemsPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsItemsPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsItemsPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsItemsPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsItemsPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStreamsItemsPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsItems". -func (this ActivityStreamsItemsPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsItems" - } else { - return "ActivityStreamsItems" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsItemsPropertyIterator) Next() vocab.ActivityStreamsItemsPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsItemsPropertyIterator) Prev() vocab.ActivityStreamsItemsPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsItemsPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsItems property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsItemsPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsItemsProperty is the non-functional property "items". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsItemsProperty struct { - properties []*ActivityStreamsItemsPropertyIterator - alias string -} - -// DeserializeItemsProperty creates a "items" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeItemsProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsItemsProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "items" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "items") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsItemsProperty{ - alias: alias, - properties: []*ActivityStreamsItemsPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsItemsPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsItemsPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsItemsProperty creates a new items property. -func NewActivityStreamsItemsProperty() *ActivityStreamsItemsProperty { - return &ActivityStreamsItemsProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "items". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "items". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "items". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "items". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "items". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "items". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "items". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "items". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "items". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "items". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "items". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "items". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsItemsProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "items" -func (this *ActivityStreamsItemsProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "items". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsItemsProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "items". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsItemsProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsItemsProperty) At(index int) vocab.ActivityStreamsItemsPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsItemsProperty) Begin() vocab.ActivityStreamsItemsPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsItemsProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsItemsProperty) End() vocab.ActivityStreamsItemsPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "items". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "items". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "items". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "items". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "items". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "items". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "items". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "items". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "items". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "items". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "items". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "items". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "items". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "items". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "items". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "items". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "items". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "items". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "items". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "items". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "items". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "items". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsItemsProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsItemsProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsItemsProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "items" property. -func (this ActivityStreamsItemsProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsItemsProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsItemsProperty) LessThan(o vocab.ActivityStreamsItemsProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("items") with any alias. -func (this ActivityStreamsItemsProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "items" - } else { - return "items" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "items". Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "items". Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property "items". -func (this *ActivityStreamsItemsProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "items". Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "items". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsItemsProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsItemsPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "items", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsItemsPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsItemsProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "items". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "items". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "items". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "items". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "items". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "items". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "items". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "items". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "items". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "items". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "items". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "items". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "items". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "items". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "items". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "items". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "items". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsItemsProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "items". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property "items". -// Panics if the index is out of bounds. -func (this *ActivityStreamsItemsProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "items". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsItemsProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "items". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsItemsProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "items". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsItemsProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "items" property. -func (this ActivityStreamsItemsProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_doc.go deleted file mode 100644 index 90dd7f279..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertylast contains the implementation for the last property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertylast diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_pkg.go deleted file mode 100644 index 34002889d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_pkg.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertylast - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go deleted file mode 100644 index b50c32554..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go +++ /dev/null @@ -1,359 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertylast - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsLastProperty is the functional property "last". It is permitted -// to be one of multiple value types. At most, one type of value can be -// present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsLastProperty struct { - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeLastProperty creates a "last" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeLastProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsLastProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "last" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "last") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsLastProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLastProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLastProperty{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLastProperty{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLastProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsLastProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsLastProperty creates a new last property. -func NewActivityStreamsLastProperty() *ActivityStreamsLastProperty { - return &ActivityStreamsLastProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsLastProperty) Clear() { - this.activitystreamsCollectionPageMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsLastProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsLastProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsLastProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsLastProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsLastProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsLastProperty) GetType() vocab.Type { - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsLastProperty) HasAny() bool { - return this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsLastProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsLastProperty) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsLastProperty) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsLastProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsLastProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsLastProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsLastProperty) KindIndex() int { - if this.IsActivityStreamsCollectionPage() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsMention() { - return 2 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 3 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsLastProperty) LessThan(o vocab.ActivityStreamsLastProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "last". -func (this ActivityStreamsLastProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "last" - } else { - return "last" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsLastProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsLastProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsLastProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.Clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsLastProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.Clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsLastProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsLastProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsLastProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on last property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_doc.go deleted file mode 100644 index 88315b8ad..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertylatitude contains the implementation for the latitude property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertylatitude diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go deleted file mode 100644 index 116607c10..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertylatitude - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go deleted file mode 100644 index d5dd400b0..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertylatitude - -import ( - "fmt" - float "github.com/go-fed/activity/streams/values/float" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsLatitudeProperty is the functional property "latitude". It is -// permitted to be a single default-valued value type. -type ActivityStreamsLatitudeProperty struct { - xmlschemaFloatMember float64 - hasFloatMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeLatitudeProperty creates a "latitude" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeLatitudeProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsLatitudeProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "latitude" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "latitude") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsLatitudeProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := float.DeserializeFloat(i); err == nil { - this := &ActivityStreamsLatitudeProperty{ - alias: alias, - hasFloatMember: true, - xmlschemaFloatMember: v, - } - return this, nil - } - this := &ActivityStreamsLatitudeProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsLatitudeProperty creates a new latitude property. -func NewActivityStreamsLatitudeProperty() *ActivityStreamsLatitudeProperty { - return &ActivityStreamsLatitudeProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaFloat -// afterwards will return false. -func (this *ActivityStreamsLatitudeProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasFloatMember = false -} - -// Get returns the value of this property. When IsXMLSchemaFloat returns false, -// Get will return any arbitrary value. -func (this ActivityStreamsLatitudeProperty) Get() float64 { - return this.xmlschemaFloatMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsLatitudeProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsLatitudeProperty) HasAny() bool { - return this.IsXMLSchemaFloat() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsLatitudeProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaFloat returns true if this property is set and not an IRI. -func (this ActivityStreamsLatitudeProperty) IsXMLSchemaFloat() bool { - return this.hasFloatMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsLatitudeProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsLatitudeProperty) KindIndex() int { - if this.IsXMLSchemaFloat() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsLatitudeProperty) LessThan(o vocab.ActivityStreamsLatitudeProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaFloat() && o.IsXMLSchemaFloat() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return float.LessFloat(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "latitude". -func (this ActivityStreamsLatitudeProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "latitude" - } else { - return "latitude" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsLatitudeProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaFloat() { - return float.SerializeFloat(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaFloat afterwards will -// return true. -func (this *ActivityStreamsLatitudeProperty) Set(v float64) { - this.Clear() - this.xmlschemaFloatMember = v - this.hasFloatMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsLatitudeProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_doc.go deleted file mode 100644 index 1164385d9..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyliked contains the implementation for the liked property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyliked diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_pkg.go deleted file mode 100644 index f4837d33c..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_pkg.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyliked - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go deleted file mode 100644 index ea632584f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go +++ /dev/null @@ -1,360 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyliked - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsLikedProperty is the functional property "liked". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsLikedProperty struct { - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeLikedProperty creates a "liked" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeLikedProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsLikedProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "liked" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "liked") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsLikedProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLikedProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLikedProperty{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLikedProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLikedProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsLikedProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsLikedProperty creates a new liked property. -func NewActivityStreamsLikedProperty() *ActivityStreamsLikedProperty { - return &ActivityStreamsLikedProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsLikedProperty) Clear() { - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsLikedProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsLikedProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsLikedProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsLikedProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsLikedProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsLikedProperty) GetType() vocab.Type { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsLikedProperty) HasAny() bool { - return this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsLikedProperty) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsLikedProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsLikedProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsLikedProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsLikedProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsLikedProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsLikedProperty) KindIndex() int { - if this.IsActivityStreamsOrderedCollection() { - return 0 - } - if this.IsActivityStreamsCollection() { - return 1 - } - if this.IsActivityStreamsCollectionPage() { - return 2 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 3 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsLikedProperty) LessThan(o vocab.ActivityStreamsLikedProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "liked". -func (this ActivityStreamsLikedProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "liked" - } else { - return "liked" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsLikedProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsLikedProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.Clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsLikedProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsLikedProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsLikedProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsLikedProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsLikedProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on liked property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_doc.go deleted file mode 100644 index 6e04f8efc..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertylikes contains the implementation for the likes property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertylikes diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_pkg.go deleted file mode 100644 index fa01eb3d0..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_pkg.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertylikes - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go deleted file mode 100644 index 6acdadd57..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go +++ /dev/null @@ -1,360 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertylikes - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsLikesProperty is the functional property "likes". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsLikesProperty struct { - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeLikesProperty creates a "likes" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeLikesProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsLikesProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "likes" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "likes") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsLikesProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLikesProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLikesProperty{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLikesProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLikesProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsLikesProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsLikesProperty creates a new likes property. -func NewActivityStreamsLikesProperty() *ActivityStreamsLikesProperty { - return &ActivityStreamsLikesProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsLikesProperty) Clear() { - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsLikesProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsLikesProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsLikesProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsLikesProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsLikesProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsLikesProperty) GetType() vocab.Type { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsLikesProperty) HasAny() bool { - return this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsLikesProperty) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsLikesProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsLikesProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsLikesProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsLikesProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsLikesProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsLikesProperty) KindIndex() int { - if this.IsActivityStreamsOrderedCollection() { - return 0 - } - if this.IsActivityStreamsCollection() { - return 1 - } - if this.IsActivityStreamsCollectionPage() { - return 2 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 3 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsLikesProperty) LessThan(o vocab.ActivityStreamsLikesProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "likes". -func (this ActivityStreamsLikesProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "likes" - } else { - return "likes" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsLikesProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsLikesProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.Clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsLikesProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsLikesProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsLikesProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsLikesProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsLikesProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on likes property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_doc.go deleted file mode 100644 index cbc195292..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertylocation contains the implementation for the location property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertylocation diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_pkg.go deleted file mode 100644 index 946433a6d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertylocation - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go deleted file mode 100644 index 1644d8e09..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go +++ /dev/null @@ -1,7042 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertylocation - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsLocationPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsLocationPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsLocationProperty -} - -// NewActivityStreamsLocationPropertyIterator creates a new -// ActivityStreamsLocation property. -func NewActivityStreamsLocationPropertyIterator() *ActivityStreamsLocationPropertyIterator { - return &ActivityStreamsLocationPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsLocationPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsLocationPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsLocationPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsLocationPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsLocationPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsLocationPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsLocationPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsLocationPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsLocationPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsLocationPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsLocationPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsLocationPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsLocationPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStreamsLocationPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsLocation". -func (this ActivityStreamsLocationPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsLocation" - } else { - return "ActivityStreamsLocation" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsLocationPropertyIterator) Next() vocab.ActivityStreamsLocationPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsLocationPropertyIterator) Prev() vocab.ActivityStreamsLocationPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsLocationPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsLocation property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsLocationPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsLocationProperty is the non-functional property "location". It -// is permitted to have one or more values, and of different value types. -type ActivityStreamsLocationProperty struct { - properties []*ActivityStreamsLocationPropertyIterator - alias string -} - -// DeserializeLocationProperty creates a "location" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeLocationProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLocationProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "location" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "location") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsLocationProperty{ - alias: alias, - properties: []*ActivityStreamsLocationPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsLocationPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsLocationPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsLocationProperty creates a new location property. -func NewActivityStreamsLocationProperty() *ActivityStreamsLocationProperty { - return &ActivityStreamsLocationProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "location". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "location". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "location". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "location". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "location". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "location". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "location". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "location". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "location". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "location". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "location". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "location". Invalidates -// iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "location". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "location". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "location". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "location". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "location". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "location". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "location". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "location". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "location". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsLocationProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "location". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "location" -func (this *ActivityStreamsLocationProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "location". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsLocationProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "location". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsLocationProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "location". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsLocationProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsLocationProperty) At(index int) vocab.ActivityStreamsLocationPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsLocationProperty) Begin() vocab.ActivityStreamsLocationPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsLocationProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsLocationProperty) End() vocab.ActivityStreamsLocationPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "location". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "location". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "location". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "location". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "location". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "location". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "location". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "location". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "location". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "location". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "location". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "location". Existing elements -// at that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "location". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "location". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "location". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "location". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "location". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "location". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "location". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "location". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "location". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "location". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "location". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "location". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "location". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "location". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "location". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "location". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsLocationProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsLocationProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsLocationProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "location" property. -func (this ActivityStreamsLocationProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsLocationProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsLocationProperty) LessThan(o vocab.ActivityStreamsLocationProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("location") with any alias. -func (this ActivityStreamsLocationProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "location" - } else { - return "location" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "location". Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "location". Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "location". -func (this *ActivityStreamsLocationProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "location". Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "location". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsLocationProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsLocationPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "location", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsLocationPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsLocationProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "location". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "location". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "location". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "location". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "location". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "location". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "location". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "location". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "location". Panics if the index -// is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "location". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "location". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "location". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "location". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "location". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "location". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "location". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "location". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsLocationProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "location". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsLocationProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "location". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "location". Panics if the index is out of bounds. -func (this *ActivityStreamsLocationProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "location". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "location". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsLocationProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "location". Invalidates all iterators. Returns an error if the type is not -// a valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsLocationProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsLocationPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "location" property. -func (this ActivityStreamsLocationProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_doc.go deleted file mode 100644 index 71299ec90..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertylongitude contains the implementation for the longitude -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertylongitude diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go deleted file mode 100644 index 4a54b000f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertylongitude - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go deleted file mode 100644 index b05ffe8af..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertylongitude - -import ( - "fmt" - float "github.com/go-fed/activity/streams/values/float" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsLongitudeProperty is the functional property "longitude". It is -// permitted to be a single default-valued value type. -type ActivityStreamsLongitudeProperty struct { - xmlschemaFloatMember float64 - hasFloatMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeLongitudeProperty creates a "longitude" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeLongitudeProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsLongitudeProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "longitude" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "longitude") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsLongitudeProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := float.DeserializeFloat(i); err == nil { - this := &ActivityStreamsLongitudeProperty{ - alias: alias, - hasFloatMember: true, - xmlschemaFloatMember: v, - } - return this, nil - } - this := &ActivityStreamsLongitudeProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsLongitudeProperty creates a new longitude property. -func NewActivityStreamsLongitudeProperty() *ActivityStreamsLongitudeProperty { - return &ActivityStreamsLongitudeProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaFloat -// afterwards will return false. -func (this *ActivityStreamsLongitudeProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasFloatMember = false -} - -// Get returns the value of this property. When IsXMLSchemaFloat returns false, -// Get will return any arbitrary value. -func (this ActivityStreamsLongitudeProperty) Get() float64 { - return this.xmlschemaFloatMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsLongitudeProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsLongitudeProperty) HasAny() bool { - return this.IsXMLSchemaFloat() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsLongitudeProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaFloat returns true if this property is set and not an IRI. -func (this ActivityStreamsLongitudeProperty) IsXMLSchemaFloat() bool { - return this.hasFloatMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsLongitudeProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsLongitudeProperty) KindIndex() int { - if this.IsXMLSchemaFloat() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsLongitudeProperty) LessThan(o vocab.ActivityStreamsLongitudeProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaFloat() && o.IsXMLSchemaFloat() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return float.LessFloat(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "longitude". -func (this ActivityStreamsLongitudeProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "longitude" - } else { - return "longitude" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsLongitudeProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaFloat() { - return float.SerializeFloat(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaFloat afterwards will -// return true. -func (this *ActivityStreamsLongitudeProperty) Set(v float64) { - this.Clear() - this.xmlschemaFloatMember = v - this.hasFloatMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsLongitudeProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_doc.go deleted file mode 100644 index 7b3064f48..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertymanuallyapprovesfollowers contains the implementation for the -// manuallyApprovesFollowers property. All applications are strongly -// encouraged to use the interface instead of this concrete definition. The -// interfaces allow applications to consume only the types and properties -// needed and be independent of the go-fed implementation if another -// alternative implementation is created. This package is code-generated and -// subject to the same license as the go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertymanuallyapprovesfollowers diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_pkg.go deleted file mode 100644 index 9783436ed..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertymanuallyapprovesfollowers - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go deleted file mode 100644 index e0356a2cf..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go +++ /dev/null @@ -1,206 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertymanuallyapprovesfollowers - -import ( - "fmt" - boolean "github.com/go-fed/activity/streams/values/boolean" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsManuallyApprovesFollowersProperty is the functional property -// "manuallyApprovesFollowers". It is permitted to be a single default-valued -// value type. -type ActivityStreamsManuallyApprovesFollowersProperty struct { - xmlschemaBooleanMember bool - hasBooleanMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeManuallyApprovesFollowersProperty creates a -// "manuallyApprovesFollowers" property from an interface representation that -// has been unmarshalled from a text or binary format. -func DeserializeManuallyApprovesFollowersProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsManuallyApprovesFollowersProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "manuallyApprovesFollowers" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "manuallyApprovesFollowers") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsManuallyApprovesFollowersProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := boolean.DeserializeBoolean(i); err == nil { - this := &ActivityStreamsManuallyApprovesFollowersProperty{ - alias: alias, - hasBooleanMember: true, - xmlschemaBooleanMember: v, - } - return this, nil - } - this := &ActivityStreamsManuallyApprovesFollowersProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsManuallyApprovesFollowersProperty creates a new -// manuallyApprovesFollowers property. -func NewActivityStreamsManuallyApprovesFollowersProperty() *ActivityStreamsManuallyApprovesFollowersProperty { - return &ActivityStreamsManuallyApprovesFollowersProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaBoolean -// afterwards will return false. -func (this *ActivityStreamsManuallyApprovesFollowersProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasBooleanMember = false -} - -// Get returns the value of this property. When IsXMLSchemaBoolean returns false, -// Get will return any arbitrary value. -func (this ActivityStreamsManuallyApprovesFollowersProperty) Get() bool { - return this.xmlschemaBooleanMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsManuallyApprovesFollowersProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsManuallyApprovesFollowersProperty) HasAny() bool { - return this.IsXMLSchemaBoolean() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsManuallyApprovesFollowersProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaBoolean returns true if this property is set and not an IRI. -func (this ActivityStreamsManuallyApprovesFollowersProperty) IsXMLSchemaBoolean() bool { - return this.hasBooleanMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsManuallyApprovesFollowersProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsManuallyApprovesFollowersProperty) KindIndex() int { - if this.IsXMLSchemaBoolean() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsManuallyApprovesFollowersProperty) LessThan(o vocab.ActivityStreamsManuallyApprovesFollowersProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaBoolean() && o.IsXMLSchemaBoolean() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return boolean.LessBoolean(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "manuallyApprovesFollowers". -func (this ActivityStreamsManuallyApprovesFollowersProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "manuallyApprovesFollowers" - } else { - return "manuallyApprovesFollowers" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsManuallyApprovesFollowersProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaBoolean() { - return boolean.SerializeBoolean(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaBoolean afterwards will -// return true. -func (this *ActivityStreamsManuallyApprovesFollowersProperty) Set(v bool) { - this.Clear() - this.xmlschemaBooleanMember = v - this.hasBooleanMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsManuallyApprovesFollowersProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_doc.go deleted file mode 100644 index e212ac5b6..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertymediatype contains the implementation for the mediaType -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertymediatype diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go deleted file mode 100644 index a337f7e57..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertymediatype - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go deleted file mode 100644 index 8c8eefef3..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertymediatype - -import ( - "fmt" - rfc2045 "github.com/go-fed/activity/streams/values/rfc2045" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsMediaTypeProperty is the functional property "mediaType". It is -// permitted to be a single default-valued value type. -type ActivityStreamsMediaTypeProperty struct { - rfcRfc2045Member string - hasRfc2045Member bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeMediaTypeProperty creates a "mediaType" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeMediaTypeProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsMediaTypeProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "mediaType" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "mediaType") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsMediaTypeProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := rfc2045.DeserializeRfc2045(i); err == nil { - this := &ActivityStreamsMediaTypeProperty{ - alias: alias, - hasRfc2045Member: true, - rfcRfc2045Member: v, - } - return this, nil - } - this := &ActivityStreamsMediaTypeProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsMediaTypeProperty creates a new mediaType property. -func NewActivityStreamsMediaTypeProperty() *ActivityStreamsMediaTypeProperty { - return &ActivityStreamsMediaTypeProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsRFCRfc2045 afterwards -// will return false. -func (this *ActivityStreamsMediaTypeProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasRfc2045Member = false -} - -// Get returns the value of this property. When IsRFCRfc2045 returns false, Get -// will return any arbitrary value. -func (this ActivityStreamsMediaTypeProperty) Get() string { - return this.rfcRfc2045Member -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsMediaTypeProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsMediaTypeProperty) HasAny() bool { - return this.IsRFCRfc2045() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsMediaTypeProperty) IsIRI() bool { - return this.iri != nil -} - -// IsRFCRfc2045 returns true if this property is set and not an IRI. -func (this ActivityStreamsMediaTypeProperty) IsRFCRfc2045() bool { - return this.hasRfc2045Member -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsMediaTypeProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsMediaTypeProperty) KindIndex() int { - if this.IsRFCRfc2045() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsMediaTypeProperty) LessThan(o vocab.ActivityStreamsMediaTypeProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsRFCRfc2045() && !o.IsRFCRfc2045() { - // Both are unknowns. - return false - } else if this.IsRFCRfc2045() && !o.IsRFCRfc2045() { - // Values are always greater than unknown values. - return false - } else if !this.IsRFCRfc2045() && o.IsRFCRfc2045() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return rfc2045.LessRfc2045(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "mediaType". -func (this ActivityStreamsMediaTypeProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "mediaType" - } else { - return "mediaType" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsMediaTypeProperty) Serialize() (interface{}, error) { - if this.IsRFCRfc2045() { - return rfc2045.SerializeRfc2045(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsRFCRfc2045 afterwards will -// return true. -func (this *ActivityStreamsMediaTypeProperty) Set(v string) { - this.Clear() - this.rfcRfc2045Member = v - this.hasRfc2045Member = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsMediaTypeProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_doc.go deleted file mode 100644 index 7082b2e8a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyname contains the implementation for the name property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyname diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_pkg.go deleted file mode 100644 index cd9cb9f38..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyname - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go deleted file mode 100644 index 69d9cfbce..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go +++ /dev/null @@ -1,667 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyname - -import ( - "fmt" - langstring "github.com/go-fed/activity/streams/values/langString" - string1 "github.com/go-fed/activity/streams/values/string" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsNamePropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsNamePropertyIterator struct { - xmlschemaStringMember string - hasStringMember bool - rdfLangStringMember map[string]string - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsNameProperty -} - -// NewActivityStreamsNamePropertyIterator creates a new ActivityStreamsName -// property. -func NewActivityStreamsNamePropertyIterator() *ActivityStreamsNamePropertyIterator { - return &ActivityStreamsNamePropertyIterator{alias: ""} -} - -// deserializeActivityStreamsNamePropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsNamePropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsNamePropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsNamePropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &ActivityStreamsNamePropertyIterator{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } else if v, err := langstring.DeserializeLangString(i); err == nil { - this := &ActivityStreamsNamePropertyIterator{ - alias: alias, - rdfLangStringMember: v, - } - return this, nil - } - this := &ActivityStreamsNamePropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsNamePropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetLanguage returns the value for the specified BCP47 language code, or an -// empty string if it is either not a language map or no value is present. -func (this ActivityStreamsNamePropertyIterator) GetLanguage(bcp47 string) string { - if this.rdfLangStringMember == nil { - return "" - } else if v, ok := this.rdfLangStringMember[bcp47]; ok { - return v - } else { - return "" - } -} - -// GetRDFLangString returns the value of this property. When IsRDFLangString -// returns false, GetRDFLangString will return an arbitrary value. -func (this ActivityStreamsNamePropertyIterator) GetRDFLangString() map[string]string { - return this.rdfLangStringMember -} - -// GetXMLSchemaString returns the value of this property. When IsXMLSchemaString -// returns false, GetXMLSchemaString will return an arbitrary value. -func (this ActivityStreamsNamePropertyIterator) GetXMLSchemaString() string { - return this.xmlschemaStringMember -} - -// HasAny returns true if any of the values are set, except for the natural -// language map. When true, the specific has, getter, and setter methods may -// be used to determine what kind of value there is to access and set this -// property. To determine if the property was set as a natural language map, -// use the IsRDFLangString method instead. -func (this ActivityStreamsNamePropertyIterator) HasAny() bool { - return this.IsXMLSchemaString() || - this.IsRDFLangString() || - this.iri != nil -} - -// HasLanguage returns true if the natural language map has an entry for the -// specified BCP47 language code. -func (this ActivityStreamsNamePropertyIterator) HasLanguage(bcp47 string) bool { - if this.rdfLangStringMember == nil { - return false - } else { - _, ok := this.rdfLangStringMember[bcp47] - return ok - } -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsNamePropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsRDFLangString returns true if this property has a type of "langString". When -// true, use the GetRDFLangString and SetRDFLangString methods to access and -// set this property.. To determine if the property was set as a natural -// language map, use the IsRDFLangString method instead. -func (this ActivityStreamsNamePropertyIterator) IsRDFLangString() bool { - return this.rdfLangStringMember != nil -} - -// IsXMLSchemaString returns true if this property has a type of "string". When -// true, use the GetXMLSchemaString and SetXMLSchemaString methods to access -// and set this property.. To determine if the property was set as a natural -// language map, use the IsRDFLangString method instead. -func (this ActivityStreamsNamePropertyIterator) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsNamePropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsNamePropertyIterator) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsRDFLangString() { - return 1 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsNamePropertyIterator) LessThan(o vocab.ActivityStreamsNamePropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsXMLSchemaString() { - return string1.LessString(this.GetXMLSchemaString(), o.GetXMLSchemaString()) - } else if this.IsRDFLangString() { - return langstring.LessLangString(this.GetRDFLangString(), o.GetRDFLangString()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsName". -func (this ActivityStreamsNamePropertyIterator) Name() string { - if this.IsRDFLangString() { - return "ActivityStreamsNameMap" - } else { - return "ActivityStreamsName" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsNamePropertyIterator) Next() vocab.ActivityStreamsNamePropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsNamePropertyIterator) Prev() vocab.ActivityStreamsNamePropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsNamePropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetLanguage sets the value for the specified BCP47 language code. -func (this *ActivityStreamsNamePropertyIterator) SetLanguage(bcp47, value string) { - this.hasStringMember = false - this.rdfLangStringMember = nil - this.unknown = nil - this.iri = nil - if this.rdfLangStringMember == nil { - this.rdfLangStringMember = make(map[string]string) - } - this.rdfLangStringMember[bcp47] = value -} - -// SetRDFLangString sets the value of this property and clears the natural -// language map. Calling IsRDFLangString afterwards will return true. Calling -// IsRDFLangString afterwards returns false. -func (this *ActivityStreamsNamePropertyIterator) SetRDFLangString(v map[string]string) { - this.clear() - this.rdfLangStringMember = v -} - -// SetXMLSchemaString sets the value of this property and clears the natural -// language map. Calling IsXMLSchemaString afterwards will return true. -// Calling IsRDFLangString afterwards returns false. -func (this *ActivityStreamsNamePropertyIterator) SetXMLSchemaString(v string) { - this.clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// clear ensures no value and no language map for this property is set. Calling -// HasAny or any of the 'Is' methods afterwards will return false. -func (this *ActivityStreamsNamePropertyIterator) clear() { - this.hasStringMember = false - this.rdfLangStringMember = nil - this.unknown = nil - this.iri = nil - this.rdfLangStringMember = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsNamePropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.GetXMLSchemaString()) - } else if this.IsRDFLangString() { - return langstring.SerializeLangString(this.GetRDFLangString()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsNameProperty is the non-functional property "name". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsNameProperty struct { - properties []*ActivityStreamsNamePropertyIterator - alias string -} - -// DeserializeNameProperty creates a "name" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeNameProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsNameProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "name" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "name") - } - i, ok := m[propName] - if !ok { - // Attempt to find the map instead. - i, ok = m[propName+"Map"] - } - if ok { - this := &ActivityStreamsNameProperty{ - alias: alias, - properties: []*ActivityStreamsNamePropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsNamePropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsNamePropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsNameProperty creates a new name property. -func NewActivityStreamsNameProperty() *ActivityStreamsNameProperty { - return &ActivityStreamsNameProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property "name" -func (this *ActivityStreamsNameProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsNamePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendRDFLangString appends a langString value to the back of a list of the -// property "name". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsNameProperty) AppendRDFLangString(v map[string]string) { - this.properties = append(this.properties, &ActivityStreamsNamePropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - rdfLangStringMember: v, - }) -} - -// AppendXMLSchemaString appends a string value to the back of a list of the -// property "name". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsNameProperty) AppendXMLSchemaString(v string) { - this.properties = append(this.properties, &ActivityStreamsNamePropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: this.Len(), - parent: this, - xmlschemaStringMember: v, - }) -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsNameProperty) At(index int) vocab.ActivityStreamsNamePropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsNameProperty) Begin() vocab.ActivityStreamsNamePropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsNameProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsNameProperty) End() vocab.ActivityStreamsNamePropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property "name". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsNameProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsNamePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertRDFLangString inserts a langString value at the specified index for a -// property "name". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsNameProperty) InsertRDFLangString(idx int, v map[string]string) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsNamePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - rdfLangStringMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaString inserts a string value at the specified index for a -// property "name". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsNameProperty) InsertXMLSchemaString(idx int, v string) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsNamePropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsNameProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsNameProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "name" property. -func (this ActivityStreamsNameProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsNameProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetXMLSchemaString() - rhs := this.properties[j].GetXMLSchemaString() - return string1.LessString(lhs, rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetRDFLangString() - rhs := this.properties[j].GetRDFLangString() - return langstring.LessLangString(lhs, rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsNameProperty) LessThan(o vocab.ActivityStreamsNameProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("name") with any alias. -func (this ActivityStreamsNameProperty) Name() string { - if this.Len() == 1 && this.At(0).IsRDFLangString() { - return "nameMap" - } else { - return "name" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property "name". -func (this *ActivityStreamsNameProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsNamePropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependRDFLangString prepends a langString value to the front of a list of the -// property "name". Invalidates all iterators. -func (this *ActivityStreamsNameProperty) PrependRDFLangString(v map[string]string) { - this.properties = append([]*ActivityStreamsNamePropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - rdfLangStringMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaString prepends a string value to the front of a list of the -// property "name". Invalidates all iterators. -func (this *ActivityStreamsNameProperty) PrependXMLSchemaString(v string) { - this.properties = append([]*ActivityStreamsNamePropertyIterator{{ - alias: this.alias, - hasStringMember: true, - myIdx: 0, - parent: this, - xmlschemaStringMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Remove deletes an element at the specified index from a list of the property -// "name", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsNameProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsNamePropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsNameProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetIRI sets an IRI value to be at the specified index for the property "name". -// Panics if the index is out of bounds. -func (this *ActivityStreamsNameProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsNamePropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetRDFLangString sets a langString value to be at the specified index for the -// property "name". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsNameProperty) SetRDFLangString(idx int, v map[string]string) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsNamePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - rdfLangStringMember: v, - } -} - -// SetXMLSchemaString sets a string value to be at the specified index for the -// property "name". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsNameProperty) SetXMLSchemaString(idx int, v string) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsNamePropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } -} - -// Swap swaps the location of values at two indices for the "name" property. -func (this ActivityStreamsNameProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_doc.go deleted file mode 100644 index e70c87624..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertynext contains the implementation for the next property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertynext diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_pkg.go deleted file mode 100644 index 20e814b77..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_pkg.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertynext - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go deleted file mode 100644 index 6727d280f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go +++ /dev/null @@ -1,359 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertynext - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsNextProperty is the functional property "next". It is permitted -// to be one of multiple value types. At most, one type of value can be -// present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsNextProperty struct { - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeNextProperty creates a "next" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeNextProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsNextProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "next" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "next") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsNextProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsNextProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsNextProperty{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsNextProperty{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsNextProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsNextProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsNextProperty creates a new next property. -func NewActivityStreamsNextProperty() *ActivityStreamsNextProperty { - return &ActivityStreamsNextProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsNextProperty) Clear() { - this.activitystreamsCollectionPageMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsNextProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsNextProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsNextProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsNextProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsNextProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsNextProperty) GetType() vocab.Type { - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsNextProperty) HasAny() bool { - return this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsNextProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsNextProperty) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsNextProperty) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsNextProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsNextProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsNextProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsNextProperty) KindIndex() int { - if this.IsActivityStreamsCollectionPage() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsMention() { - return 2 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 3 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsNextProperty) LessThan(o vocab.ActivityStreamsNextProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "next". -func (this ActivityStreamsNextProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "next" - } else { - return "next" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsNextProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsNextProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsNextProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.Clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsNextProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.Clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsNextProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsNextProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsNextProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on next property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_doc.go deleted file mode 100644 index dd66c367a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyobject contains the implementation for the object property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyobject diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_pkg.go deleted file mode 100644 index d9176c966..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyobject - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go deleted file mode 100644 index 501ddaabd..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go +++ /dev/null @@ -1,7031 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyobject - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsObjectPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsObjectPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsObjectProperty -} - -// NewActivityStreamsObjectPropertyIterator creates a new ActivityStreamsObject -// property. -func NewActivityStreamsObjectPropertyIterator() *ActivityStreamsObjectPropertyIterator { - return &ActivityStreamsObjectPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsObjectPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsObjectPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsObjectPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsObjectPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsObjectPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsObjectPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsObjectPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsObjectPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsObjectPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsObjectPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsObjectPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsObjectPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsObjectPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStreamsObjectPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsObject". -func (this ActivityStreamsObjectPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsObject" - } else { - return "ActivityStreamsObject" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsObjectPropertyIterator) Next() vocab.ActivityStreamsObjectPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsObjectPropertyIterator) Prev() vocab.ActivityStreamsObjectPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsObjectPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsObject property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsObjectPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsObjectProperty is the non-functional property "object". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsObjectProperty struct { - properties []*ActivityStreamsObjectPropertyIterator - alias string -} - -// DeserializeObjectProperty creates a "object" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeObjectProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsObjectProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "object" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "object") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsObjectProperty{ - alias: alias, - properties: []*ActivityStreamsObjectPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsObjectPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsObjectPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsObjectProperty creates a new object property. -func NewActivityStreamsObjectProperty() *ActivityStreamsObjectProperty { - return &ActivityStreamsObjectProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "object". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "object". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "object". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "object". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "object". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "object". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "object". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "object". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "object". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "object". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "object". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "object". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsObjectProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "object" -func (this *ActivityStreamsObjectProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "object". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsObjectProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "object". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsObjectProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsObjectProperty) At(index int) vocab.ActivityStreamsObjectPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsObjectProperty) Begin() vocab.ActivityStreamsObjectPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsObjectProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsObjectProperty) End() vocab.ActivityStreamsObjectPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "object". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "object". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "object". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "object". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "object". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "object". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "object". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "object". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "object". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "object". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "object". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "object". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "object". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "object". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "object". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "object". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "object". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "object". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "object". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "object". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "object". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "object". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsObjectProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsObjectProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsObjectProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "object" property. -func (this ActivityStreamsObjectProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsObjectProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsObjectProperty) LessThan(o vocab.ActivityStreamsObjectProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("object") with any alias. -func (this ActivityStreamsObjectProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "object" - } else { - return "object" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "object". Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "object". Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "object". -func (this *ActivityStreamsObjectProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "object". Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "object". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsObjectProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsObjectPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "object", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsObjectPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsObjectProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "object". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "object". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "object". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "object". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "object". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "object". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "object". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "object". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "object". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "object". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "object". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "object". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "object". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "object". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "object". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "object". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "object". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsObjectProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "object". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsObjectProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "object". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "object". Panics if the index is out of bounds. -func (this *ActivityStreamsObjectProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "object". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "object". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsObjectProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "object". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsObjectProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsObjectPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "object" property. -func (this ActivityStreamsObjectProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_doc.go deleted file mode 100644 index 9867775b4..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyoneof contains the implementation for the oneOf property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyoneof diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go deleted file mode 100644 index f0a1b461f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyoneof - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go deleted file mode 100644 index 4561cecd7..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go +++ /dev/null @@ -1,7030 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyoneof - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsOneOfPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsOneOfPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsOneOfProperty -} - -// NewActivityStreamsOneOfPropertyIterator creates a new ActivityStreamsOneOf -// property. -func NewActivityStreamsOneOfPropertyIterator() *ActivityStreamsOneOfPropertyIterator { - return &ActivityStreamsOneOfPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsOneOfPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsOneOfPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOneOfPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsOneOfPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsOneOfPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsOneOfPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsOneOfPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsOneOfPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsOneOfPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStreamsOneOfPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsOneOf". -func (this ActivityStreamsOneOfPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsOneOf" - } else { - return "ActivityStreamsOneOf" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsOneOfPropertyIterator) Next() vocab.ActivityStreamsOneOfPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsOneOfPropertyIterator) Prev() vocab.ActivityStreamsOneOfPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsOneOfPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsOneOf property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsOneOfPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsOneOfProperty is the non-functional property "oneOf". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsOneOfProperty struct { - properties []*ActivityStreamsOneOfPropertyIterator - alias string -} - -// DeserializeOneOfProperty creates a "oneOf" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeOneOfProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOneOfProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "oneOf" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "oneOf") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsOneOfProperty{ - alias: alias, - properties: []*ActivityStreamsOneOfPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsOneOfPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsOneOfPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsOneOfProperty creates a new oneOf property. -func NewActivityStreamsOneOfProperty() *ActivityStreamsOneOfProperty { - return &ActivityStreamsOneOfProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "oneOf". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "oneOf". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "oneOf". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "oneOf". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "oneOf". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "oneOf". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "oneOf". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "oneOf". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "oneOf". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "oneOf". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "oneOf". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "oneOf". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOneOfProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "oneOf" -func (this *ActivityStreamsOneOfProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "oneOf". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOneOfProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "oneOf". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsOneOfProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsOneOfProperty) At(index int) vocab.ActivityStreamsOneOfPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsOneOfProperty) Begin() vocab.ActivityStreamsOneOfPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsOneOfProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsOneOfProperty) End() vocab.ActivityStreamsOneOfPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "oneOf". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "oneOf". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "oneOf". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "oneOf". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "oneOf". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "oneOf". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "oneOf". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "oneOf". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "oneOf". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "oneOf". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "oneOf". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "oneOf". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "oneOf". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "oneOf". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "oneOf". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "oneOf". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "oneOf". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "oneOf". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "oneOf". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "oneOf". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "oneOf". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "oneOf". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsOneOfProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsOneOfProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsOneOfProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "oneOf" property. -func (this ActivityStreamsOneOfProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsOneOfProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsOneOfProperty) LessThan(o vocab.ActivityStreamsOneOfProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("oneOf") with any alias. -func (this ActivityStreamsOneOfProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "oneOf" - } else { - return "oneOf" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "oneOf". Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "oneOf". Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property "oneOf". -func (this *ActivityStreamsOneOfProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "oneOf". Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "oneOf". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsOneOfProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsOneOfPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "oneOf", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsOneOfPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsOneOfProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "oneOf". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "oneOf". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "oneOf". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "oneOf". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "oneOf". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "oneOf". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "oneOf". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "oneOf". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "oneOf". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "oneOf". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "oneOf". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "oneOf". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "oneOf". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "oneOf". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "oneOf". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "oneOf". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "oneOf". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOneOfProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "oneOf". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property "oneOf". -// Panics if the index is out of bounds. -func (this *ActivityStreamsOneOfProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "oneOf". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsOneOfProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "oneOf". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOneOfProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "oneOf". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsOneOfProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsOneOfPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "oneOf" property. -func (this ActivityStreamsOneOfProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_doc.go deleted file mode 100644 index 4b9d60d52..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyordereditems contains the implementation for the orderedItems -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyordereditems diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go deleted file mode 100644 index 6aa80f7f9..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyordereditems - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go deleted file mode 100644 index 02b9bc8b4..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go +++ /dev/null @@ -1,7089 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyordereditems - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsOrderedItemsPropertyIterator is an iterator for a property. It -// is permitted to be one of multiple value types. At most, one type of value -// can be present, or none at all. Setting a value will clear the other types -// of values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsOrderedItemsPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsOrderedItemsProperty -} - -// NewActivityStreamsOrderedItemsPropertyIterator creates a new -// ActivityStreamsOrderedItems property. -func NewActivityStreamsOrderedItemsPropertyIterator() *ActivityStreamsOrderedItemsPropertyIterator { - return &ActivityStreamsOrderedItemsPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsOrderedItemsPropertyIterator creates an iterator from -// an element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsOrderedItemsPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsOrderedItemsPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsOrderedItemsPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsOrderedItemsPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsOrderedItemsPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.ActivityStreamsOrderedItemsPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsOrderedItems". -func (this ActivityStreamsOrderedItemsPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsOrderedItems" - } else { - return "ActivityStreamsOrderedItems" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsOrderedItemsPropertyIterator) Next() vocab.ActivityStreamsOrderedItemsPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsOrderedItemsPropertyIterator) Prev() vocab.ActivityStreamsOrderedItemsPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsOrderedItems property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsOrderedItemsPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsOrderedItemsProperty is the non-functional property -// "orderedItems". It is permitted to have one or more values, and of -// different value types. -type ActivityStreamsOrderedItemsProperty struct { - properties []*ActivityStreamsOrderedItemsPropertyIterator - alias string -} - -// DeserializeOrderedItemsProperty creates a "orderedItems" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeOrderedItemsProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrderedItemsProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "orderedItems" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "orderedItems") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsOrderedItemsProperty{ - alias: alias, - properties: []*ActivityStreamsOrderedItemsPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsOrderedItemsPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsOrderedItemsPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsOrderedItemsProperty creates a new orderedItems property. -func NewActivityStreamsOrderedItemsProperty() *ActivityStreamsOrderedItemsProperty { - return &ActivityStreamsOrderedItemsProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "orderedItems". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "orderedItems". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "orderedItems". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "orderedItems". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "orderedItems". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "orderedItems". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "orderedItems". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "orderedItems". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "orderedItems". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "orderedItems". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "orderedItems". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "orderedItems". Invalidates -// iterators that are traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "orderedItems". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "orderedItems". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "orderedItems". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "orderedItems". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "orderedItems". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "orderedItems". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "orderedItems". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "orderedItems". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "orderedItems". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "orderedItems". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "orderedItems". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "orderedItems" -func (this *ActivityStreamsOrderedItemsProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "orderedItems". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "orderedItems". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOrderedItemsProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "orderedItems". Invalidates iterators that are traversing using -// Prev. Returns an error if the type is not a valid one to set for this -// property. -func (this *ActivityStreamsOrderedItemsProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsOrderedItemsProperty) At(index int) vocab.ActivityStreamsOrderedItemsPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsOrderedItemsProperty) Begin() vocab.ActivityStreamsOrderedItemsPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsOrderedItemsProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsOrderedItemsProperty) End() vocab.ActivityStreamsOrderedItemsPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "orderedItems". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "orderedItems". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "orderedItems". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "orderedItems". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "orderedItems". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "orderedItems". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "orderedItems". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "orderedItems". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "orderedItems". Existing -// elements at that index and higher are shifted back once. Invalidates all -// iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "orderedItems". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "orderedItems". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "orderedItems". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "orderedItems". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "orderedItems". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "orderedItems". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "orderedItems". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "orderedItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "orderedItems". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property -// "orderedItems". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "orderedItems". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "orderedItems". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "orderedItems". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsOrderedItemsProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsOrderedItemsProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsOrderedItemsProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "orderedItems" property. -func (this ActivityStreamsOrderedItemsProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsOrderedItemsProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsOrderedItemsProperty) LessThan(o vocab.ActivityStreamsOrderedItemsProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("orderedItems") with any alias. -func (this ActivityStreamsOrderedItemsProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "orderedItems" - } else { - return "orderedItems" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "orderedItems". Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "orderedItems". Invalidates all -// iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "orderedItems". Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "orderedItems". -func (this *ActivityStreamsOrderedItemsProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "orderedItems". Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "orderedItems". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsOrderedItemsProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "orderedItems", regardless of its type. Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsOrderedItemsPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsOrderedItemsProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "orderedItems". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "orderedItems". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "orderedItems". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "orderedItems". Panics if the index -// is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "orderedItems". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "orderedItems". Panics if the -// index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "orderedItems". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "orderedItems". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "orderedItems". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "orderedItems". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "orderedItems". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "orderedItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "orderedItems". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "orderedItems". Panics if the index is out of bounds. -func (this *ActivityStreamsOrderedItemsProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "orderedItems". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "orderedItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOrderedItemsProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "orderedItems". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. Panics if the index is out of -// bounds. -func (this *ActivityStreamsOrderedItemsProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsOrderedItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "orderedItems" -// property. -func (this ActivityStreamsOrderedItemsProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_doc.go deleted file mode 100644 index 095312aab..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyorigin contains the implementation for the origin property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyorigin diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_pkg.go deleted file mode 100644 index 98eba3a99..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyorigin - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go deleted file mode 100644 index 3d83911d8..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go +++ /dev/null @@ -1,7031 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyorigin - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsOriginPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsOriginPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsOriginProperty -} - -// NewActivityStreamsOriginPropertyIterator creates a new ActivityStreamsOrigin -// property. -func NewActivityStreamsOriginPropertyIterator() *ActivityStreamsOriginPropertyIterator { - return &ActivityStreamsOriginPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsOriginPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsOriginPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOriginPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsOriginPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsOriginPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsOriginPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsOriginPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsOriginPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsOriginPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsOriginPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsOriginPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsOriginPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsOriginPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStreamsOriginPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsOrigin". -func (this ActivityStreamsOriginPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsOrigin" - } else { - return "ActivityStreamsOrigin" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsOriginPropertyIterator) Next() vocab.ActivityStreamsOriginPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsOriginPropertyIterator) Prev() vocab.ActivityStreamsOriginPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsOriginPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsOrigin property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsOriginPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsOriginProperty is the non-functional property "origin". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsOriginProperty struct { - properties []*ActivityStreamsOriginPropertyIterator - alias string -} - -// DeserializeOriginProperty creates a "origin" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeOriginProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOriginProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "origin" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "origin") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsOriginProperty{ - alias: alias, - properties: []*ActivityStreamsOriginPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsOriginPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsOriginPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsOriginProperty creates a new origin property. -func NewActivityStreamsOriginProperty() *ActivityStreamsOriginProperty { - return &ActivityStreamsOriginProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "origin". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "origin". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "origin". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "origin". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "origin". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "origin". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "origin". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "origin". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "origin". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "origin". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "origin". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "origin". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsOriginProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "origin" -func (this *ActivityStreamsOriginProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "origin". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsOriginProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "origin". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsOriginProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsOriginProperty) At(index int) vocab.ActivityStreamsOriginPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsOriginProperty) Begin() vocab.ActivityStreamsOriginPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsOriginProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsOriginProperty) End() vocab.ActivityStreamsOriginPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "origin". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "origin". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "origin". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "origin". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "origin". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "origin". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "origin". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "origin". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "origin". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "origin". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "origin". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "origin". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "origin". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "origin". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "origin". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "origin". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "origin". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "origin". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "origin". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "origin". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "origin". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "origin". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsOriginProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsOriginProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsOriginProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "origin" property. -func (this ActivityStreamsOriginProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsOriginProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsOriginProperty) LessThan(o vocab.ActivityStreamsOriginProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("origin") with any alias. -func (this ActivityStreamsOriginProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "origin" - } else { - return "origin" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "origin". Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "origin". Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "origin". -func (this *ActivityStreamsOriginProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "origin". Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "origin". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsOriginProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsOriginPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "origin", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsOriginPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsOriginProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "origin". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "origin". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "origin". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "origin". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "origin". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "origin". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "origin". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "origin". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "origin". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "origin". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "origin". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "origin". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "origin". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "origin". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "origin". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "origin". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "origin". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsOriginProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "origin". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsOriginProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "origin". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "origin". Panics if the index is out of bounds. -func (this *ActivityStreamsOriginProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "origin". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "origin". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsOriginProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "origin". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsOriginProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsOriginPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "origin" property. -func (this ActivityStreamsOriginProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_doc.go deleted file mode 100644 index 4f15afb01..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyoutbox contains the implementation for the outbox property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyoutbox diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go deleted file mode 100644 index b6905981a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyoutbox - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go deleted file mode 100644 index 4e8874e8c..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go +++ /dev/null @@ -1,268 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyoutbox - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsOutboxProperty is the functional property "outbox". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsOutboxProperty struct { - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeOutboxProperty creates a "outbox" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeOutboxProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsOutboxProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "outbox" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "outbox") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsOutboxProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOutboxProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsOutboxProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsOutboxProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsOutboxProperty creates a new outbox property. -func NewActivityStreamsOutboxProperty() *ActivityStreamsOutboxProperty { - return &ActivityStreamsOutboxProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsOutboxProperty) Clear() { - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsOutboxProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsOutboxProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsOutboxProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsOutboxProperty) GetType() vocab.Type { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsOutboxProperty) HasAny() bool { - return this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsOutboxProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsOutboxProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsOutboxProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsOutboxProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsOutboxProperty) KindIndex() int { - if this.IsActivityStreamsOrderedCollection() { - return 0 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 1 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsOutboxProperty) LessThan(o vocab.ActivityStreamsOutboxProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "outbox". -func (this ActivityStreamsOutboxProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "outbox" - } else { - return "outbox" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsOutboxProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsOutboxProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsOutboxProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsOutboxProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsOutboxProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on outbox property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_doc.go deleted file mode 100644 index 3de84ee32..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertypartof contains the implementation for the partOf property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertypartof diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_pkg.go deleted file mode 100644 index a7708d3d0..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_pkg.go +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypartof - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go deleted file mode 100644 index 7bee379a9..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go +++ /dev/null @@ -1,452 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypartof - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsPartOfProperty is the functional property "partOf". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsPartOfProperty struct { - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializePartOfProperty creates a "partOf" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializePartOfProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsPartOfProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "partOf" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "partOf") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsPartOfProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPartOfProperty{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPartOfProperty{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPartOfProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPartOfProperty{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPartOfProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPartOfProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsPartOfProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsPartOfProperty creates a new partOf property. -func NewActivityStreamsPartOfProperty() *ActivityStreamsPartOfProperty { - return &ActivityStreamsPartOfProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsPartOfProperty) Clear() { - this.activitystreamsLinkMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsPartOfProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsPartOfProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsPartOfProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsPartOfProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsPartOfProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsPartOfProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsPartOfProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsPartOfProperty) GetType() vocab.Type { - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsPartOfProperty) HasAny() bool { - return this.IsActivityStreamsLink() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsPartOfProperty) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsPartOfProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsPartOfProperty) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsPartOfProperty) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsPartOfProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsPartOfProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsPartOfProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsPartOfProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsPartOfProperty) KindIndex() int { - if this.IsActivityStreamsLink() { - return 0 - } - if this.IsActivityStreamsCollection() { - return 1 - } - if this.IsActivityStreamsCollectionPage() { - return 2 - } - if this.IsActivityStreamsMention() { - return 3 - } - if this.IsActivityStreamsOrderedCollection() { - return 4 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 5 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsPartOfProperty) LessThan(o vocab.ActivityStreamsPartOfProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "partOf". -func (this ActivityStreamsPartOfProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "partOf" - } else { - return "partOf" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsPartOfProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsPartOfProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.Clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsPartOfProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsPartOfProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.Clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsPartOfProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.Clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsPartOfProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsPartOfProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsPartOfProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsPartOfProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on partOf property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_doc.go deleted file mode 100644 index cf28cee8f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertypreferredusername contains the implementation for the -// preferredUsername property. All applications are strongly encouraged to use -// the interface instead of this concrete definition. The interfaces allow -// applications to consume only the types and properties needed and be -// independent of the go-fed implementation if another alternative -// implementation is created. This package is code-generated and subject to -// the same license as the go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertypreferredusername diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go deleted file mode 100644 index 37a4545ae..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypreferredusername - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go deleted file mode 100644 index 7053417e1..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go +++ /dev/null @@ -1,284 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypreferredusername - -import ( - "fmt" - langstring "github.com/go-fed/activity/streams/values/langString" - string1 "github.com/go-fed/activity/streams/values/string" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsPreferredUsernameProperty is the functional property -// "preferredUsername". It is permitted to be one of multiple value types. At -// most, one type of value can be present, or none at all. Setting a value -// will clear the other types of values so that only one of the 'Is' methods -// will return true. It is possible to clear all values, so that this property -// is empty. -type ActivityStreamsPreferredUsernameProperty struct { - xmlschemaStringMember string - hasStringMember bool - rdfLangStringMember map[string]string - unknown interface{} - iri *url.URL - alias string -} - -// DeserializePreferredUsernameProperty creates a "preferredUsername" property -// from an interface representation that has been unmarshalled from a text or -// binary format. -func DeserializePreferredUsernameProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsPreferredUsernameProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "preferredUsername" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "preferredUsername") - } - i, ok := m[propName] - if !ok { - // Attempt to find the map instead. - i, ok = m[propName+"Map"] - } - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsPreferredUsernameProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &ActivityStreamsPreferredUsernameProperty{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } else if v, err := langstring.DeserializeLangString(i); err == nil { - this := &ActivityStreamsPreferredUsernameProperty{ - alias: alias, - rdfLangStringMember: v, - } - return this, nil - } - this := &ActivityStreamsPreferredUsernameProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsPreferredUsernameProperty creates a new preferredUsername -// property. -func NewActivityStreamsPreferredUsernameProperty() *ActivityStreamsPreferredUsernameProperty { - return &ActivityStreamsPreferredUsernameProperty{alias: ""} -} - -// Clear ensures no value and no language map for this property is set. Calling -// HasAny or any of the 'Is' methods afterwards will return false. -func (this *ActivityStreamsPreferredUsernameProperty) Clear() { - this.hasStringMember = false - this.rdfLangStringMember = nil - this.unknown = nil - this.iri = nil - this.rdfLangStringMember = nil -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsPreferredUsernameProperty) GetIRI() *url.URL { - return this.iri -} - -// GetLanguage returns the value for the specified BCP47 language code, or an -// empty string if it is either not a language map or no value is present. -func (this ActivityStreamsPreferredUsernameProperty) GetLanguage(bcp47 string) string { - if this.rdfLangStringMember == nil { - return "" - } else if v, ok := this.rdfLangStringMember[bcp47]; ok { - return v - } else { - return "" - } -} - -// GetRDFLangString returns the value of this property. When IsRDFLangString -// returns false, GetRDFLangString will return an arbitrary value. -func (this ActivityStreamsPreferredUsernameProperty) GetRDFLangString() map[string]string { - return this.rdfLangStringMember -} - -// GetXMLSchemaString returns the value of this property. When IsXMLSchemaString -// returns false, GetXMLSchemaString will return an arbitrary value. -func (this ActivityStreamsPreferredUsernameProperty) GetXMLSchemaString() string { - return this.xmlschemaStringMember -} - -// HasAny returns true if any of the values are set, except for the natural -// language map. When true, the specific has, getter, and setter methods may -// be used to determine what kind of value there is to access and set this -// property. To determine if the property was set as a natural language map, -// use the IsRDFLangString method instead. -func (this ActivityStreamsPreferredUsernameProperty) HasAny() bool { - return this.IsXMLSchemaString() || - this.IsRDFLangString() || - this.iri != nil -} - -// HasLanguage returns true if the natural language map has an entry for the -// specified BCP47 language code. -func (this ActivityStreamsPreferredUsernameProperty) HasLanguage(bcp47 string) bool { - if this.rdfLangStringMember == nil { - return false - } else { - _, ok := this.rdfLangStringMember[bcp47] - return ok - } -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsPreferredUsernameProperty) IsIRI() bool { - return this.iri != nil -} - -// IsRDFLangString returns true if this property has a type of "langString". When -// true, use the GetRDFLangString and SetRDFLangString methods to access and -// set this property.. To determine if the property was set as a natural -// language map, use the IsRDFLangString method instead. -func (this ActivityStreamsPreferredUsernameProperty) IsRDFLangString() bool { - return this.rdfLangStringMember != nil -} - -// IsXMLSchemaString returns true if this property has a type of "string". When -// true, use the GetXMLSchemaString and SetXMLSchemaString methods to access -// and set this property.. To determine if the property was set as a natural -// language map, use the IsRDFLangString method instead. -func (this ActivityStreamsPreferredUsernameProperty) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsPreferredUsernameProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsPreferredUsernameProperty) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsRDFLangString() { - return 1 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsPreferredUsernameProperty) LessThan(o vocab.ActivityStreamsPreferredUsernameProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsXMLSchemaString() { - return string1.LessString(this.GetXMLSchemaString(), o.GetXMLSchemaString()) - } else if this.IsRDFLangString() { - return langstring.LessLangString(this.GetRDFLangString(), o.GetRDFLangString()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "preferredUsername". -func (this ActivityStreamsPreferredUsernameProperty) Name() string { - if this.IsRDFLangString() { - return "preferredUsernameMap" - } else { - return "preferredUsername" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsPreferredUsernameProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.GetXMLSchemaString()) - } else if this.IsRDFLangString() { - return langstring.SerializeLangString(this.GetRDFLangString()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsPreferredUsernameProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetLanguage sets the value for the specified BCP47 language code. -func (this *ActivityStreamsPreferredUsernameProperty) SetLanguage(bcp47, value string) { - this.hasStringMember = false - this.rdfLangStringMember = nil - this.unknown = nil - this.iri = nil - if this.rdfLangStringMember == nil { - this.rdfLangStringMember = make(map[string]string) - } - this.rdfLangStringMember[bcp47] = value -} - -// SetRDFLangString sets the value of this property and clears the natural -// language map. Calling IsRDFLangString afterwards will return true. Calling -// IsRDFLangString afterwards returns false. -func (this *ActivityStreamsPreferredUsernameProperty) SetRDFLangString(v map[string]string) { - this.Clear() - this.rdfLangStringMember = v -} - -// SetXMLSchemaString sets the value of this property and clears the natural -// language map. Calling IsXMLSchemaString afterwards will return true. -// Calling IsRDFLangString afterwards returns false. -func (this *ActivityStreamsPreferredUsernameProperty) SetXMLSchemaString(v string) { - this.Clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_doc.go deleted file mode 100644 index 260c6629a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyprev contains the implementation for the prev property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyprev diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_pkg.go deleted file mode 100644 index e52b7048c..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_pkg.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyprev - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go deleted file mode 100644 index cdc28e40f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go +++ /dev/null @@ -1,359 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyprev - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsPrevProperty is the functional property "prev". It is permitted -// to be one of multiple value types. At most, one type of value can be -// present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsPrevProperty struct { - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializePrevProperty creates a "prev" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializePrevProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsPrevProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "prev" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "prev") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsPrevProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPrevProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPrevProperty{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPrevProperty{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPrevProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsPrevProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsPrevProperty creates a new prev property. -func NewActivityStreamsPrevProperty() *ActivityStreamsPrevProperty { - return &ActivityStreamsPrevProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsPrevProperty) Clear() { - this.activitystreamsCollectionPageMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsPrevProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsPrevProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsPrevProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsPrevProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsPrevProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsPrevProperty) GetType() vocab.Type { - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsPrevProperty) HasAny() bool { - return this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsPrevProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsPrevProperty) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsPrevProperty) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsPrevProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsPrevProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsPrevProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsPrevProperty) KindIndex() int { - if this.IsActivityStreamsCollectionPage() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsMention() { - return 2 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 3 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsPrevProperty) LessThan(o vocab.ActivityStreamsPrevProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "prev". -func (this ActivityStreamsPrevProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "prev" - } else { - return "prev" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsPrevProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsPrevProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsPrevProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.Clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsPrevProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.Clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsPrevProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsPrevProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsPrevProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on prev property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_doc.go deleted file mode 100644 index 3065a56e0..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertypreview contains the implementation for the preview property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertypreview diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_pkg.go deleted file mode 100644 index 270923db5..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypreview - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go deleted file mode 100644 index c1dcd7672..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go +++ /dev/null @@ -1,7042 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypreview - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsPreviewPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsPreviewPropertyIterator struct { - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsPreviewProperty -} - -// NewActivityStreamsPreviewPropertyIterator creates a new ActivityStreamsPreview -// property. -func NewActivityStreamsPreviewPropertyIterator() *ActivityStreamsPreviewPropertyIterator { - return &ActivityStreamsPreviewPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsPreviewPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsPreviewPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsPreviewPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsPreviewPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsPreviewPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsPreviewPropertyIterator) HasAny() bool { - return this.IsActivityStreamsLink() || - this.IsActivityStreamsObject() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsPreviewPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsPreviewPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsPreviewPropertyIterator) KindIndex() int { - if this.IsActivityStreamsLink() { - return 0 - } - if this.IsActivityStreamsObject() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStreamsPreviewPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsPreview". -func (this ActivityStreamsPreviewPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsPreview" - } else { - return "ActivityStreamsPreview" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsPreviewPropertyIterator) Next() vocab.ActivityStreamsPreviewPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsPreviewPropertyIterator) Prev() vocab.ActivityStreamsPreviewPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsPreviewPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsPreview property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsPreviewPropertyIterator) clear() { - this.activitystreamsLinkMember = nil - this.activitystreamsObjectMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsPreviewProperty is the non-functional property "preview". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsPreviewProperty struct { - properties []*ActivityStreamsPreviewPropertyIterator - alias string -} - -// DeserializePreviewProperty creates a "preview" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializePreviewProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPreviewProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "preview" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "preview") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsPreviewProperty{ - alias: alias, - properties: []*ActivityStreamsPreviewPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsPreviewPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsPreviewPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsPreviewProperty creates a new preview property. -func NewActivityStreamsPreviewProperty() *ActivityStreamsPreviewProperty { - return &ActivityStreamsPreviewProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "preview". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "preview". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "preview". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "preview". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "preview". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "preview". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "preview". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "preview". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "preview". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "preview". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "preview". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "preview". Invalidates -// iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "preview". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "preview". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "preview". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "preview". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "preview". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "preview". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "preview". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "preview". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "preview". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsPreviewProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "preview". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsPreviewProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "preview" -func (this *ActivityStreamsPreviewProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "preview". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsPreviewProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "preview". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsPreviewProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "preview". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsPreviewProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsPreviewProperty) At(index int) vocab.ActivityStreamsPreviewPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsPreviewProperty) Begin() vocab.ActivityStreamsPreviewPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsPreviewProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsPreviewProperty) End() vocab.ActivityStreamsPreviewPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "preview". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "preview". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "preview". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "preview". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "preview". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "preview". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "preview". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "preview". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "preview". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "preview". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "preview". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "preview". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "preview". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "preview". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "preview". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "preview". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "preview". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "preview". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "preview". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "preview". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "preview". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "preview". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "preview". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "preview". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "preview". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "preview". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "preview". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "preview". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsPreviewProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsPreviewProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsPreviewProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "preview" property. -func (this ActivityStreamsPreviewProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsPreviewProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsPreviewProperty) LessThan(o vocab.ActivityStreamsPreviewProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("preview") with any alias. -func (this ActivityStreamsPreviewProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "preview" - } else { - return "preview" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "preview". Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "preview". Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "preview". -func (this *ActivityStreamsPreviewProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "preview". Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "preview". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsPreviewProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsPreviewPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "preview", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsPreviewPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsPreviewProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "preview". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "preview". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "preview". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "preview". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "preview". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "preview". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "preview". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "preview". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "preview". Panics if the index -// is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "preview". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "preview". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "preview". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "preview". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "preview". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "preview". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "preview". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "preview". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsPreviewProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "preview". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsPreviewProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "preview". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "preview". Panics if the index is out of bounds. -func (this *ActivityStreamsPreviewProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "preview". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "preview". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsPreviewProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "preview". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsPreviewProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsPreviewPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "preview" property. -func (this ActivityStreamsPreviewProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_doc.go deleted file mode 100644 index 59952ab71..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertypublished contains the implementation for the published -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertypublished diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_pkg.go deleted file mode 100644 index ca5c51501..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypublished - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go deleted file mode 100644 index a1b627c60..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypublished - -import ( - "fmt" - datetime "github.com/go-fed/activity/streams/values/dateTime" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" - "time" -) - -// ActivityStreamsPublishedProperty is the functional property "published". It is -// permitted to be a single default-valued value type. -type ActivityStreamsPublishedProperty struct { - xmlschemaDateTimeMember time.Time - hasDateTimeMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializePublishedProperty creates a "published" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializePublishedProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsPublishedProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "published" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "published") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsPublishedProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := datetime.DeserializeDateTime(i); err == nil { - this := &ActivityStreamsPublishedProperty{ - alias: alias, - hasDateTimeMember: true, - xmlschemaDateTimeMember: v, - } - return this, nil - } - this := &ActivityStreamsPublishedProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsPublishedProperty creates a new published property. -func NewActivityStreamsPublishedProperty() *ActivityStreamsPublishedProperty { - return &ActivityStreamsPublishedProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaDateTime -// afterwards will return false. -func (this *ActivityStreamsPublishedProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasDateTimeMember = false -} - -// Get returns the value of this property. When IsXMLSchemaDateTime returns false, -// Get will return any arbitrary value. -func (this ActivityStreamsPublishedProperty) Get() time.Time { - return this.xmlschemaDateTimeMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsPublishedProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsPublishedProperty) HasAny() bool { - return this.IsXMLSchemaDateTime() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsPublishedProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaDateTime returns true if this property is set and not an IRI. -func (this ActivityStreamsPublishedProperty) IsXMLSchemaDateTime() bool { - return this.hasDateTimeMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsPublishedProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsPublishedProperty) KindIndex() int { - if this.IsXMLSchemaDateTime() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsPublishedProperty) LessThan(o vocab.ActivityStreamsPublishedProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaDateTime() && o.IsXMLSchemaDateTime() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return datetime.LessDateTime(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "published". -func (this ActivityStreamsPublishedProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "published" - } else { - return "published" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsPublishedProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaDateTime() { - return datetime.SerializeDateTime(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaDateTime afterwards -// will return true. -func (this *ActivityStreamsPublishedProperty) Set(v time.Time) { - this.Clear() - this.xmlschemaDateTimeMember = v - this.hasDateTimeMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsPublishedProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_doc.go deleted file mode 100644 index f2fd21088..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyradius contains the implementation for the radius property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyradius diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_pkg.go deleted file mode 100644 index 582fd0054..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyradius - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go deleted file mode 100644 index 98d7b4884..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyradius - -import ( - "fmt" - float "github.com/go-fed/activity/streams/values/float" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsRadiusProperty is the functional property "radius". It is -// permitted to be a single default-valued value type. -type ActivityStreamsRadiusProperty struct { - xmlschemaFloatMember float64 - hasFloatMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeRadiusProperty creates a "radius" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeRadiusProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsRadiusProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "radius" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "radius") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsRadiusProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := float.DeserializeFloat(i); err == nil { - this := &ActivityStreamsRadiusProperty{ - alias: alias, - hasFloatMember: true, - xmlschemaFloatMember: v, - } - return this, nil - } - this := &ActivityStreamsRadiusProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsRadiusProperty creates a new radius property. -func NewActivityStreamsRadiusProperty() *ActivityStreamsRadiusProperty { - return &ActivityStreamsRadiusProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaFloat -// afterwards will return false. -func (this *ActivityStreamsRadiusProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasFloatMember = false -} - -// Get returns the value of this property. When IsXMLSchemaFloat returns false, -// Get will return any arbitrary value. -func (this ActivityStreamsRadiusProperty) Get() float64 { - return this.xmlschemaFloatMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsRadiusProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsRadiusProperty) HasAny() bool { - return this.IsXMLSchemaFloat() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsRadiusProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaFloat returns true if this property is set and not an IRI. -func (this ActivityStreamsRadiusProperty) IsXMLSchemaFloat() bool { - return this.hasFloatMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsRadiusProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsRadiusProperty) KindIndex() int { - if this.IsXMLSchemaFloat() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsRadiusProperty) LessThan(o vocab.ActivityStreamsRadiusProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaFloat() && o.IsXMLSchemaFloat() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return float.LessFloat(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "radius". -func (this ActivityStreamsRadiusProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "radius" - } else { - return "radius" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsRadiusProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaFloat() { - return float.SerializeFloat(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaFloat afterwards will -// return true. -func (this *ActivityStreamsRadiusProperty) Set(v float64) { - this.Clear() - this.xmlschemaFloatMember = v - this.hasFloatMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsRadiusProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_doc.go deleted file mode 100644 index 2982ad469..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyrel contains the implementation for the rel property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyrel diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_pkg.go deleted file mode 100644 index 1965fcf52..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyrel - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go deleted file mode 100644 index f102e2358..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go +++ /dev/null @@ -1,528 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyrel - -import ( - "fmt" - rfc5988 "github.com/go-fed/activity/streams/values/rfc5988" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsRelPropertyIterator is an iterator for a property. It is -// permitted to be a single default-valued value type. -type ActivityStreamsRelPropertyIterator struct { - rfcRfc5988Member string - hasRfc5988Member bool - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsRelProperty -} - -// NewActivityStreamsRelPropertyIterator creates a new ActivityStreamsRel property. -func NewActivityStreamsRelPropertyIterator() *ActivityStreamsRelPropertyIterator { - return &ActivityStreamsRelPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsRelPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsRelPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsRelPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsRelPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := rfc5988.DeserializeRfc5988(i); err == nil { - this := &ActivityStreamsRelPropertyIterator{ - alias: alias, - hasRfc5988Member: true, - rfcRfc5988Member: v, - } - return this, nil - } - this := &ActivityStreamsRelPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsRFCRfc5988 returns false, Get -// will return any arbitrary value. -func (this ActivityStreamsRelPropertyIterator) Get() string { - return this.rfcRfc5988Member -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsRelPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsRelPropertyIterator) HasAny() bool { - return this.IsRFCRfc5988() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsRelPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsRFCRfc5988 returns true if this property is set and not an IRI. -func (this ActivityStreamsRelPropertyIterator) IsRFCRfc5988() bool { - return this.hasRfc5988Member -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsRelPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsRelPropertyIterator) KindIndex() int { - if this.IsRFCRfc5988() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsRelPropertyIterator) LessThan(o vocab.ActivityStreamsRelPropertyIterator) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsRFCRfc5988() && !o.IsRFCRfc5988() { - // Both are unknowns. - return false - } else if this.IsRFCRfc5988() && !o.IsRFCRfc5988() { - // Values are always greater than unknown values. - return false - } else if !this.IsRFCRfc5988() && o.IsRFCRfc5988() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return rfc5988.LessRfc5988(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "ActivityStreamsRel". -func (this ActivityStreamsRelPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsRel" - } else { - return "ActivityStreamsRel" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsRelPropertyIterator) Next() vocab.ActivityStreamsRelPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsRelPropertyIterator) Prev() vocab.ActivityStreamsRelPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsRFCRfc5988 afterwards will -// return true. -func (this *ActivityStreamsRelPropertyIterator) Set(v string) { - this.clear() - this.rfcRfc5988Member = v - this.hasRfc5988Member = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsRelPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// clear ensures no value of this property is set. Calling IsRFCRfc5988 afterwards -// will return false. -func (this *ActivityStreamsRelPropertyIterator) clear() { - this.unknown = nil - this.iri = nil - this.hasRfc5988Member = false -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsRelPropertyIterator) serialize() (interface{}, error) { - if this.IsRFCRfc5988() { - return rfc5988.SerializeRfc5988(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsRelProperty is the non-functional property "rel". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsRelProperty struct { - properties []*ActivityStreamsRelPropertyIterator - alias string -} - -// DeserializeRelProperty creates a "rel" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeRelProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRelProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "rel" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "rel") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsRelProperty{ - alias: alias, - properties: []*ActivityStreamsRelPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsRelPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsRelPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsRelProperty creates a new rel property. -func NewActivityStreamsRelProperty() *ActivityStreamsRelProperty { - return &ActivityStreamsRelProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property "rel" -func (this *ActivityStreamsRelProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsRelPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendRFCRfc5988 appends a rfc5988 value to the back of a list of the property -// "rel". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsRelProperty) AppendRFCRfc5988(v string) { - this.properties = append(this.properties, &ActivityStreamsRelPropertyIterator{ - alias: this.alias, - hasRfc5988Member: true, - myIdx: this.Len(), - parent: this, - rfcRfc5988Member: v, - }) -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsRelProperty) At(index int) vocab.ActivityStreamsRelPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsRelProperty) Begin() vocab.ActivityStreamsRelPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsRelProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsRelProperty) End() vocab.ActivityStreamsRelPropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property "rel". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsRelProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertRFCRfc5988 inserts a rfc5988 value at the specified index for a property -// "rel". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsRelProperty) InsertRFCRfc5988(idx int, v string) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelPropertyIterator{ - alias: this.alias, - hasRfc5988Member: true, - myIdx: idx, - parent: this, - rfcRfc5988Member: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsRelProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsRelProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "rel" property. -func (this ActivityStreamsRelProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsRelProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].Get() - rhs := this.properties[j].Get() - return rfc5988.LessRfc5988(lhs, rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsRelProperty) LessThan(o vocab.ActivityStreamsRelProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("rel") with any alias. -func (this ActivityStreamsRelProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "rel" - } else { - return "rel" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property "rel". -func (this *ActivityStreamsRelProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsRelPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependRFCRfc5988 prepends a rfc5988 value to the front of a list of the -// property "rel". Invalidates all iterators. -func (this *ActivityStreamsRelProperty) PrependRFCRfc5988(v string) { - this.properties = append([]*ActivityStreamsRelPropertyIterator{{ - alias: this.alias, - hasRfc5988Member: true, - myIdx: 0, - parent: this, - rfcRfc5988Member: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Remove deletes an element at the specified index from a list of the property -// "rel", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsRelPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsRelProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// Set sets a rfc5988 value to be at the specified index for the property "rel". -// Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsRelProperty) Set(idx int, v string) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelPropertyIterator{ - alias: this.alias, - hasRfc5988Member: true, - myIdx: idx, - parent: this, - rfcRfc5988Member: v, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property "rel". -// Panics if the index is out of bounds. -func (this *ActivityStreamsRelProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// Swap swaps the location of values at two indices for the "rel" property. -func (this ActivityStreamsRelProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_doc.go deleted file mode 100644 index 14be103b2..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyrelationship contains the implementation for the relationship -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyrelationship diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go deleted file mode 100644 index 4c63d8db2..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go +++ /dev/null @@ -1,257 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyrelationship - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go deleted file mode 100644 index 5dc71e782..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go +++ /dev/null @@ -1,6877 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyrelationship - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsRelationshipPropertyIterator is an iterator for a property. It -// is permitted to be one of multiple value types. At most, one type of value -// can be present, or none at all. Setting a value will clear the other types -// of values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsRelationshipPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsRelationshipProperty -} - -// NewActivityStreamsRelationshipPropertyIterator creates a new -// ActivityStreamsRelationship property. -func NewActivityStreamsRelationshipPropertyIterator() *ActivityStreamsRelationshipPropertyIterator { - return &ActivityStreamsRelationshipPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsRelationshipPropertyIterator creates an iterator from -// an element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsRelationshipPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsRelationshipPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsRelationshipPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsRelationshipPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsRelationshipPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsRelationshipPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsAccept() { - return 1 - } - if this.IsActivityStreamsActivity() { - return 2 - } - if this.IsActivityStreamsAdd() { - return 3 - } - if this.IsActivityStreamsAnnounce() { - return 4 - } - if this.IsActivityStreamsApplication() { - return 5 - } - if this.IsActivityStreamsArrive() { - return 6 - } - if this.IsActivityStreamsArticle() { - return 7 - } - if this.IsActivityStreamsAudio() { - return 8 - } - if this.IsActivityStreamsBlock() { - return 9 - } - if this.IsForgeFedBranch() { - return 10 - } - if this.IsActivityStreamsCollection() { - return 11 - } - if this.IsActivityStreamsCollectionPage() { - return 12 - } - if this.IsForgeFedCommit() { - return 13 - } - if this.IsActivityStreamsCreate() { - return 14 - } - if this.IsActivityStreamsDelete() { - return 15 - } - if this.IsActivityStreamsDislike() { - return 16 - } - if this.IsActivityStreamsDocument() { - return 17 - } - if this.IsTootEmoji() { - return 18 - } - if this.IsActivityStreamsEvent() { - return 19 - } - if this.IsActivityStreamsFlag() { - return 20 - } - if this.IsActivityStreamsFollow() { - return 21 - } - if this.IsActivityStreamsGroup() { - return 22 - } - if this.IsTootIdentityProof() { - return 23 - } - if this.IsActivityStreamsIgnore() { - return 24 - } - if this.IsActivityStreamsImage() { - return 25 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 26 - } - if this.IsActivityStreamsInvite() { - return 27 - } - if this.IsActivityStreamsJoin() { - return 28 - } - if this.IsActivityStreamsLeave() { - return 29 - } - if this.IsActivityStreamsLike() { - return 30 - } - if this.IsActivityStreamsListen() { - return 31 - } - if this.IsActivityStreamsMove() { - return 32 - } - if this.IsActivityStreamsNote() { - return 33 - } - if this.IsActivityStreamsOffer() { - return 34 - } - if this.IsActivityStreamsOrderedCollection() { - return 35 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 36 - } - if this.IsActivityStreamsOrganization() { - return 37 - } - if this.IsActivityStreamsPage() { - return 38 - } - if this.IsActivityStreamsPerson() { - return 39 - } - if this.IsActivityStreamsPlace() { - return 40 - } - if this.IsActivityStreamsProfile() { - return 41 - } - if this.IsForgeFedPush() { - return 42 - } - if this.IsActivityStreamsQuestion() { - return 43 - } - if this.IsActivityStreamsRead() { - return 44 - } - if this.IsActivityStreamsReject() { - return 45 - } - if this.IsActivityStreamsRelationship() { - return 46 - } - if this.IsActivityStreamsRemove() { - return 47 - } - if this.IsForgeFedRepository() { - return 48 - } - if this.IsActivityStreamsService() { - return 49 - } - if this.IsActivityStreamsTentativeAccept() { - return 50 - } - if this.IsActivityStreamsTentativeReject() { - return 51 - } - if this.IsForgeFedTicket() { - return 52 - } - if this.IsForgeFedTicketDependency() { - return 53 - } - if this.IsActivityStreamsTombstone() { - return 54 - } - if this.IsActivityStreamsTravel() { - return 55 - } - if this.IsActivityStreamsUndo() { - return 56 - } - if this.IsActivityStreamsUpdate() { - return 57 - } - if this.IsActivityStreamsVideo() { - return 58 - } - if this.IsActivityStreamsView() { - return 59 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.ActivityStreamsRelationshipPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsRelationship". -func (this ActivityStreamsRelationshipPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsRelationship" - } else { - return "ActivityStreamsRelationship" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsRelationshipPropertyIterator) Next() vocab.ActivityStreamsRelationshipPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsRelationshipPropertyIterator) Prev() vocab.ActivityStreamsRelationshipPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsRelationshipPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsRelationship property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsRelationshipPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsRelationshipProperty is the non-functional property -// "relationship". It is permitted to have one or more values, and of -// different value types. -type ActivityStreamsRelationshipProperty struct { - properties []*ActivityStreamsRelationshipPropertyIterator - alias string -} - -// DeserializeRelationshipProperty creates a "relationship" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeRelationshipProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRelationshipProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "relationship" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "relationship") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsRelationshipProperty{ - alias: alias, - properties: []*ActivityStreamsRelationshipPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsRelationshipPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsRelationshipPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsRelationshipProperty creates a new relationship property. -func NewActivityStreamsRelationshipProperty() *ActivityStreamsRelationshipProperty { - return &ActivityStreamsRelationshipProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "relationship". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "relationship". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "relationship". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "relationship". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "relationship". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "relationship". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "relationship". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "relationship". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "relationship". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "relationship". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "relationship". Invalidates -// iterators that are traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "relationship". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "relationship". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "relationship". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "relationship". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "relationship". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "relationship". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "relationship". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "relationship". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "relationship". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "relationship". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsRelationshipProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "relationship". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "relationship" -func (this *ActivityStreamsRelationshipProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "relationship". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "relationship". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsRelationshipProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "relationship". Invalidates iterators that are traversing using -// Prev. Returns an error if the type is not a valid one to set for this -// property. -func (this *ActivityStreamsRelationshipProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsRelationshipProperty) At(index int) vocab.ActivityStreamsRelationshipPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsRelationshipProperty) Begin() vocab.ActivityStreamsRelationshipPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsRelationshipProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsRelationshipProperty) End() vocab.ActivityStreamsRelationshipPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "relationship". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "relationship". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "relationship". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "relationship". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "relationship". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "relationship". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "relationship". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "relationship". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "relationship". Existing -// elements at that index and higher are shifted back once. Invalidates all -// iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "relationship". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "relationship". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "relationship". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "relationship". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "relationship". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "relationship". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "relationship". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "relationship". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "relationship". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property -// "relationship". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "relationship". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "relationship". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "relationship". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsRelationshipProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsRelationshipProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsRelationshipProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "relationship" property. -func (this ActivityStreamsRelationshipProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsRelationshipProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsRelationshipProperty) LessThan(o vocab.ActivityStreamsRelationshipProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("relationship") with any alias. -func (this ActivityStreamsRelationshipProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "relationship" - } else { - return "relationship" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "relationship". Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "relationship". Invalidates all -// iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "relationship". Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "relationship". -func (this *ActivityStreamsRelationshipProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "relationship". Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "relationship". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ActivityStreamsRelationshipProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "relationship", regardless of its type. Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsRelationshipPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsRelationshipProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "relationship". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "relationship". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "relationship". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "relationship". Panics if the index -// is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "relationship". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "relationship". Panics if the -// index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "relationship". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "relationship". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "relationship". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "relationship". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "relationship". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsRelationshipProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "relationship". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsRelationshipProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "relationship". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "relationship". Panics if the index is out of bounds. -func (this *ActivityStreamsRelationshipProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "relationship". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsRelationshipProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "relationship". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsRelationshipProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "relationship". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. Panics if the index is out of -// bounds. -func (this *ActivityStreamsRelationshipProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsRelationshipPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "relationship" -// property. -func (this ActivityStreamsRelationshipProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_doc.go deleted file mode 100644 index 6a8451012..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyreplies contains the implementation for the replies property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyreplies diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_pkg.go deleted file mode 100644 index b87cc931b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_pkg.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyreplies - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go deleted file mode 100644 index 8213e0a49..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go +++ /dev/null @@ -1,360 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyreplies - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsRepliesProperty is the functional property "replies". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsRepliesProperty struct { - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeRepliesProperty creates a "replies" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeRepliesProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsRepliesProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "replies" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "replies") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsRepliesProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRepliesProperty{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRepliesProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRepliesProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsRepliesProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsRepliesProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsRepliesProperty creates a new replies property. -func NewActivityStreamsRepliesProperty() *ActivityStreamsRepliesProperty { - return &ActivityStreamsRepliesProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsRepliesProperty) Clear() { - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsRepliesProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsRepliesProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsRepliesProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsRepliesProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsRepliesProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsRepliesProperty) GetType() vocab.Type { - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsRepliesProperty) HasAny() bool { - return this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsRepliesProperty) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsRepliesProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsRepliesProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsRepliesProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsRepliesProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsRepliesProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsRepliesProperty) KindIndex() int { - if this.IsActivityStreamsCollection() { - return 0 - } - if this.IsActivityStreamsCollectionPage() { - return 1 - } - if this.IsActivityStreamsOrderedCollection() { - return 2 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 3 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsRepliesProperty) LessThan(o vocab.ActivityStreamsRepliesProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "replies". -func (this ActivityStreamsRepliesProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "replies" - } else { - return "replies" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsRepliesProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsRepliesProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.Clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsRepliesProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsRepliesProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsRepliesProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsRepliesProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsRepliesProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on replies property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_doc.go deleted file mode 100644 index b40de1b42..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyresult contains the implementation for the result property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyresult diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_pkg.go deleted file mode 100644 index b7dcf088b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyresult - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go deleted file mode 100644 index d2644133d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go +++ /dev/null @@ -1,7031 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyresult - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsResultPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsResultPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsResultProperty -} - -// NewActivityStreamsResultPropertyIterator creates a new ActivityStreamsResult -// property. -func NewActivityStreamsResultPropertyIterator() *ActivityStreamsResultPropertyIterator { - return &ActivityStreamsResultPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsResultPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsResultPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsResultPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsResultPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsResultPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsResultPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsResultPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsResultPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsResultPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsResultPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsResultPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsResultPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsResultPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStreamsResultPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsResult". -func (this ActivityStreamsResultPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsResult" - } else { - return "ActivityStreamsResult" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsResultPropertyIterator) Next() vocab.ActivityStreamsResultPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsResultPropertyIterator) Prev() vocab.ActivityStreamsResultPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsResultPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsResultPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsResult property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsResultPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsResultProperty is the non-functional property "result". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsResultProperty struct { - properties []*ActivityStreamsResultPropertyIterator - alias string -} - -// DeserializeResultProperty creates a "result" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeResultProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsResultProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "result" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "result") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsResultProperty{ - alias: alias, - properties: []*ActivityStreamsResultPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsResultPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsResultPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsResultProperty creates a new result property. -func NewActivityStreamsResultProperty() *ActivityStreamsResultProperty { - return &ActivityStreamsResultProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "result". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "result". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "result". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "result". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "result". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "result". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "result". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "result". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "result". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "result". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "result". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "result". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsResultProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "result" -func (this *ActivityStreamsResultProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "result". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsResultProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "result". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsResultProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsResultProperty) At(index int) vocab.ActivityStreamsResultPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsResultProperty) Begin() vocab.ActivityStreamsResultPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsResultProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsResultProperty) End() vocab.ActivityStreamsResultPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "result". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "result". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "result". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "result". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "result". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "result". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "result". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "result". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "result". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "result". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "result". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "result". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "result". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "result". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "result". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "result". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "result". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "result". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "result". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "result". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "result". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "result". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsResultProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsResultProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsResultProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "result" property. -func (this ActivityStreamsResultProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsResultProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsResultProperty) LessThan(o vocab.ActivityStreamsResultProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("result") with any alias. -func (this ActivityStreamsResultProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "result" - } else { - return "result" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "result". Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "result". Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "result". -func (this *ActivityStreamsResultProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "result". Invalidates all iterators. -func (this *ActivityStreamsResultProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsResultPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "result". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsResultProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsResultPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "result", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsResultProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsResultPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsResultProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "result". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "result". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "result". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "result". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "result". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "result". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "result". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "result". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "result". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "result". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "result". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "result". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "result". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "result". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "result". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "result". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "result". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsResultProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "result". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsResultProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "result". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "result". Panics if the index is out of bounds. -func (this *ActivityStreamsResultProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "result". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "result". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsResultProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "result". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsResultProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsResultPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "result" property. -func (this ActivityStreamsResultProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_doc.go deleted file mode 100644 index 339d0b18f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyshares contains the implementation for the shares property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyshares diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_pkg.go deleted file mode 100644 index 5e5c55a03..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_pkg.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyshares - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go deleted file mode 100644 index 17d6b3b4e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go +++ /dev/null @@ -1,360 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyshares - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsSharesProperty is the functional property "shares". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsSharesProperty struct { - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeSharesProperty creates a "shares" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeSharesProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsSharesProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "shares" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "shares") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsSharesProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSharesProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSharesProperty{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSharesProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSharesProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsSharesProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsSharesProperty creates a new shares property. -func NewActivityStreamsSharesProperty() *ActivityStreamsSharesProperty { - return &ActivityStreamsSharesProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsSharesProperty) Clear() { - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsSharesProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsSharesProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsSharesProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsSharesProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsSharesProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsSharesProperty) GetType() vocab.Type { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsSharesProperty) HasAny() bool { - return this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsSharesProperty) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsSharesProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsSharesProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsSharesProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsSharesProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsSharesProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsSharesProperty) KindIndex() int { - if this.IsActivityStreamsOrderedCollection() { - return 0 - } - if this.IsActivityStreamsCollection() { - return 1 - } - if this.IsActivityStreamsCollectionPage() { - return 2 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 3 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsSharesProperty) LessThan(o vocab.ActivityStreamsSharesProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "shares". -func (this ActivityStreamsSharesProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "shares" - } else { - return "shares" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsSharesProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsSharesProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.Clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsSharesProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsSharesProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsSharesProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsSharesProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsSharesProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on shares property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_doc.go deleted file mode 100644 index 689076beb..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertysource contains the implementation for the source property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertysource diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_pkg.go deleted file mode 100644 index 3ed50bcbe..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysource - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go deleted file mode 100644 index 35acec7c3..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go +++ /dev/null @@ -1,3024 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysource - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsSourceProperty is the functional property "source". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsSourceProperty struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeSourceProperty creates a "source" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsSourceProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "source" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "source") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsSourceProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSourceProperty{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsSourceProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsSourceProperty creates a new source property. -func NewActivityStreamsSourceProperty() *ActivityStreamsSourceProperty { - return &ActivityStreamsSourceProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsSourceProperty) Clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsSourceProperty) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsSourceProperty) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsSourceProperty) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsSourceProperty) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsSourceProperty) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsSourceProperty) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsSourceProperty) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsSourceProperty) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsSourceProperty) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsSourceProperty) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsSourceProperty) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsSourceProperty) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsSourceProperty) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsSourceProperty) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsSourceProperty) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSourceProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "source". -func (this ActivityStreamsSourceProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "source" - } else { - return "source" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.Clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.Clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.Clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.Clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.Clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.Clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.Clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.Clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.Clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.Clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.Clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.Clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.Clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.Clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.Clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.Clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.Clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.Clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.Clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.Clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.Clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.Clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.Clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.Clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.Clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.Clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.Clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.Clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.Clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.Clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.Clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.Clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.Clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.Clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.Clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.Clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.Clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.Clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.Clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.Clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.Clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.Clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.Clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.Clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.Clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.Clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.Clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.Clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.Clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.Clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.Clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.Clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.Clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetForgeFedPush(v vocab.ForgeFedPush) { - this.Clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.Clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.Clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.Clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsSourceProperty) SetTootEmoji(v vocab.TootEmoji) { - this.Clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsSourceProperty) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.Clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on source property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_doc.go deleted file mode 100644 index def07efae..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertystartindex contains the implementation for the startIndex -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertystartindex diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go deleted file mode 100644 index ef561ec70..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertystartindex - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go deleted file mode 100644 index 29c57b906..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertystartindex - -import ( - "fmt" - nonnegativeinteger "github.com/go-fed/activity/streams/values/nonNegativeInteger" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsStartIndexProperty is the functional property "startIndex". It -// is permitted to be a single default-valued value type. -type ActivityStreamsStartIndexProperty struct { - xmlschemaNonNegativeIntegerMember int - hasNonNegativeIntegerMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeStartIndexProperty creates a "startIndex" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeStartIndexProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsStartIndexProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "startIndex" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "startIndex") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsStartIndexProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err == nil { - this := &ActivityStreamsStartIndexProperty{ - alias: alias, - hasNonNegativeIntegerMember: true, - xmlschemaNonNegativeIntegerMember: v, - } - return this, nil - } - this := &ActivityStreamsStartIndexProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsStartIndexProperty creates a new startIndex property. -func NewActivityStreamsStartIndexProperty() *ActivityStreamsStartIndexProperty { - return &ActivityStreamsStartIndexProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling -// IsXMLSchemaNonNegativeInteger afterwards will return false. -func (this *ActivityStreamsStartIndexProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasNonNegativeIntegerMember = false -} - -// Get returns the value of this property. When IsXMLSchemaNonNegativeInteger -// returns false, Get will return any arbitrary value. -func (this ActivityStreamsStartIndexProperty) Get() int { - return this.xmlschemaNonNegativeIntegerMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsStartIndexProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsStartIndexProperty) HasAny() bool { - return this.IsXMLSchemaNonNegativeInteger() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsStartIndexProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaNonNegativeInteger returns true if this property is set and not an -// IRI. -func (this ActivityStreamsStartIndexProperty) IsXMLSchemaNonNegativeInteger() bool { - return this.hasNonNegativeIntegerMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsStartIndexProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsStartIndexProperty) KindIndex() int { - if this.IsXMLSchemaNonNegativeInteger() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsStartIndexProperty) LessThan(o vocab.ActivityStreamsStartIndexProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaNonNegativeInteger() && o.IsXMLSchemaNonNegativeInteger() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return nonnegativeinteger.LessNonNegativeInteger(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "startIndex". -func (this ActivityStreamsStartIndexProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "startIndex" - } else { - return "startIndex" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsStartIndexProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaNonNegativeInteger() { - return nonnegativeinteger.SerializeNonNegativeInteger(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaNonNegativeInteger -// afterwards will return true. -func (this *ActivityStreamsStartIndexProperty) Set(v int) { - this.Clear() - this.xmlschemaNonNegativeIntegerMember = v - this.hasNonNegativeIntegerMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsStartIndexProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_doc.go deleted file mode 100644 index 7d0f612e6..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertystarttime contains the implementation for the startTime -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertystarttime diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go deleted file mode 100644 index 676e619df..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertystarttime - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go deleted file mode 100644 index 15b3168fe..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertystarttime - -import ( - "fmt" - datetime "github.com/go-fed/activity/streams/values/dateTime" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" - "time" -) - -// ActivityStreamsStartTimeProperty is the functional property "startTime". It is -// permitted to be a single default-valued value type. -type ActivityStreamsStartTimeProperty struct { - xmlschemaDateTimeMember time.Time - hasDateTimeMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeStartTimeProperty creates a "startTime" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeStartTimeProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsStartTimeProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "startTime" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "startTime") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsStartTimeProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := datetime.DeserializeDateTime(i); err == nil { - this := &ActivityStreamsStartTimeProperty{ - alias: alias, - hasDateTimeMember: true, - xmlschemaDateTimeMember: v, - } - return this, nil - } - this := &ActivityStreamsStartTimeProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsStartTimeProperty creates a new startTime property. -func NewActivityStreamsStartTimeProperty() *ActivityStreamsStartTimeProperty { - return &ActivityStreamsStartTimeProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaDateTime -// afterwards will return false. -func (this *ActivityStreamsStartTimeProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasDateTimeMember = false -} - -// Get returns the value of this property. When IsXMLSchemaDateTime returns false, -// Get will return any arbitrary value. -func (this ActivityStreamsStartTimeProperty) Get() time.Time { - return this.xmlschemaDateTimeMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsStartTimeProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsStartTimeProperty) HasAny() bool { - return this.IsXMLSchemaDateTime() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsStartTimeProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaDateTime returns true if this property is set and not an IRI. -func (this ActivityStreamsStartTimeProperty) IsXMLSchemaDateTime() bool { - return this.hasDateTimeMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsStartTimeProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsStartTimeProperty) KindIndex() int { - if this.IsXMLSchemaDateTime() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsStartTimeProperty) LessThan(o vocab.ActivityStreamsStartTimeProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaDateTime() && o.IsXMLSchemaDateTime() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return datetime.LessDateTime(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "startTime". -func (this ActivityStreamsStartTimeProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "startTime" - } else { - return "startTime" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsStartTimeProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaDateTime() { - return datetime.SerializeDateTime(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaDateTime afterwards -// will return true. -func (this *ActivityStreamsStartTimeProperty) Set(v time.Time) { - this.Clear() - this.xmlschemaDateTimeMember = v - this.hasDateTimeMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsStartTimeProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_doc.go deleted file mode 100644 index 3c9f21e89..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertystreams contains the implementation for the streams property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertystreams diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_pkg.go deleted file mode 100644 index 1ddf6c14b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_pkg.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertystreams - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go deleted file mode 100644 index 83597d0c3..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go +++ /dev/null @@ -1,938 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertystreams - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsStreamsPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsStreamsPropertyIterator struct { - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsStreamsProperty -} - -// NewActivityStreamsStreamsPropertyIterator creates a new ActivityStreamsStreams -// property. -func NewActivityStreamsStreamsPropertyIterator() *ActivityStreamsStreamsPropertyIterator { - return &ActivityStreamsStreamsPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsStreamsPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsStreamsPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsStreamsPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsStreamsPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsStreamsPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsStreamsPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsStreamsPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsStreamsPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsStreamsPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsStreamsPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsStreamsPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsStreamsPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsStreamsPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsStreamsPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsStreamsPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsStreamsPropertyIterator) HasAny() bool { - return this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsStreamsPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsStreamsPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsStreamsPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsStreamsPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsStreamsPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsStreamsPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsStreamsPropertyIterator) KindIndex() int { - if this.IsActivityStreamsOrderedCollection() { - return 0 - } - if this.IsActivityStreamsCollection() { - return 1 - } - if this.IsActivityStreamsCollectionPage() { - return 2 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 3 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsStreamsPropertyIterator) LessThan(o vocab.ActivityStreamsStreamsPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsStreams". -func (this ActivityStreamsStreamsPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsStreams" - } else { - return "ActivityStreamsStreams" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsStreamsPropertyIterator) Next() vocab.ActivityStreamsStreamsPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsStreamsPropertyIterator) Prev() vocab.ActivityStreamsStreamsPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsStreamsPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsStreamsPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsStreamsPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsStreamsPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsStreamsPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsStreamsPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsStreams property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsStreamsPropertyIterator) clear() { - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsStreamsPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsStreamsProperty is the non-functional property "streams". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsStreamsProperty struct { - properties []*ActivityStreamsStreamsPropertyIterator - alias string -} - -// DeserializeStreamsProperty creates a "streams" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeStreamsProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsStreamsProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "streams" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "streams") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsStreamsProperty{ - alias: alias, - properties: []*ActivityStreamsStreamsPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsStreamsPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsStreamsPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsStreamsProperty creates a new streams property. -func NewActivityStreamsStreamsProperty() *ActivityStreamsStreamsProperty { - return &ActivityStreamsStreamsProperty{alias: ""} -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "streams". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsStreamsProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsStreamsPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "streams". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsStreamsProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsStreamsPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "streams". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsStreamsProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsStreamsPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "streams". Invalidates -// iterators that are traversing using Prev. -func (this *ActivityStreamsStreamsProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsStreamsPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "streams" -func (this *ActivityStreamsStreamsProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsStreamsPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "streams". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsStreamsProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsStreamsPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsStreamsProperty) At(index int) vocab.ActivityStreamsStreamsPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsStreamsProperty) Begin() vocab.ActivityStreamsStreamsPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsStreamsProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsStreamsProperty) End() vocab.ActivityStreamsStreamsPropertyIterator { - return nil -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "streams". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsStreamsProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsStreamsPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "streams". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsStreamsProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsStreamsPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "streams". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsStreamsProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsStreamsPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "streams". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsStreamsProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsStreamsPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "streams". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsStreamsProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsStreamsPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "streams". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsStreamsProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsStreamsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsStreamsProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsStreamsProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "streams" property. -func (this ActivityStreamsStreamsProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsStreamsProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsStreamsProperty) LessThan(o vocab.ActivityStreamsStreamsProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("streams") with any alias. -func (this ActivityStreamsStreamsProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "streams" - } else { - return "streams" - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "streams". Invalidates all iterators. -func (this *ActivityStreamsStreamsProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsStreamsPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "streams". Invalidates all iterators. -func (this *ActivityStreamsStreamsProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsStreamsPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "streams". Invalidates all iterators. -func (this *ActivityStreamsStreamsProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsStreamsPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "streams". Invalidates all -// iterators. -func (this *ActivityStreamsStreamsProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsStreamsPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "streams". -func (this *ActivityStreamsStreamsProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsStreamsPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "streams". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsStreamsProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsStreamsPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsStreamsPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "streams", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsStreamsProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsStreamsPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsStreamsProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "streams". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsStreamsProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsStreamsPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "streams". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsStreamsProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsStreamsPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "streams". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsStreamsProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsStreamsPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "streams". Panics if the index -// is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsStreamsProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsStreamsPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "streams". Panics if the index is out of bounds. -func (this *ActivityStreamsStreamsProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsStreamsPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "streams". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsStreamsProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsStreamsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "streams" property. -func (this ActivityStreamsStreamsProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_doc.go deleted file mode 100644 index 70070f9b7..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertysubject contains the implementation for the subject property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertysubject diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_pkg.go deleted file mode 100644 index 75cc38e21..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysubject - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go deleted file mode 100644 index 3d0e02e04..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go +++ /dev/null @@ -1,3024 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysubject - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsSubjectProperty is the functional property "subject". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsSubjectProperty struct { - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeSubjectProperty creates a "subject" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsSubjectProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "subject" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "subject") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsSubjectProperty{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsSubjectProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsSubjectProperty creates a new subject property. -func NewActivityStreamsSubjectProperty() *ActivityStreamsSubjectProperty { - return &ActivityStreamsSubjectProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsSubjectProperty) Clear() { - this.activitystreamsLinkMember = nil - this.activitystreamsObjectMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsSubjectProperty) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsSubjectProperty) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsSubjectProperty) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsSubjectProperty) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsSubjectProperty) GetType() vocab.Type { - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsSubjectProperty) HasAny() bool { - return this.IsActivityStreamsLink() || - this.IsActivityStreamsObject() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsSubjectProperty) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsSubjectProperty) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsSubjectProperty) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsSubjectProperty) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsSubjectProperty) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsSubjectProperty) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsSubjectProperty) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsSubjectProperty) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsSubjectProperty) KindIndex() int { - if this.IsActivityStreamsLink() { - return 0 - } - if this.IsActivityStreamsObject() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubjectProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "subject". -func (this ActivityStreamsSubjectProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "subject" - } else { - return "subject" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.Clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.Clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.Clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.Clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.Clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.Clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.Clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.Clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.Clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.Clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.Clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.Clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.Clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.Clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.Clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.Clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.Clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.Clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.Clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.Clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.Clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.Clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.Clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.Clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.Clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.Clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.Clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.Clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.Clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.Clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.Clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.Clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.Clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.Clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.Clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.Clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.Clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.Clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.Clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.Clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.Clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.Clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.Clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.Clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.Clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.Clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.Clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.Clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.Clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.Clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.Clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.Clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.Clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetForgeFedPush(v vocab.ForgeFedPush) { - this.Clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.Clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.Clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.Clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsSubjectProperty) SetTootEmoji(v vocab.TootEmoji) { - this.Clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsSubjectProperty) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.Clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on subject property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_doc.go deleted file mode 100644 index 4c3116554..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertysummary contains the implementation for the summary property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertysummary diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_pkg.go deleted file mode 100644 index a83e43a5c..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysummary - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go deleted file mode 100644 index 5acc2dfda..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go +++ /dev/null @@ -1,668 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysummary - -import ( - "fmt" - langstring "github.com/go-fed/activity/streams/values/langString" - string1 "github.com/go-fed/activity/streams/values/string" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsSummaryPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsSummaryPropertyIterator struct { - xmlschemaStringMember string - hasStringMember bool - rdfLangStringMember map[string]string - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsSummaryProperty -} - -// NewActivityStreamsSummaryPropertyIterator creates a new ActivityStreamsSummary -// property. -func NewActivityStreamsSummaryPropertyIterator() *ActivityStreamsSummaryPropertyIterator { - return &ActivityStreamsSummaryPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsSummaryPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsSummaryPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsSummaryPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsSummaryPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &ActivityStreamsSummaryPropertyIterator{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } else if v, err := langstring.DeserializeLangString(i); err == nil { - this := &ActivityStreamsSummaryPropertyIterator{ - alias: alias, - rdfLangStringMember: v, - } - return this, nil - } - this := &ActivityStreamsSummaryPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsSummaryPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetLanguage returns the value for the specified BCP47 language code, or an -// empty string if it is either not a language map or no value is present. -func (this ActivityStreamsSummaryPropertyIterator) GetLanguage(bcp47 string) string { - if this.rdfLangStringMember == nil { - return "" - } else if v, ok := this.rdfLangStringMember[bcp47]; ok { - return v - } else { - return "" - } -} - -// GetRDFLangString returns the value of this property. When IsRDFLangString -// returns false, GetRDFLangString will return an arbitrary value. -func (this ActivityStreamsSummaryPropertyIterator) GetRDFLangString() map[string]string { - return this.rdfLangStringMember -} - -// GetXMLSchemaString returns the value of this property. When IsXMLSchemaString -// returns false, GetXMLSchemaString will return an arbitrary value. -func (this ActivityStreamsSummaryPropertyIterator) GetXMLSchemaString() string { - return this.xmlschemaStringMember -} - -// HasAny returns true if any of the values are set, except for the natural -// language map. When true, the specific has, getter, and setter methods may -// be used to determine what kind of value there is to access and set this -// property. To determine if the property was set as a natural language map, -// use the IsRDFLangString method instead. -func (this ActivityStreamsSummaryPropertyIterator) HasAny() bool { - return this.IsXMLSchemaString() || - this.IsRDFLangString() || - this.iri != nil -} - -// HasLanguage returns true if the natural language map has an entry for the -// specified BCP47 language code. -func (this ActivityStreamsSummaryPropertyIterator) HasLanguage(bcp47 string) bool { - if this.rdfLangStringMember == nil { - return false - } else { - _, ok := this.rdfLangStringMember[bcp47] - return ok - } -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsSummaryPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsRDFLangString returns true if this property has a type of "langString". When -// true, use the GetRDFLangString and SetRDFLangString methods to access and -// set this property.. To determine if the property was set as a natural -// language map, use the IsRDFLangString method instead. -func (this ActivityStreamsSummaryPropertyIterator) IsRDFLangString() bool { - return this.rdfLangStringMember != nil -} - -// IsXMLSchemaString returns true if this property has a type of "string". When -// true, use the GetXMLSchemaString and SetXMLSchemaString methods to access -// and set this property.. To determine if the property was set as a natural -// language map, use the IsRDFLangString method instead. -func (this ActivityStreamsSummaryPropertyIterator) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsSummaryPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsSummaryPropertyIterator) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsRDFLangString() { - return 1 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsSummaryPropertyIterator) LessThan(o vocab.ActivityStreamsSummaryPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsXMLSchemaString() { - return string1.LessString(this.GetXMLSchemaString(), o.GetXMLSchemaString()) - } else if this.IsRDFLangString() { - return langstring.LessLangString(this.GetRDFLangString(), o.GetRDFLangString()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsSummary". -func (this ActivityStreamsSummaryPropertyIterator) Name() string { - if this.IsRDFLangString() { - return "ActivityStreamsSummaryMap" - } else { - return "ActivityStreamsSummary" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsSummaryPropertyIterator) Next() vocab.ActivityStreamsSummaryPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsSummaryPropertyIterator) Prev() vocab.ActivityStreamsSummaryPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsSummaryPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetLanguage sets the value for the specified BCP47 language code. -func (this *ActivityStreamsSummaryPropertyIterator) SetLanguage(bcp47, value string) { - this.hasStringMember = false - this.rdfLangStringMember = nil - this.unknown = nil - this.iri = nil - if this.rdfLangStringMember == nil { - this.rdfLangStringMember = make(map[string]string) - } - this.rdfLangStringMember[bcp47] = value -} - -// SetRDFLangString sets the value of this property and clears the natural -// language map. Calling IsRDFLangString afterwards will return true. Calling -// IsRDFLangString afterwards returns false. -func (this *ActivityStreamsSummaryPropertyIterator) SetRDFLangString(v map[string]string) { - this.clear() - this.rdfLangStringMember = v -} - -// SetXMLSchemaString sets the value of this property and clears the natural -// language map. Calling IsXMLSchemaString afterwards will return true. -// Calling IsRDFLangString afterwards returns false. -func (this *ActivityStreamsSummaryPropertyIterator) SetXMLSchemaString(v string) { - this.clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// clear ensures no value and no language map for this property is set. Calling -// HasAny or any of the 'Is' methods afterwards will return false. -func (this *ActivityStreamsSummaryPropertyIterator) clear() { - this.hasStringMember = false - this.rdfLangStringMember = nil - this.unknown = nil - this.iri = nil - this.rdfLangStringMember = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsSummaryPropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.GetXMLSchemaString()) - } else if this.IsRDFLangString() { - return langstring.SerializeLangString(this.GetRDFLangString()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsSummaryProperty is the non-functional property "summary". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsSummaryProperty struct { - properties []*ActivityStreamsSummaryPropertyIterator - alias string -} - -// DeserializeSummaryProperty creates a "summary" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeSummaryProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSummaryProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "summary" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "summary") - } - i, ok := m[propName] - if !ok { - // Attempt to find the map instead. - i, ok = m[propName+"Map"] - } - if ok { - this := &ActivityStreamsSummaryProperty{ - alias: alias, - properties: []*ActivityStreamsSummaryPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsSummaryPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsSummaryPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsSummaryProperty creates a new summary property. -func NewActivityStreamsSummaryProperty() *ActivityStreamsSummaryProperty { - return &ActivityStreamsSummaryProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property "summary" -func (this *ActivityStreamsSummaryProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsSummaryPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendRDFLangString appends a langString value to the back of a list of the -// property "summary". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsSummaryProperty) AppendRDFLangString(v map[string]string) { - this.properties = append(this.properties, &ActivityStreamsSummaryPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - rdfLangStringMember: v, - }) -} - -// AppendXMLSchemaString appends a string value to the back of a list of the -// property "summary". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsSummaryProperty) AppendXMLSchemaString(v string) { - this.properties = append(this.properties, &ActivityStreamsSummaryPropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: this.Len(), - parent: this, - xmlschemaStringMember: v, - }) -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsSummaryProperty) At(index int) vocab.ActivityStreamsSummaryPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsSummaryProperty) Begin() vocab.ActivityStreamsSummaryPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsSummaryProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsSummaryProperty) End() vocab.ActivityStreamsSummaryPropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property "summary". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsSummaryProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsSummaryPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertRDFLangString inserts a langString value at the specified index for a -// property "summary". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsSummaryProperty) InsertRDFLangString(idx int, v map[string]string) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsSummaryPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - rdfLangStringMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaString inserts a string value at the specified index for a -// property "summary". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsSummaryProperty) InsertXMLSchemaString(idx int, v string) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsSummaryPropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsSummaryProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsSummaryProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "summary" property. -func (this ActivityStreamsSummaryProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsSummaryProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetXMLSchemaString() - rhs := this.properties[j].GetXMLSchemaString() - return string1.LessString(lhs, rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetRDFLangString() - rhs := this.properties[j].GetRDFLangString() - return langstring.LessLangString(lhs, rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsSummaryProperty) LessThan(o vocab.ActivityStreamsSummaryProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("summary") with any alias. -func (this ActivityStreamsSummaryProperty) Name() string { - if this.Len() == 1 && this.At(0).IsRDFLangString() { - return "summaryMap" - } else { - return "summary" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "summary". -func (this *ActivityStreamsSummaryProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsSummaryPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependRDFLangString prepends a langString value to the front of a list of the -// property "summary". Invalidates all iterators. -func (this *ActivityStreamsSummaryProperty) PrependRDFLangString(v map[string]string) { - this.properties = append([]*ActivityStreamsSummaryPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - rdfLangStringMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaString prepends a string value to the front of a list of the -// property "summary". Invalidates all iterators. -func (this *ActivityStreamsSummaryProperty) PrependXMLSchemaString(v string) { - this.properties = append([]*ActivityStreamsSummaryPropertyIterator{{ - alias: this.alias, - hasStringMember: true, - myIdx: 0, - parent: this, - xmlschemaStringMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Remove deletes an element at the specified index from a list of the property -// "summary", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsSummaryProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsSummaryPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsSummaryProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "summary". Panics if the index is out of bounds. -func (this *ActivityStreamsSummaryProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsSummaryPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetRDFLangString sets a langString value to be at the specified index for the -// property "summary". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsSummaryProperty) SetRDFLangString(idx int, v map[string]string) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsSummaryPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - rdfLangStringMember: v, - } -} - -// SetXMLSchemaString sets a string value to be at the specified index for the -// property "summary". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsSummaryProperty) SetXMLSchemaString(idx int, v string) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsSummaryPropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } -} - -// Swap swaps the location of values at two indices for the "summary" property. -func (this ActivityStreamsSummaryProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_doc.go deleted file mode 100644 index 5f71d3497..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertytag contains the implementation for the tag property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertytag diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_pkg.go deleted file mode 100644 index 1407af2c0..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertytag - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go deleted file mode 100644 index 2d1472f91..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go +++ /dev/null @@ -1,7028 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertytag - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsTagPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsTagPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsTagProperty -} - -// NewActivityStreamsTagPropertyIterator creates a new ActivityStreamsTag property. -func NewActivityStreamsTagPropertyIterator() *ActivityStreamsTagPropertyIterator { - return &ActivityStreamsTagPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsTagPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsTagPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTagPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsTagPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsTagPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsTagPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsTagPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsTagPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsTagPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsTagPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsTagPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsTagPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsTagPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsTagPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsTag". -func (this ActivityStreamsTagPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsTag" - } else { - return "ActivityStreamsTag" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsTagPropertyIterator) Next() vocab.ActivityStreamsTagPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsTagPropertyIterator) Prev() vocab.ActivityStreamsTagPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsTagPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsTagPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsTag property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsTagPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsTagProperty is the non-functional property "tag". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsTagProperty struct { - properties []*ActivityStreamsTagPropertyIterator - alias string -} - -// DeserializeTagProperty creates a "tag" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeTagProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTagProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "tag" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "tag") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsTagProperty{ - alias: alias, - properties: []*ActivityStreamsTagPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsTagPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsTagPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsTagProperty creates a new tag property. -func NewActivityStreamsTagProperty() *ActivityStreamsTagProperty { - return &ActivityStreamsTagProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "tag". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "tag". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "tag". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "tag". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "tag". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "tag". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "tag". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "tag". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "tag". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "tag". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "tag". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsTagProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "tag" -func (this *ActivityStreamsTagProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "tag". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTagProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "tag". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsTagProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsTagProperty) At(index int) vocab.ActivityStreamsTagPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsTagProperty) Begin() vocab.ActivityStreamsTagPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsTagProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsTagProperty) End() vocab.ActivityStreamsTagPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "tag". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "tag". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "tag". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "tag". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "tag". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "tag". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "tag". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "tag". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "tag". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "tag". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "tag". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "tag". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "tag". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "tag". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "tag". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "tag". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "tag". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "tag". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "tag". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "tag". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "tag". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "tag". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "tag". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "tag". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "tag". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "tag". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "tag". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "tag". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. -func (this *ActivityStreamsTagProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsTagProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsTagProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "tag" property. -func (this ActivityStreamsTagProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsTagProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsTagProperty) LessThan(o vocab.ActivityStreamsTagProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("tag") with any alias. -func (this ActivityStreamsTagProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "tag" - } else { - return "tag" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "tag". Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "tag". Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property "tag". -func (this *ActivityStreamsTagProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "tag". Invalidates all iterators. -func (this *ActivityStreamsTagProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsTagPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "tag". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. -func (this *ActivityStreamsTagProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsTagPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "tag", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsTagProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsTagPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsTagProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "tag". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "tag". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "tag". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "tag". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "tag". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "tag". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "tag". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "tag". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "tag". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "tag". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "tag". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "tag". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "tag". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "tag". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "tag". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "tag". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "tag". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTagProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "tag". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property "tag". -// Panics if the index is out of bounds. -func (this *ActivityStreamsTagProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "tag". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsTagProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "tag". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTagProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "tag". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsTagProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsTagPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "tag" property. -func (this ActivityStreamsTagProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_doc.go deleted file mode 100644 index 45b158ba4..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertytarget contains the implementation for the target property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertytarget diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_pkg.go deleted file mode 100644 index e2404b595..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertytarget - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go deleted file mode 100644 index f5d293a8d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go +++ /dev/null @@ -1,7031 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertytarget - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsTargetPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsTargetPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsTargetProperty -} - -// NewActivityStreamsTargetPropertyIterator creates a new ActivityStreamsTarget -// property. -func NewActivityStreamsTargetPropertyIterator() *ActivityStreamsTargetPropertyIterator { - return &ActivityStreamsTargetPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsTargetPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsTargetPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsTargetPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsTargetPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsTargetPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsTargetPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsTargetPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsTargetPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsTargetPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsTargetPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsTargetPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsTargetPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsTargetPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStreamsTargetPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsTarget". -func (this ActivityStreamsTargetPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsTarget" - } else { - return "ActivityStreamsTarget" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsTargetPropertyIterator) Next() vocab.ActivityStreamsTargetPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsTargetPropertyIterator) Prev() vocab.ActivityStreamsTargetPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsTargetPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsTarget property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsTargetPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsTargetProperty is the non-functional property "target". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsTargetProperty struct { - properties []*ActivityStreamsTargetPropertyIterator - alias string -} - -// DeserializeTargetProperty creates a "target" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeTargetProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTargetProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "target" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "target") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsTargetProperty{ - alias: alias, - properties: []*ActivityStreamsTargetPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsTargetPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsTargetPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsTargetProperty creates a new target property. -func NewActivityStreamsTargetProperty() *ActivityStreamsTargetProperty { - return &ActivityStreamsTargetProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "target". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "target". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "target". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "target". Invalidates iterators that -// are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "target". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "target". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "target". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "target". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "target". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "target". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "target". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "target". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsTargetProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "target" -func (this *ActivityStreamsTargetProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "target". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsTargetProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "target". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsTargetProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsTargetProperty) At(index int) vocab.ActivityStreamsTargetPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsTargetProperty) Begin() vocab.ActivityStreamsTargetPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsTargetProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsTargetProperty) End() vocab.ActivityStreamsTargetPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "target". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "target". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "target". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "target". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "target". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "target". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "target". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "target". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "target". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "target". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "target". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "target". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "target". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "target". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "target". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "target". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "target". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "target". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "target". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "target". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "target". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "target". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsTargetProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsTargetProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsTargetProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "target" property. -func (this ActivityStreamsTargetProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsTargetProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsTargetProperty) LessThan(o vocab.ActivityStreamsTargetProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("target") with any alias. -func (this ActivityStreamsTargetProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "target" - } else { - return "target" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "target". Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "target". Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "target". -func (this *ActivityStreamsTargetProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "target". Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "target". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. -func (this *ActivityStreamsTargetProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsTargetPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "target", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsTargetPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsTargetProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "target". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "target". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "target". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "target". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "target". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "target". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "target". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "target". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "target". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "target". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "target". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "target". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "target". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "target". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "target". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "target". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "target". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsTargetProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "target". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsTargetProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "target". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "target". Panics if the index is out of bounds. -func (this *ActivityStreamsTargetProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "target". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "target". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsTargetProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "target". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsTargetProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsTargetPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "target" property. -func (this ActivityStreamsTargetProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_doc.go deleted file mode 100644 index 83448156e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyto contains the implementation for the to property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyto diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_pkg.go deleted file mode 100644 index c4f9f3b3b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyto - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go deleted file mode 100644 index b5082a484..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go +++ /dev/null @@ -1,7028 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyto - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsToPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsToPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ActivityStreamsToProperty -} - -// NewActivityStreamsToPropertyIterator creates a new ActivityStreamsTo property. -func NewActivityStreamsToPropertyIterator() *ActivityStreamsToPropertyIterator { - return &ActivityStreamsToPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsToPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsToPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsToPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ActivityStreamsToPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ActivityStreamsToPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsToPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ActivityStreamsToPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ActivityStreamsToPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ActivityStreamsToPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ActivityStreamsToPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ActivityStreamsToPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsToPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ActivityStreamsToPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsToPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsToPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ActivityStreamsTo". -func (this ActivityStreamsToPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsTo" - } else { - return "ActivityStreamsTo" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsToPropertyIterator) Next() vocab.ActivityStreamsToPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsToPropertyIterator) Prev() vocab.ActivityStreamsToPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ActivityStreamsToPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ActivityStreamsToPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsTo property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsToPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ActivityStreamsToProperty is the non-functional property "to". It is permitted -// to have one or more values, and of different value types. -type ActivityStreamsToProperty struct { - properties []*ActivityStreamsToPropertyIterator - alias string -} - -// DeserializeToProperty creates a "to" property from an interface representation -// that has been unmarshalled from a text or binary format. -func DeserializeToProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsToProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "to" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "to") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsToProperty{ - alias: alias, - properties: []*ActivityStreamsToPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsToPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsToPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsToProperty creates a new to property. -func NewActivityStreamsToProperty() *ActivityStreamsToProperty { - return &ActivityStreamsToProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "to". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "to". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "to". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "to". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "to". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "to". Invalidates iterators -// that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "to". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "to". Invalidates iterators that are traversing using -// Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "to". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "to". Invalidates iterators that are -// traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "to". Invalidates iterators that are traversing -// using Prev. -func (this *ActivityStreamsToProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "to" -func (this *ActivityStreamsToProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "to". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsToProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "to". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsToProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsToPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsToProperty) At(index int) vocab.ActivityStreamsToPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsToProperty) Begin() vocab.ActivityStreamsToPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsToProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsToProperty) End() vocab.ActivityStreamsToPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "to". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "to". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "to". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "to". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "to". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "to". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "to". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "to". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "to". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "to". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "to". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "to". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "to". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "to". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "to". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "to". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "to". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "to". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "to". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "to". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "to". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "to". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "to". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "to". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "to". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "to". Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "to". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsToProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "to". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. -func (this *ActivityStreamsToProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsToProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsToProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "to" property. -func (this ActivityStreamsToProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsToProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsToProperty) LessThan(o vocab.ActivityStreamsToProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("to") with any alias. -func (this ActivityStreamsToProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "to" - } else { - return "to" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "to". Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "to". Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property "to". -func (this *ActivityStreamsToProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "to". Invalidates all iterators. -func (this *ActivityStreamsToProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ActivityStreamsToPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "to". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. -func (this *ActivityStreamsToProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsToPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsToPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "to", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsToProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsToPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsToProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "to". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "to". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "to". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "to". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "to". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "to". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "to". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "to". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "to". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "to". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "to". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "to". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "to". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "to". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "to". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "to". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsToProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "to". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsToProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "to". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ActivityStreamsToProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property "to". -// Panics if the index is out of bounds. -func (this *ActivityStreamsToProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "to". Panics if the index is out of bounds. Invalidates all iterators. -func (this *ActivityStreamsToProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "to". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ActivityStreamsToProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "to". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsToProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsToPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "to" property. -func (this ActivityStreamsToProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_doc.go deleted file mode 100644 index 19fbddf83..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertytotalitems contains the implementation for the totalItems -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertytotalitems diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go deleted file mode 100644 index d872e5ab5..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertytotalitems - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go deleted file mode 100644 index 96a61b94c..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertytotalitems - -import ( - "fmt" - nonnegativeinteger "github.com/go-fed/activity/streams/values/nonNegativeInteger" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsTotalItemsProperty is the functional property "totalItems". It -// is permitted to be a single default-valued value type. -type ActivityStreamsTotalItemsProperty struct { - xmlschemaNonNegativeIntegerMember int - hasNonNegativeIntegerMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeTotalItemsProperty creates a "totalItems" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeTotalItemsProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsTotalItemsProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "totalItems" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "totalItems") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsTotalItemsProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err == nil { - this := &ActivityStreamsTotalItemsProperty{ - alias: alias, - hasNonNegativeIntegerMember: true, - xmlschemaNonNegativeIntegerMember: v, - } - return this, nil - } - this := &ActivityStreamsTotalItemsProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsTotalItemsProperty creates a new totalItems property. -func NewActivityStreamsTotalItemsProperty() *ActivityStreamsTotalItemsProperty { - return &ActivityStreamsTotalItemsProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling -// IsXMLSchemaNonNegativeInteger afterwards will return false. -func (this *ActivityStreamsTotalItemsProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasNonNegativeIntegerMember = false -} - -// Get returns the value of this property. When IsXMLSchemaNonNegativeInteger -// returns false, Get will return any arbitrary value. -func (this ActivityStreamsTotalItemsProperty) Get() int { - return this.xmlschemaNonNegativeIntegerMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsTotalItemsProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsTotalItemsProperty) HasAny() bool { - return this.IsXMLSchemaNonNegativeInteger() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsTotalItemsProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaNonNegativeInteger returns true if this property is set and not an -// IRI. -func (this ActivityStreamsTotalItemsProperty) IsXMLSchemaNonNegativeInteger() bool { - return this.hasNonNegativeIntegerMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsTotalItemsProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsTotalItemsProperty) KindIndex() int { - if this.IsXMLSchemaNonNegativeInteger() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsTotalItemsProperty) LessThan(o vocab.ActivityStreamsTotalItemsProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaNonNegativeInteger() && o.IsXMLSchemaNonNegativeInteger() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return nonnegativeinteger.LessNonNegativeInteger(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "totalItems". -func (this ActivityStreamsTotalItemsProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "totalItems" - } else { - return "totalItems" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsTotalItemsProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaNonNegativeInteger() { - return nonnegativeinteger.SerializeNonNegativeInteger(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaNonNegativeInteger -// afterwards will return true. -func (this *ActivityStreamsTotalItemsProperty) Set(v int) { - this.Clear() - this.xmlschemaNonNegativeIntegerMember = v - this.hasNonNegativeIntegerMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsTotalItemsProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_doc.go deleted file mode 100644 index c6c0892f0..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyunits contains the implementation for the units property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyunits diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_pkg.go deleted file mode 100644 index f59f9c692..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyunits - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go deleted file mode 100644 index cd90ad054..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go +++ /dev/null @@ -1,215 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyunits - -import ( - "fmt" - anyuri "github.com/go-fed/activity/streams/values/anyURI" - string1 "github.com/go-fed/activity/streams/values/string" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsUnitsProperty is the functional property "units". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsUnitsProperty struct { - xmlschemaStringMember string - hasStringMember bool - xmlschemaAnyURIMember *url.URL - unknown interface{} - alias string -} - -// DeserializeUnitsProperty creates a "units" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeUnitsProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsUnitsProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "units" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "units") - } - i, ok := m[propName] - - if ok { - if v, err := string1.DeserializeString(i); err == nil { - this := &ActivityStreamsUnitsProperty{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } else if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &ActivityStreamsUnitsProperty{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } - this := &ActivityStreamsUnitsProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsUnitsProperty creates a new units property. -func NewActivityStreamsUnitsProperty() *ActivityStreamsUnitsProperty { - return &ActivityStreamsUnitsProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsUnitsProperty) Clear() { - this.hasStringMember = false - this.xmlschemaAnyURIMember = nil - this.unknown = nil -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsUnitsProperty) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// GetXMLSchemaAnyURI returns the value of this property. When IsXMLSchemaAnyURI -// returns false, GetXMLSchemaAnyURI will return an arbitrary value. -func (this ActivityStreamsUnitsProperty) GetXMLSchemaAnyURI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// GetXMLSchemaString returns the value of this property. When IsXMLSchemaString -// returns false, GetXMLSchemaString will return an arbitrary value. -func (this ActivityStreamsUnitsProperty) GetXMLSchemaString() string { - return this.xmlschemaStringMember -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsUnitsProperty) HasAny() bool { - return this.IsXMLSchemaString() || - this.IsXMLSchemaAnyURI() -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsUnitsProperty) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property has a type of "anyURI". When -// true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI methods to access -// and set this property. -func (this ActivityStreamsUnitsProperty) IsXMLSchemaAnyURI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaString returns true if this property has a type of "string". When -// true, use the GetXMLSchemaString and SetXMLSchemaString methods to access -// and set this property. -func (this ActivityStreamsUnitsProperty) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsUnitsProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsUnitsProperty) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsXMLSchemaAnyURI() { - return 1 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsUnitsProperty) LessThan(o vocab.ActivityStreamsUnitsProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsXMLSchemaString() { - return string1.LessString(this.GetXMLSchemaString(), o.GetXMLSchemaString()) - } else if this.IsXMLSchemaAnyURI() { - return anyuri.LessAnyURI(this.GetXMLSchemaAnyURI(), o.GetXMLSchemaAnyURI()) - } - return false -} - -// Name returns the name of this property: "units". -func (this ActivityStreamsUnitsProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "units" - } else { - return "units" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsUnitsProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.GetXMLSchemaString()) - } else if this.IsXMLSchemaAnyURI() { - return anyuri.SerializeAnyURI(this.GetXMLSchemaAnyURI()) - } - return this.unknown, nil -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsUnitsProperty) SetIRI(v *url.URL) { - this.Clear() - this.SetXMLSchemaAnyURI(v) -} - -// SetXMLSchemaAnyURI sets the value of this property. Calling IsXMLSchemaAnyURI -// afterwards returns true. -func (this *ActivityStreamsUnitsProperty) SetXMLSchemaAnyURI(v *url.URL) { - this.Clear() - this.xmlschemaAnyURIMember = v -} - -// SetXMLSchemaString sets the value of this property. Calling IsXMLSchemaString -// afterwards returns true. -func (this *ActivityStreamsUnitsProperty) SetXMLSchemaString(v string) { - this.Clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_doc.go deleted file mode 100644 index c3a86be0a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyupdated contains the implementation for the updated property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyupdated diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_pkg.go deleted file mode 100644 index 2c366bab9..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyupdated - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go deleted file mode 100644 index df7b46b37..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyupdated - -import ( - "fmt" - datetime "github.com/go-fed/activity/streams/values/dateTime" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" - "time" -) - -// ActivityStreamsUpdatedProperty is the functional property "updated". It is -// permitted to be a single default-valued value type. -type ActivityStreamsUpdatedProperty struct { - xmlschemaDateTimeMember time.Time - hasDateTimeMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeUpdatedProperty creates a "updated" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeUpdatedProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsUpdatedProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "updated" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "updated") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsUpdatedProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := datetime.DeserializeDateTime(i); err == nil { - this := &ActivityStreamsUpdatedProperty{ - alias: alias, - hasDateTimeMember: true, - xmlschemaDateTimeMember: v, - } - return this, nil - } - this := &ActivityStreamsUpdatedProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsUpdatedProperty creates a new updated property. -func NewActivityStreamsUpdatedProperty() *ActivityStreamsUpdatedProperty { - return &ActivityStreamsUpdatedProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaDateTime -// afterwards will return false. -func (this *ActivityStreamsUpdatedProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasDateTimeMember = false -} - -// Get returns the value of this property. When IsXMLSchemaDateTime returns false, -// Get will return any arbitrary value. -func (this ActivityStreamsUpdatedProperty) Get() time.Time { - return this.xmlschemaDateTimeMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsUpdatedProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsUpdatedProperty) HasAny() bool { - return this.IsXMLSchemaDateTime() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsUpdatedProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaDateTime returns true if this property is set and not an IRI. -func (this ActivityStreamsUpdatedProperty) IsXMLSchemaDateTime() bool { - return this.hasDateTimeMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsUpdatedProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsUpdatedProperty) KindIndex() int { - if this.IsXMLSchemaDateTime() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsUpdatedProperty) LessThan(o vocab.ActivityStreamsUpdatedProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaDateTime() && o.IsXMLSchemaDateTime() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return datetime.LessDateTime(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "updated". -func (this ActivityStreamsUpdatedProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "updated" - } else { - return "updated" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsUpdatedProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaDateTime() { - return datetime.SerializeDateTime(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaDateTime afterwards -// will return true. -func (this *ActivityStreamsUpdatedProperty) Set(v time.Time) { - this.Clear() - this.xmlschemaDateTimeMember = v - this.hasDateTimeMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsUpdatedProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_doc.go deleted file mode 100644 index 025914280..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyurl contains the implementation for the url property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyurl diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_pkg.go deleted file mode 100644 index 6062eef25..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_pkg.go +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyurl - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go deleted file mode 100644 index 01ce5b51d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go +++ /dev/null @@ -1,796 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyurl - -import ( - "fmt" - anyuri "github.com/go-fed/activity/streams/values/anyURI" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsUrlPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ActivityStreamsUrlPropertyIterator struct { - xmlschemaAnyURIMember *url.URL - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsMentionMember vocab.ActivityStreamsMention - unknown interface{} - alias string - myIdx int - parent vocab.ActivityStreamsUrlProperty -} - -// NewActivityStreamsUrlPropertyIterator creates a new ActivityStreamsUrl property. -func NewActivityStreamsUrlPropertyIterator() *ActivityStreamsUrlPropertyIterator { - return &ActivityStreamsUrlPropertyIterator{alias: ""} -} - -// deserializeActivityStreamsUrlPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeActivityStreamsUrlPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsUrlPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsUrlPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ActivityStreamsUrlPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } - } - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &ActivityStreamsUrlPropertyIterator{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } - this := &ActivityStreamsUrlPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ActivityStreamsUrlPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ActivityStreamsUrlPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ActivityStreamsUrlPropertyIterator) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ActivityStreamsUrlPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - - return nil -} - -// GetXMLSchemaAnyURI returns the value of this property. When IsXMLSchemaAnyURI -// returns false, GetXMLSchemaAnyURI will return an arbitrary value. -func (this ActivityStreamsUrlPropertyIterator) GetXMLSchemaAnyURI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// HasAny returns true if any of the different values is set. -func (this ActivityStreamsUrlPropertyIterator) HasAny() bool { - return this.IsXMLSchemaAnyURI() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsMention() -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ActivityStreamsUrlPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ActivityStreamsUrlPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ActivityStreamsUrlPropertyIterator) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property has a type of "anyURI". When -// true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI methods to access -// and set this property. -func (this ActivityStreamsUrlPropertyIterator) IsXMLSchemaAnyURI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsUrlPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsUrlPropertyIterator) KindIndex() int { - if this.IsXMLSchemaAnyURI() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsMention() { - return 2 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsUrlPropertyIterator) LessThan(o vocab.ActivityStreamsUrlPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsXMLSchemaAnyURI() { - return anyuri.LessAnyURI(this.GetXMLSchemaAnyURI(), o.GetXMLSchemaAnyURI()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } - return false -} - -// Name returns the name of this property: "ActivityStreamsUrl". -func (this ActivityStreamsUrlPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ActivityStreamsUrl" - } else { - return "ActivityStreamsUrl" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ActivityStreamsUrlPropertyIterator) Next() vocab.ActivityStreamsUrlPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ActivityStreamsUrlPropertyIterator) Prev() vocab.ActivityStreamsUrlPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ActivityStreamsUrlPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ActivityStreamsUrlPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ActivityStreamsUrlPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.SetXMLSchemaAnyURI(v) -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ActivityStreamsUrlPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - - return fmt.Errorf("illegal type to set on ActivityStreamsUrl property: %T", t) -} - -// SetXMLSchemaAnyURI sets the value of this property. Calling IsXMLSchemaAnyURI -// afterwards returns true. -func (this *ActivityStreamsUrlPropertyIterator) SetXMLSchemaAnyURI(v *url.URL) { - this.clear() - this.xmlschemaAnyURIMember = v -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ActivityStreamsUrlPropertyIterator) clear() { - this.xmlschemaAnyURIMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsMentionMember = nil - this.unknown = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsUrlPropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaAnyURI() { - return anyuri.SerializeAnyURI(this.GetXMLSchemaAnyURI()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } - return this.unknown, nil -} - -// ActivityStreamsUrlProperty is the non-functional property "url". It is -// permitted to have one or more values, and of different value types. -type ActivityStreamsUrlProperty struct { - properties []*ActivityStreamsUrlPropertyIterator - alias string -} - -// DeserializeUrlProperty creates a "url" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeUrlProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUrlProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "url" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "url") - } - i, ok := m[propName] - - if ok { - this := &ActivityStreamsUrlProperty{ - alias: alias, - properties: []*ActivityStreamsUrlPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeActivityStreamsUrlPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeActivityStreamsUrlPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsUrlProperty creates a new url property. -func NewActivityStreamsUrlProperty() *ActivityStreamsUrlProperty { - return &ActivityStreamsUrlProperty{alias: ""} -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "url". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsUrlProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ActivityStreamsUrlPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "url". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsUrlProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ActivityStreamsUrlPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "url" -func (this *ActivityStreamsUrlProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsUrlPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - xmlschemaAnyURIMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "url". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ActivityStreamsUrlProperty) AppendType(t vocab.Type) error { - n := &ActivityStreamsUrlPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the -// property "url". Invalidates iterators that are traversing using Prev. -func (this *ActivityStreamsUrlProperty) AppendXMLSchemaAnyURI(v *url.URL) { - this.properties = append(this.properties, &ActivityStreamsUrlPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - xmlschemaAnyURIMember: v, - }) -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ActivityStreamsUrlProperty) At(index int) vocab.ActivityStreamsUrlPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ActivityStreamsUrlProperty) Begin() vocab.ActivityStreamsUrlPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ActivityStreamsUrlProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ActivityStreamsUrlProperty) End() vocab.ActivityStreamsUrlPropertyIterator { - return nil -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "url". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsUrlProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsUrlPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "url". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ActivityStreamsUrlProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsUrlPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "url". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ActivityStreamsUrlProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsUrlPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "url". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. -func (this *ActivityStreamsUrlProperty) InsertType(idx int, t vocab.Type) error { - n := &ActivityStreamsUrlPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a -// property "url". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ActivityStreamsUrlProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ActivityStreamsUrlPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsUrlProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ActivityStreamsUrlProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "url" property. -func (this ActivityStreamsUrlProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ActivityStreamsUrlProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetXMLSchemaAnyURI() - rhs := this.properties[j].GetXMLSchemaAnyURI() - return anyuri.LessAnyURI(lhs, rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsUrlProperty) LessThan(o vocab.ActivityStreamsUrlProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("url") with any alias. -func (this ActivityStreamsUrlProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "url" - } else { - return "url" - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "url". Invalidates all iterators. -func (this *ActivityStreamsUrlProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ActivityStreamsUrlPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "url". Invalidates all iterators. -func (this *ActivityStreamsUrlProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ActivityStreamsUrlPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property "url". -func (this *ActivityStreamsUrlProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ActivityStreamsUrlPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - xmlschemaAnyURIMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "url". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. -func (this *ActivityStreamsUrlProperty) PrependType(t vocab.Type) error { - n := &ActivityStreamsUrlPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ActivityStreamsUrlPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the -// property "url". Invalidates all iterators. -func (this *ActivityStreamsUrlProperty) PrependXMLSchemaAnyURI(v *url.URL) { - this.properties = append([]*ActivityStreamsUrlPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - xmlschemaAnyURIMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Remove deletes an element at the specified index from a list of the property -// "url", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ActivityStreamsUrlProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ActivityStreamsUrlPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsUrlProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "url". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsUrlProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsUrlPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "url". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsUrlProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsUrlPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property "url". -// Panics if the index is out of bounds. -func (this *ActivityStreamsUrlProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsUrlPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "url". Invalidates all iterators. Returns an error if the type is not a -// valid one to set for this property. Panics if the index is out of bounds. -func (this *ActivityStreamsUrlProperty) SetType(idx int, t vocab.Type) error { - n := &ActivityStreamsUrlPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// SetXMLSchemaAnyURI sets a anyURI value to be at the specified index for the -// property "url". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ActivityStreamsUrlProperty) SetXMLSchemaAnyURI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ActivityStreamsUrlPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// Swap swaps the location of values at two indices for the "url" property. -func (this ActivityStreamsUrlProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_doc.go deleted file mode 100644 index aca7b5c39..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertywidth contains the implementation for the width property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertywidth diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_pkg.go deleted file mode 100644 index b69e4b875..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertywidth - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go deleted file mode 100644 index c03c337c2..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertywidth - -import ( - "fmt" - nonnegativeinteger "github.com/go-fed/activity/streams/values/nonNegativeInteger" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ActivityStreamsWidthProperty is the functional property "width". It is -// permitted to be a single default-valued value type. -type ActivityStreamsWidthProperty struct { - xmlschemaNonNegativeIntegerMember int - hasNonNegativeIntegerMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeWidthProperty creates a "width" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeWidthProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsWidthProperty, error) { - alias := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - } - propName := "width" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "width") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ActivityStreamsWidthProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err == nil { - this := &ActivityStreamsWidthProperty{ - alias: alias, - hasNonNegativeIntegerMember: true, - xmlschemaNonNegativeIntegerMember: v, - } - return this, nil - } - this := &ActivityStreamsWidthProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewActivityStreamsWidthProperty creates a new width property. -func NewActivityStreamsWidthProperty() *ActivityStreamsWidthProperty { - return &ActivityStreamsWidthProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling -// IsXMLSchemaNonNegativeInteger afterwards will return false. -func (this *ActivityStreamsWidthProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasNonNegativeIntegerMember = false -} - -// Get returns the value of this property. When IsXMLSchemaNonNegativeInteger -// returns false, Get will return any arbitrary value. -func (this ActivityStreamsWidthProperty) Get() int { - return this.xmlschemaNonNegativeIntegerMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ActivityStreamsWidthProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ActivityStreamsWidthProperty) HasAny() bool { - return this.IsXMLSchemaNonNegativeInteger() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ActivityStreamsWidthProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaNonNegativeInteger returns true if this property is set and not an -// IRI. -func (this ActivityStreamsWidthProperty) IsXMLSchemaNonNegativeInteger() bool { - return this.hasNonNegativeIntegerMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ActivityStreamsWidthProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ActivityStreamsWidthProperty) KindIndex() int { - if this.IsXMLSchemaNonNegativeInteger() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ActivityStreamsWidthProperty) LessThan(o vocab.ActivityStreamsWidthProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaNonNegativeInteger() && o.IsXMLSchemaNonNegativeInteger() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return nonnegativeinteger.LessNonNegativeInteger(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "width". -func (this ActivityStreamsWidthProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "width" - } else { - return "width" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ActivityStreamsWidthProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaNonNegativeInteger() { - return nonnegativeinteger.SerializeNonNegativeInteger(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaNonNegativeInteger -// afterwards will return true. -func (this *ActivityStreamsWidthProperty) Set(v int) { - this.Clear() - this.xmlschemaNonNegativeIntegerMember = v - this.hasNonNegativeIntegerMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ActivityStreamsWidthProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_doc.go deleted file mode 100644 index 62869ae5e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeaccept contains the implementation for the Accept type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeaccept diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_pkg.go deleted file mode 100644 index 2068c7d5f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeaccept - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go deleted file mode 100644 index 2c919e642..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go +++ /dev/null @@ -1,1976 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeaccept - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor accepts the object. The target property can be used in -// certain circumstances to indicate the context into which the object has -// been accepted. -// -// Example 9 (https://www.w3.org/TR/activitystreams-vocabulary/#ex7a-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "actor": "http://john.example.org", -// "object": { -// "name": "Going-Away Party for Jim", -// "type": "Event" -// }, -// "type": "Invite" -// }, -// "summary": "Sally accepted an invitation to a party", -// "type": "Accept" -// } -// -// Example 10 (https://www.w3.org/TR/activitystreams-vocabulary/#ex7b-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "Joe", -// "type": "Person" -// }, -// "summary": "Sally accepted Joe into the club", -// "target": { -// "name": "The Club", -// "type": "Group" -// }, -// "type": "Accept" -// } -type ActivityStreamsAccept struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// AcceptIsDisjointWith returns true if the other provided type is disjoint with -// the Accept type. -func AcceptIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// AcceptIsExtendedBy returns true if the other provided type extends from the -// Accept type. Note that it returns false if the types are the same; see the -// "IsOrExtendsAccept" variant instead. -func AcceptIsExtendedBy(other vocab.Type) bool { - extensions := []string{"TentativeAccept"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// ActivityStreamsAcceptExtends returns true if the Accept type extends from the -// other type. -func ActivityStreamsAcceptExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeAccept creates a Accept from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeAccept(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsAccept, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsAccept{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Accept" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Accept", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Accept" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Accept") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsAccept returns true if the other provided type is the Accept type or -// extends from the Accept type. -func IsOrExtendsAccept(other vocab.Type) bool { - if other.GetTypeName() == "Accept" { - return true - } - return AcceptIsExtendedBy(other) -} - -// NewActivityStreamsAccept creates a new Accept type -func NewActivityStreamsAccept() *ActivityStreamsAccept { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Accept") - return &ActivityStreamsAccept{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAccept) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsAccept) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsAccept) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsAccept) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsAccept) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsAccept) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsAccept) GetTypeName() string { - return "Accept" -} - -// GetUnknownProperties returns the unknown properties for the Accept type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsAccept) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Accept type extends from the other type. -func (this ActivityStreamsAccept) IsExtending(other vocab.Type) bool { - return ActivityStreamsAcceptExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsAccept) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Accept is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsAccept) LessThan(o vocab.ActivityStreamsAccept) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsAccept) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Accept" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Accept" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsAccept) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsAccept) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsAccept) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsAccept) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsAccept) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsAccept) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsAccept) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsAccept) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsAccept) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsAccept) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsAccept) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsAccept) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsAccept) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsAccept) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsAccept) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsAccept) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsAccept) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsAccept) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsAccept) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsAccept) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsAccept) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsAccept) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsAccept) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsAccept) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsAccept) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsAccept) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsAccept) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsAccept) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsAccept) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsAccept) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsAccept) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsAccept) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsAccept) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsAccept) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsAccept) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsAccept) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsAccept) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsAccept) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsAccept) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsAccept) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsAccept) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsAccept) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsAccept) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_doc.go deleted file mode 100644 index 5d106b490..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeactivity contains the implementation for the Activity type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeactivity diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_pkg.go deleted file mode 100644 index 77291a6dd..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeactivity - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go deleted file mode 100644 index 337a5de07..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go +++ /dev/null @@ -1,1956 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeactivity - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// An Activity is a subtype of Object that describes some form of action that may -// happen, is currently happening, or has already happened. The Activity type -// itself serves as an abstract base type for all types of activities. It is -// important to note that the Activity type itself does not carry any specific -// semantics about the kind of action being taken. -// -// Example 3 (https://www.w3.org/TR/activitystreams-vocabulary/#ex3-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "A Note", -// "type": "Note" -// }, -// "summary": "Sally did something to a note", -// "type": "Activity" -// } -type ActivityStreamsActivity struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityIsDisjointWith returns true if the other provided type is disjoint with -// the Activity type. -func ActivityIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// ActivityIsExtendedBy returns true if the other provided type extends from the -// Activity type. Note that it returns false if the types are the same; see -// the "IsOrExtendsActivity" variant instead. -func ActivityIsExtendedBy(other vocab.Type) bool { - extensions := []string{"Accept", "Add", "Announce", "Arrive", "Block", "Create", "Delete", "Dislike", "Flag", "Follow", "Ignore", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Offer", "Push", "Question", "Read", "Reject", "Remove", "TentativeAccept", "TentativeReject", "Travel", "Undo", "Update", "View"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// ActivityStreamsActivityExtends returns true if the Activity type extends from -// the other type. -func ActivityStreamsActivityExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeActivity creates a Activity from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeActivity(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsActivity, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsActivity{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Activity" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Activity", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Activity" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Activity") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsActivity returns true if the other provided type is the Activity -// type or extends from the Activity type. -func IsOrExtendsActivity(other vocab.Type) bool { - if other.GetTypeName() == "Activity" { - return true - } - return ActivityIsExtendedBy(other) -} - -// NewActivityStreamsActivity creates a new Activity type -func NewActivityStreamsActivity() *ActivityStreamsActivity { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Activity") - return &ActivityStreamsActivity{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsActivity) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsActivity) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsActivity) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsActivity) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsActivity) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsActivity) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsActivity) GetTypeName() string { - return "Activity" -} - -// GetUnknownProperties returns the unknown properties for the Activity type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsActivity) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Activity type extends from the other type. -func (this ActivityStreamsActivity) IsExtending(other vocab.Type) bool { - return ActivityStreamsActivityExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsActivity) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Activity is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsActivity) LessThan(o vocab.ActivityStreamsActivity) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsActivity) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Activity" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Activity" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsActivity) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsActivity) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsActivity) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsActivity) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsActivity) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsActivity) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsActivity) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsActivity) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsActivity) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsActivity) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsActivity) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsActivity) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsActivity) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsActivity) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsActivity) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsActivity) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsActivity) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsActivity) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsActivity) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsActivity) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsActivity) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsActivity) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsActivity) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsActivity) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsActivity) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsActivity) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsActivity) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsActivity) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsActivity) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsActivity) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsActivity) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsActivity) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsActivity) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsActivity) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsActivity) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsActivity) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsActivity) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsActivity) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsActivity) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsActivity) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsActivity) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsActivity) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsActivity) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_doc.go deleted file mode 100644 index 770b99c0c..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeadd contains the implementation for the Add type. All applications -// are strongly encouraged to use the interface instead of this concrete -// definition. The interfaces allow applications to consume only the types and -// properties needed and be independent of the go-fed implementation if -// another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeadd diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_pkg.go deleted file mode 100644 index 1f6695351..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeadd - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go deleted file mode 100644 index 770a4c13f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go +++ /dev/null @@ -1,1971 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeadd - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor has added the object to the target. If the target -// property is not explicitly specified, the target would need to be -// determined implicitly by context. The origin can be used to identify the -// context from which the object originated. -// -// Example 12 (https://www.w3.org/TR/activitystreams-vocabulary/#ex9-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/abc", -// "summary": "Sally added an object", -// "type": "Add" -// } -// -// Example 13 (https://www.w3.org/TR/activitystreams-vocabulary/#ex10-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "A picture of my cat", -// "type": "Image", -// "url": "http://example.org/img/cat.png" -// }, -// "origin": { -// "name": "Camera Roll", -// "type": "Collection" -// }, -// "summary": "Sally added a picture of her cat to her cat picture -// collection", -// "target": { -// "name": "My Cat Pictures", -// "type": "Collection" -// }, -// "type": "Add" -// } -type ActivityStreamsAdd struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsAddExtends returns true if the Add type extends from the other -// type. -func ActivityStreamsAddExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// AddIsDisjointWith returns true if the other provided type is disjoint with the -// Add type. -func AddIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// AddIsExtendedBy returns true if the other provided type extends from the Add -// type. Note that it returns false if the types are the same; see the -// "IsOrExtendsAdd" variant instead. -func AddIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeAdd creates a Add from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeAdd(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsAdd, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsAdd{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Add" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Add", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Add" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Add") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsAdd returns true if the other provided type is the Add type or -// extends from the Add type. -func IsOrExtendsAdd(other vocab.Type) bool { - if other.GetTypeName() == "Add" { - return true - } - return AddIsExtendedBy(other) -} - -// NewActivityStreamsAdd creates a new Add type -func NewActivityStreamsAdd() *ActivityStreamsAdd { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Add") - return &ActivityStreamsAdd{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAdd) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsAdd) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsAdd) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsAdd) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsAdd) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsAdd) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsAdd) GetTypeName() string { - return "Add" -} - -// GetUnknownProperties returns the unknown properties for the Add type. Note that -// this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsAdd) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Add type extends from the other type. -func (this ActivityStreamsAdd) IsExtending(other vocab.Type) bool { - return ActivityStreamsAddExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsAdd) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Add is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsAdd) LessThan(o vocab.ActivityStreamsAdd) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsAdd) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Add" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Add" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsAdd) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsAdd) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsAdd) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsAdd) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsAdd) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsAdd) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsAdd) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsAdd) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsAdd) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsAdd) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsAdd) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsAdd) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsAdd) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsAdd) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsAdd) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsAdd) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsAdd) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsAdd) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsAdd) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsAdd) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsAdd) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsAdd) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsAdd) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsAdd) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsAdd) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsAdd) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsAdd) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsAdd) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsAdd) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsAdd) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsAdd) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsAdd) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsAdd) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsAdd) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsAdd) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsAdd) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsAdd) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsAdd) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsAdd) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsAdd) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsAdd) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsAdd) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsAdd) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_doc.go deleted file mode 100644 index ed357559a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeannounce contains the implementation for the Announce type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeannounce diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_pkg.go deleted file mode 100644 index 626354eb2..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeannounce - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go deleted file mode 100644 index 761e3ef5a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go +++ /dev/null @@ -1,1953 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeannounce - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor is calling the target's attention the object. The -// origin typically has no defined meaning. -// -// Example 36 (https://www.w3.org/TR/activitystreams-vocabulary/#ex170-jsonld): -// { -// "actor": { -// "id": "http://sally.example.org", -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "actor": "http://sally.example.org", -// "location": { -// "name": "Work", -// "type": "Place" -// }, -// "type": "Arrive" -// }, -// "summary": "Sally announced that she had arrived at work", -// "type": "Announce" -// } -type ActivityStreamsAnnounce struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsAnnounceExtends returns true if the Announce type extends from -// the other type. -func ActivityStreamsAnnounceExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// AnnounceIsDisjointWith returns true if the other provided type is disjoint with -// the Announce type. -func AnnounceIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// AnnounceIsExtendedBy returns true if the other provided type extends from the -// Announce type. Note that it returns false if the types are the same; see -// the "IsOrExtendsAnnounce" variant instead. -func AnnounceIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeAnnounce creates a Announce from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeAnnounce(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsAnnounce, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsAnnounce{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Announce" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Announce", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Announce" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Announce") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsAnnounce returns true if the other provided type is the Announce -// type or extends from the Announce type. -func IsOrExtendsAnnounce(other vocab.Type) bool { - if other.GetTypeName() == "Announce" { - return true - } - return AnnounceIsExtendedBy(other) -} - -// NewActivityStreamsAnnounce creates a new Announce type -func NewActivityStreamsAnnounce() *ActivityStreamsAnnounce { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Announce") - return &ActivityStreamsAnnounce{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAnnounce) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsAnnounce) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsAnnounce) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsAnnounce) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsAnnounce) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsAnnounce) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsAnnounce) GetTypeName() string { - return "Announce" -} - -// GetUnknownProperties returns the unknown properties for the Announce type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsAnnounce) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Announce type extends from the other type. -func (this ActivityStreamsAnnounce) IsExtending(other vocab.Type) bool { - return ActivityStreamsAnnounceExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsAnnounce) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Announce is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsAnnounce) LessThan(o vocab.ActivityStreamsAnnounce) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsAnnounce) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Announce" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Announce" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsAnnounce) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsAnnounce) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsAnnounce) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsAnnounce) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsAnnounce) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsAnnounce) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsAnnounce) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsAnnounce) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_doc.go deleted file mode 100644 index 097c76de4..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeapplication contains the implementation for the Application type. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeapplication diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_pkg.go deleted file mode 100644 index 05764bc36..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_pkg.go +++ /dev/null @@ -1,233 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeapplication - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDiscoverablePropertyToot returns the deserialization method - // for the "TootDiscoverableProperty" non-functional property in the - // vocabulary "Toot" - DeserializeDiscoverablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootDiscoverableProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeFeaturedPropertyToot returns the deserialization method for - // the "TootFeaturedProperty" non-functional property in the - // vocabulary "Toot" - DeserializeFeaturedPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFeaturedProperty, error) - // DeserializeFollowersPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsFollowersProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowersProperty, error) - // DeserializeFollowingPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsFollowingProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeFollowingPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowingProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInboxPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInboxProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInboxProperty, error) - // DeserializeLikedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikedProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsManuallyApprovesFollowersProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeManuallyApprovesFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOutboxPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOutboxProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOutboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOutboxProperty, error) - // DeserializePreferredUsernamePropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsPreferredUsernameProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializePreferredUsernamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreferredUsernameProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublicKeyPropertyW3IDSecurityV1 returns the deserialization - // method for the "W3IDSecurityV1PublicKeyProperty" non-functional - // property in the vocabulary "W3IDSecurityV1" - DeserializePublicKeyPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKeyProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeStreamsPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStreamsProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStreamsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStreamsProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go deleted file mode 100644 index ba850008b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go +++ /dev/null @@ -1,2193 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeapplication - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Describes a software application. -// -// Example 42 (https://www.w3.org/TR/activitystreams-vocabulary/#ex34-jsonld): -// { -// "name": "Exampletron 3000", -// "type": "Application" -// } -type ActivityStreamsApplication struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - TootDiscoverable vocab.TootDiscoverableProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - TootFeatured vocab.TootFeaturedProperty - ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty - ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInbox vocab.ActivityStreamsInboxProperty - ActivityStreamsLiked vocab.ActivityStreamsLikedProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty - ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsApplicationExtends returns true if the Application type extends -// from the other type. -func ActivityStreamsApplicationExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// ApplicationIsDisjointWith returns true if the other provided type is disjoint -// with the Application type. -func ApplicationIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// ApplicationIsExtendedBy returns true if the other provided type extends from -// the Application type. Note that it returns false if the types are the same; -// see the "IsOrExtendsApplication" variant instead. -func ApplicationIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeApplication creates a Application from a map representation that has -// been unmarshalled from a text or binary format. -func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsApplication, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsApplication{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Application" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Application", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Application" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Application") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDiscoverablePropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootDiscoverable = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeFeaturedPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootFeatured = p - } - if p, err := mgr.DeserializeFollowersPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsFollowers = p - } - if p, err := mgr.DeserializeFollowingPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsFollowing = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInboxPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInbox = p - } - if p, err := mgr.DeserializeLikedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLiked = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeManuallyApprovesFollowersPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsManuallyApprovesFollowers = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOutboxPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOutbox = p - } - if p, err := mgr.DeserializePreferredUsernamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreferredUsername = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublicKeyPropertyW3IDSecurityV1()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.W3IDSecurityV1PublicKey = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeStreamsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStreams = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "discoverable" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "featured" { - continue - } else if k == "followers" { - continue - } else if k == "following" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "inbox" { - continue - } else if k == "liked" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "manuallyApprovesFollowers" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "outbox" { - continue - } else if k == "preferredUsername" { - continue - } else if k == "preferredUsernameMap" { - continue - } else if k == "preview" { - continue - } else if k == "publicKey" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "streams" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsApplication returns true if the other provided type is the -// Application type or extends from the Application type. -func IsOrExtendsApplication(other vocab.Type) bool { - if other.GetTypeName() == "Application" { - return true - } - return ApplicationIsExtendedBy(other) -} - -// NewActivityStreamsApplication creates a new Application type -func NewActivityStreamsApplication() *ActivityStreamsApplication { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Application") - return &ActivityStreamsApplication{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsFollowers returns the "followers" property if it exists, and -// nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsFollowers() vocab.ActivityStreamsFollowersProperty { - return this.ActivityStreamsFollowers -} - -// GetActivityStreamsFollowing returns the "following" property if it exists, and -// nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsFollowing() vocab.ActivityStreamsFollowingProperty { - return this.ActivityStreamsFollowing -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInbox returns the "inbox" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsInbox() vocab.ActivityStreamsInboxProperty { - return this.ActivityStreamsInbox -} - -// GetActivityStreamsLiked returns the "liked" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsLiked() vocab.ActivityStreamsLikedProperty { - return this.ActivityStreamsLiked -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsManuallyApprovesFollowers returns the -// "manuallyApprovesFollowers" property if it exists, and nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsManuallyApprovesFollowers() vocab.ActivityStreamsManuallyApprovesFollowersProperty { - return this.ActivityStreamsManuallyApprovesFollowers -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOutbox returns the "outbox" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsOutbox() vocab.ActivityStreamsOutboxProperty { - return this.ActivityStreamsOutbox -} - -// GetActivityStreamsPreferredUsername returns the "preferredUsername" property if -// it exists, and nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsPreferredUsername() vocab.ActivityStreamsPreferredUsernameProperty { - return this.ActivityStreamsPreferredUsername -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsStreams returns the "streams" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsStreams() vocab.ActivityStreamsStreamsProperty { - return this.ActivityStreamsStreams -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsApplication) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsApplication) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsApplication) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsApplication) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsApplication) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTootDiscoverable returns the "discoverable" property if it exists, and nil -// otherwise. -func (this ActivityStreamsApplication) GetTootDiscoverable() vocab.TootDiscoverableProperty { - return this.TootDiscoverable -} - -// GetTootFeatured returns the "featured" property if it exists, and nil otherwise. -func (this ActivityStreamsApplication) GetTootFeatured() vocab.TootFeaturedProperty { - return this.TootFeatured -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsApplication) GetTypeName() string { - return "Application" -} - -// GetUnknownProperties returns the unknown properties for the Application type. -// Note that this should not be used by app developers. It is only used to -// help determine which implementation is LessThan the other. Developers who -// are creating a different implementation of this type's interface can use -// this method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsApplication) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// GetW3IDSecurityV1PublicKey returns the "publicKey" property if it exists, and -// nil otherwise. -func (this ActivityStreamsApplication) GetW3IDSecurityV1PublicKey() vocab.W3IDSecurityV1PublicKeyProperty { - return this.W3IDSecurityV1PublicKey -} - -// IsExtending returns true if the Application type extends from the other type. -func (this ActivityStreamsApplication) IsExtending(other vocab.Type) bool { - return ActivityStreamsApplicationExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsApplication) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.TootDiscoverable, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.TootFeatured, m) - m = this.helperJSONLDContext(this.ActivityStreamsFollowers, m) - m = this.helperJSONLDContext(this.ActivityStreamsFollowing, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInbox, m) - m = this.helperJSONLDContext(this.ActivityStreamsLiked, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOutbox, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreferredUsername, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKey, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsStreams, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Application is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsApplication) LessThan(o vocab.ActivityStreamsApplication) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "discoverable" - if lhs, rhs := this.TootDiscoverable, o.GetTootDiscoverable(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "featured" - if lhs, rhs := this.TootFeatured, o.GetTootFeatured(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "followers" - if lhs, rhs := this.ActivityStreamsFollowers, o.GetActivityStreamsFollowers(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "following" - if lhs, rhs := this.ActivityStreamsFollowing, o.GetActivityStreamsFollowing(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inbox" - if lhs, rhs := this.ActivityStreamsInbox, o.GetActivityStreamsInbox(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "liked" - if lhs, rhs := this.ActivityStreamsLiked, o.GetActivityStreamsLiked(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "manuallyApprovesFollowers" - if lhs, rhs := this.ActivityStreamsManuallyApprovesFollowers, o.GetActivityStreamsManuallyApprovesFollowers(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "outbox" - if lhs, rhs := this.ActivityStreamsOutbox, o.GetActivityStreamsOutbox(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preferredUsername" - if lhs, rhs := this.ActivityStreamsPreferredUsername, o.GetActivityStreamsPreferredUsername(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "publicKey" - if lhs, rhs := this.W3IDSecurityV1PublicKey, o.GetW3IDSecurityV1PublicKey(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "streams" - if lhs, rhs := this.ActivityStreamsStreams, o.GetActivityStreamsStreams(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsApplication) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Application" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Application" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "discoverable" - if this.TootDiscoverable != nil { - if i, err := this.TootDiscoverable.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootDiscoverable.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "featured" - if this.TootFeatured != nil { - if i, err := this.TootFeatured.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootFeatured.Name()] = i - } - } - // Maybe serialize property "followers" - if this.ActivityStreamsFollowers != nil { - if i, err := this.ActivityStreamsFollowers.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsFollowers.Name()] = i - } - } - // Maybe serialize property "following" - if this.ActivityStreamsFollowing != nil { - if i, err := this.ActivityStreamsFollowing.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsFollowing.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "inbox" - if this.ActivityStreamsInbox != nil { - if i, err := this.ActivityStreamsInbox.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInbox.Name()] = i - } - } - // Maybe serialize property "liked" - if this.ActivityStreamsLiked != nil { - if i, err := this.ActivityStreamsLiked.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLiked.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "manuallyApprovesFollowers" - if this.ActivityStreamsManuallyApprovesFollowers != nil { - if i, err := this.ActivityStreamsManuallyApprovesFollowers.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsManuallyApprovesFollowers.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "outbox" - if this.ActivityStreamsOutbox != nil { - if i, err := this.ActivityStreamsOutbox.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOutbox.Name()] = i - } - } - // Maybe serialize property "preferredUsername" - if this.ActivityStreamsPreferredUsername != nil { - if i, err := this.ActivityStreamsPreferredUsername.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreferredUsername.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "publicKey" - if this.W3IDSecurityV1PublicKey != nil { - if i, err := this.W3IDSecurityV1PublicKey.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.W3IDSecurityV1PublicKey.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "streams" - if this.ActivityStreamsStreams != nil { - if i, err := this.ActivityStreamsStreams.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStreams.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsApplication) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsApplication) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsApplication) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsApplication) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsApplication) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsApplication) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsApplication) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsApplication) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsApplication) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsApplication) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsApplication) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsFollowers sets the "followers" property. -func (this *ActivityStreamsApplication) SetActivityStreamsFollowers(i vocab.ActivityStreamsFollowersProperty) { - this.ActivityStreamsFollowers = i -} - -// SetActivityStreamsFollowing sets the "following" property. -func (this *ActivityStreamsApplication) SetActivityStreamsFollowing(i vocab.ActivityStreamsFollowingProperty) { - this.ActivityStreamsFollowing = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsApplication) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsApplication) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsApplication) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsApplication) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInbox sets the "inbox" property. -func (this *ActivityStreamsApplication) SetActivityStreamsInbox(i vocab.ActivityStreamsInboxProperty) { - this.ActivityStreamsInbox = i -} - -// SetActivityStreamsLiked sets the "liked" property. -func (this *ActivityStreamsApplication) SetActivityStreamsLiked(i vocab.ActivityStreamsLikedProperty) { - this.ActivityStreamsLiked = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsApplication) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsApplication) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsManuallyApprovesFollowers sets the -// "manuallyApprovesFollowers" property. -func (this *ActivityStreamsApplication) SetActivityStreamsManuallyApprovesFollowers(i vocab.ActivityStreamsManuallyApprovesFollowersProperty) { - this.ActivityStreamsManuallyApprovesFollowers = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsApplication) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsApplication) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsApplication) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOutbox sets the "outbox" property. -func (this *ActivityStreamsApplication) SetActivityStreamsOutbox(i vocab.ActivityStreamsOutboxProperty) { - this.ActivityStreamsOutbox = i -} - -// SetActivityStreamsPreferredUsername sets the "preferredUsername" property. -func (this *ActivityStreamsApplication) SetActivityStreamsPreferredUsername(i vocab.ActivityStreamsPreferredUsernameProperty) { - this.ActivityStreamsPreferredUsername = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsApplication) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsApplication) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsApplication) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsApplication) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsApplication) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsApplication) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsStreams sets the "streams" property. -func (this *ActivityStreamsApplication) SetActivityStreamsStreams(i vocab.ActivityStreamsStreamsProperty) { - this.ActivityStreamsStreams = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsApplication) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsApplication) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsApplication) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsApplication) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsApplication) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsApplication) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsApplication) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsApplication) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsApplication) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsApplication) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// SetTootDiscoverable sets the "discoverable" property. -func (this *ActivityStreamsApplication) SetTootDiscoverable(i vocab.TootDiscoverableProperty) { - this.TootDiscoverable = i -} - -// SetTootFeatured sets the "featured" property. -func (this *ActivityStreamsApplication) SetTootFeatured(i vocab.TootFeaturedProperty) { - this.TootFeatured = i -} - -// SetW3IDSecurityV1PublicKey sets the "publicKey" property. -func (this *ActivityStreamsApplication) SetW3IDSecurityV1PublicKey(i vocab.W3IDSecurityV1PublicKeyProperty) { - this.W3IDSecurityV1PublicKey = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsApplication) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsApplication) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_doc.go deleted file mode 100644 index 2537e8b78..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typearrive contains the implementation for the Arrive type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typearrive diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go deleted file mode 100644 index 3ed9d1387..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typearrive - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go deleted file mode 100644 index 0e09740e6..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go +++ /dev/null @@ -1,1911 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typearrive - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// An IntransitiveActivity that indicates that the actor has arrived at the -// location. The origin can be used to identify the context from which the -// actor originated. The target typically has no defined meaning. -// -// Example 14 (https://www.w3.org/TR/activitystreams-vocabulary/#ex11-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "location": { -// "name": "Work", -// "type": "Place" -// }, -// "origin": { -// "name": "Home", -// "type": "Place" -// }, -// "summary": "Sally arrived at work", -// "type": "Arrive" -// } -type ActivityStreamsArrive struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsArriveExtends returns true if the Arrive type extends from the -// other type. -func ActivityStreamsArriveExtends(other vocab.Type) bool { - extensions := []string{"Activity", "IntransitiveActivity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// ArriveIsDisjointWith returns true if the other provided type is disjoint with -// the Arrive type. -func ArriveIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// ArriveIsExtendedBy returns true if the other provided type extends from the -// Arrive type. Note that it returns false if the types are the same; see the -// "IsOrExtendsArrive" variant instead. -func ArriveIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeArrive creates a Arrive from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeArrive(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsArrive, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsArrive{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Arrive" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Arrive", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Arrive" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Arrive") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsArrive returns true if the other provided type is the Arrive type or -// extends from the Arrive type. -func IsOrExtendsArrive(other vocab.Type) bool { - if other.GetTypeName() == "Arrive" { - return true - } - return ArriveIsExtendedBy(other) -} - -// NewActivityStreamsArrive creates a new Arrive type -func NewActivityStreamsArrive() *ActivityStreamsArrive { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Arrive") - return &ActivityStreamsArrive{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArrive) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsArrive) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsArrive) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsArrive) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsArrive) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsArrive) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsArrive) GetTypeName() string { - return "Arrive" -} - -// GetUnknownProperties returns the unknown properties for the Arrive type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsArrive) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Arrive type extends from the other type. -func (this ActivityStreamsArrive) IsExtending(other vocab.Type) bool { - return ActivityStreamsArriveExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsArrive) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Arrive is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsArrive) LessThan(o vocab.ActivityStreamsArrive) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsArrive) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Arrive" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Arrive" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsArrive) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsArrive) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsArrive) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsArrive) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsArrive) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsArrive) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsArrive) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsArrive) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsArrive) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsArrive) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsArrive) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsArrive) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsArrive) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsArrive) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsArrive) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsArrive) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsArrive) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsArrive) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsArrive) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsArrive) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsArrive) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsArrive) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsArrive) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsArrive) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsArrive) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsArrive) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsArrive) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsArrive) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsArrive) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsArrive) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsArrive) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsArrive) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsArrive) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsArrive) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsArrive) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsArrive) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsArrive) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsArrive) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsArrive) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsArrive) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsArrive) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsArrive) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_doc.go deleted file mode 100644 index e1d682448..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typearticle contains the implementation for the Article type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typearticle diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_pkg.go deleted file mode 100644 index 4c0055c5c..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_pkg.go +++ /dev/null @@ -1,187 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typearticle - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go deleted file mode 100644 index 158c880ad..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go +++ /dev/null @@ -1,1732 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typearticle - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents any kind of multi-paragraph written work. -// -// Example 48 (https://www.w3.org/TR/activitystreams-vocabulary/#ex43-jsonld): -// { -// "attributedTo": "http://sally.example.org", -// "content": "\u003cdiv\u003e... you will never believe -// ...\u003c/div\u003e", -// "name": "What a Crazy Day I Had", -// "type": "Article" -// } -type ActivityStreamsArticle struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsArticleExtends returns true if the Article type extends from the -// other type. -func ActivityStreamsArticleExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// ArticleIsDisjointWith returns true if the other provided type is disjoint with -// the Article type. -func ArticleIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// ArticleIsExtendedBy returns true if the other provided type extends from the -// Article type. Note that it returns false if the types are the same; see the -// "IsOrExtendsArticle" variant instead. -func ArticleIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeArticle creates a Article from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeArticle(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsArticle, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsArticle{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Article" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Article", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Article" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Article") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsArticle returns true if the other provided type is the Article type -// or extends from the Article type. -func IsOrExtendsArticle(other vocab.Type) bool { - if other.GetTypeName() == "Article" { - return true - } - return ArticleIsExtendedBy(other) -} - -// NewActivityStreamsArticle creates a new Article type -func NewActivityStreamsArticle() *ActivityStreamsArticle { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Article") - return &ActivityStreamsArticle{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsArticle) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsArticle) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsArticle) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsArticle) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsArticle) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsArticle) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsArticle) GetTypeName() string { - return "Article" -} - -// GetUnknownProperties returns the unknown properties for the Article type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsArticle) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Article type extends from the other type. -func (this ActivityStreamsArticle) IsExtending(other vocab.Type) bool { - return ActivityStreamsArticleExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsArticle) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Article is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsArticle) LessThan(o vocab.ActivityStreamsArticle) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsArticle) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Article" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Article" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsArticle) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsArticle) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsArticle) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsArticle) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsArticle) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsArticle) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsArticle) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsArticle) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsArticle) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsArticle) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsArticle) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsArticle) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsArticle) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsArticle) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsArticle) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsArticle) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsArticle) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsArticle) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsArticle) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsArticle) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsArticle) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsArticle) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsArticle) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsArticle) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsArticle) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsArticle) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsArticle) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsArticle) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsArticle) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsArticle) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsArticle) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsArticle) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsArticle) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsArticle) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsArticle) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsArticle) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsArticle) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsArticle) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_doc.go deleted file mode 100644 index 9f55f003a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeaudio contains the implementation for the Audio type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeaudio diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_pkg.go deleted file mode 100644 index ece118158..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_pkg.go +++ /dev/null @@ -1,191 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeaudio - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBlurhashPropertyToot returns the deserialization method for - // the "TootBlurhashProperty" non-functional property in the - // vocabulary "Toot" - DeserializeBlurhashPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootBlurhashProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go deleted file mode 100644 index 30a004090..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go +++ /dev/null @@ -1,1775 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeaudio - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents an audio document of any kind. -// -// Example 50 (https://www.w3.org/TR/activitystreams-vocabulary/#ex49-jsonld): -// { -// "name": "Interview With A Famous Technologist", -// "type": "Audio", -// "url": { -// "mediaType": "audio/mp3", -// "type": "owl:Class", -// "url": "http://example.org/podcast.mp3" -// } -// } -type ActivityStreamsAudio struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - TootBlurhash vocab.TootBlurhashProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsAudioExtends returns true if the Audio type extends from the -// other type. -func ActivityStreamsAudioExtends(other vocab.Type) bool { - extensions := []string{"Document", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// AudioIsDisjointWith returns true if the other provided type is disjoint with -// the Audio type. -func AudioIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// AudioIsExtendedBy returns true if the other provided type extends from the -// Audio type. Note that it returns false if the types are the same; see the -// "IsOrExtendsAudio" variant instead. -func AudioIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeAudio creates a Audio from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeAudio(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsAudio, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsAudio{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Audio" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Audio", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Audio" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Audio") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBlurhashPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootBlurhash = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "blurhash" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsAudio returns true if the other provided type is the Audio type or -// extends from the Audio type. -func IsOrExtendsAudio(other vocab.Type) bool { - if other.GetTypeName() == "Audio" { - return true - } - return AudioIsExtendedBy(other) -} - -// NewActivityStreamsAudio creates a new Audio type -func NewActivityStreamsAudio() *ActivityStreamsAudio { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Audio") - return &ActivityStreamsAudio{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsAudio) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsAudio) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsAudio) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsAudio) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsAudio) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsAudio) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTootBlurhash returns the "blurhash" property if it exists, and nil otherwise. -func (this ActivityStreamsAudio) GetTootBlurhash() vocab.TootBlurhashProperty { - return this.TootBlurhash -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsAudio) GetTypeName() string { - return "Audio" -} - -// GetUnknownProperties returns the unknown properties for the Audio type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsAudio) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Audio type extends from the other type. -func (this ActivityStreamsAudio) IsExtending(other vocab.Type) bool { - return ActivityStreamsAudioExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsAudio) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.TootBlurhash, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Audio is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsAudio) LessThan(o vocab.ActivityStreamsAudio) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "blurhash" - if lhs, rhs := this.TootBlurhash, o.GetTootBlurhash(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsAudio) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Audio" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Audio" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "blurhash" - if this.TootBlurhash != nil { - if i, err := this.TootBlurhash.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootBlurhash.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsAudio) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsAudio) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsAudio) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsAudio) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsAudio) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsAudio) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsAudio) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsAudio) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsAudio) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsAudio) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsAudio) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsAudio) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsAudio) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsAudio) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsAudio) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsAudio) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsAudio) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsAudio) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsAudio) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsAudio) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsAudio) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsAudio) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsAudio) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsAudio) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsAudio) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsAudio) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsAudio) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsAudio) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsAudio) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsAudio) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsAudio) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsAudio) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsAudio) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsAudio) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsAudio) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsAudio) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// SetTootBlurhash sets the "blurhash" property. -func (this *ActivityStreamsAudio) SetTootBlurhash(i vocab.TootBlurhashProperty) { - this.TootBlurhash = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsAudio) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsAudio) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_block/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_block/gen_doc.go deleted file mode 100644 index fb575cffc..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_block/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeblock contains the implementation for the Block type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeblock diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_block/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_block/gen_pkg.go deleted file mode 100644 index 23e71ecc6..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_block/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeblock - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go deleted file mode 100644 index 07a7c985f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_block/gen_type_activitystreams_block.go +++ /dev/null @@ -1,1944 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeblock - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor is blocking the object. Blocking is a stronger form of -// Ignore. The typical use is to support social systems that allow one user to -// block activities or content of other users. The target and origin typically -// have no defined meaning. -// -// Example 37 (https://www.w3.org/TR/activitystreams-vocabulary/#ex173-jsonld): -// { -// "actor": "http://sally.example.org", -// "object": "http://joe.example.org", -// "summary": "Sally blocked Joe", -// "type": "Block" -// } -type ActivityStreamsBlock struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsBlockExtends returns true if the Block type extends from the -// other type. -func ActivityStreamsBlockExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Ignore", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// BlockIsDisjointWith returns true if the other provided type is disjoint with -// the Block type. -func BlockIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// BlockIsExtendedBy returns true if the other provided type extends from the -// Block type. Note that it returns false if the types are the same; see the -// "IsOrExtendsBlock" variant instead. -func BlockIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeBlock creates a Block from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeBlock(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsBlock, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsBlock{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Block" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Block", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Block" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Block") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsBlock returns true if the other provided type is the Block type or -// extends from the Block type. -func IsOrExtendsBlock(other vocab.Type) bool { - if other.GetTypeName() == "Block" { - return true - } - return BlockIsExtendedBy(other) -} - -// NewActivityStreamsBlock creates a new Block type -func NewActivityStreamsBlock() *ActivityStreamsBlock { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Block") - return &ActivityStreamsBlock{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsBlock) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsBlock) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsBlock) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsBlock) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsBlock) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsBlock) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsBlock) GetTypeName() string { - return "Block" -} - -// GetUnknownProperties returns the unknown properties for the Block type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsBlock) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Block type extends from the other type. -func (this ActivityStreamsBlock) IsExtending(other vocab.Type) bool { - return ActivityStreamsBlockExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsBlock) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Block is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsBlock) LessThan(o vocab.ActivityStreamsBlock) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsBlock) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Block" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Block" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsBlock) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsBlock) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsBlock) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsBlock) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsBlock) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsBlock) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsBlock) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsBlock) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsBlock) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsBlock) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsBlock) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsBlock) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsBlock) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsBlock) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsBlock) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsBlock) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsBlock) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsBlock) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsBlock) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsBlock) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsBlock) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsBlock) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsBlock) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsBlock) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsBlock) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsBlock) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsBlock) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsBlock) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsBlock) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsBlock) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsBlock) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsBlock) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsBlock) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsBlock) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsBlock) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsBlock) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsBlock) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsBlock) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsBlock) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsBlock) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsBlock) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsBlock) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsBlock) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collection/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collection/gen_doc.go deleted file mode 100644 index d5f865c6e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collection/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typecollection contains the implementation for the Collection type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typecollection diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collection/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collection/gen_pkg.go deleted file mode 100644 index 45181d662..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collection/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecollection - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeCurrentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsCurrentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCurrentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCurrentProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeFirstPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsFirstProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeFirstPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFirstProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeItemsPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsItemsProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsItemsProperty, error) - // DeserializeLastPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLastProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLastPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLastProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTotalItemsPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsTotalItemsProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeTotalItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTotalItemsProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go deleted file mode 100644 index 6482591ac..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collection/gen_type_activitystreams_collection.go +++ /dev/null @@ -1,1957 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecollection - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// A Collection is a subtype of Object that represents ordered or unordered sets -// of Object or Link instances. Refer to the Activity Streams 2.0 Core -// specification for a complete description of the Collection type. -// -// Example 5 (https://www.w3.org/TR/activitystreams-vocabulary/#ex5-jsonld): -// { -// "items": [ -// { -// "name": "A Simple Note", -// "type": "Note" -// }, -// { -// "name": "Another Simple Note", -// "type": "Note" -// } -// ], -// "summary": "Sally's notes", -// "totalItems": 2, -// "type": "Collection" -// } -type ActivityStreamsCollection struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsCurrent vocab.ActivityStreamsCurrentProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsFirst vocab.ActivityStreamsFirstProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsItems vocab.ActivityStreamsItemsProperty - ActivityStreamsLast vocab.ActivityStreamsLastProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ActivityStreamsTotalItems vocab.ActivityStreamsTotalItemsProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsCollectionExtends returns true if the Collection type extends -// from the other type. -func ActivityStreamsCollectionExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// CollectionIsDisjointWith returns true if the other provided type is disjoint -// with the Collection type. -func CollectionIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// CollectionIsExtendedBy returns true if the other provided type extends from the -// Collection type. Note that it returns false if the types are the same; see -// the "IsOrExtendsCollection" variant instead. -func CollectionIsExtendedBy(other vocab.Type) bool { - extensions := []string{"CollectionPage", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeCollection creates a Collection from a map representation that has -// been unmarshalled from a text or binary format. -func DeserializeCollection(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsCollection, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsCollection{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Collection" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Collection", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Collection" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Collection") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeCurrentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCurrent = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeFirstPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsFirst = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeItemsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsItems = p - } - if p, err := mgr.DeserializeLastPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLast = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTotalItemsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTotalItems = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "current" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "first" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "items" { - continue - } else if k == "last" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "totalItems" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsCollection returns true if the other provided type is the Collection -// type or extends from the Collection type. -func IsOrExtendsCollection(other vocab.Type) bool { - if other.GetTypeName() == "Collection" { - return true - } - return CollectionIsExtendedBy(other) -} - -// NewActivityStreamsCollection creates a new Collection type -func NewActivityStreamsCollection() *ActivityStreamsCollection { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Collection") - return &ActivityStreamsCollection{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsCurrent returns the "current" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsCurrent() vocab.ActivityStreamsCurrentProperty { - return this.ActivityStreamsCurrent -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsFirst returns the "first" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsFirst() vocab.ActivityStreamsFirstProperty { - return this.ActivityStreamsFirst -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsItems returns the "items" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsItems() vocab.ActivityStreamsItemsProperty { - return this.ActivityStreamsItems -} - -// GetActivityStreamsLast returns the "last" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsLast() vocab.ActivityStreamsLastProperty { - return this.ActivityStreamsLast -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsTotalItems returns the "totalItems" property if it exists, -// and nil otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsTotalItems() vocab.ActivityStreamsTotalItemsProperty { - return this.ActivityStreamsTotalItems -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollection) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsCollection) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsCollection) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsCollection) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsCollection) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsCollection) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsCollection) GetTypeName() string { - return "Collection" -} - -// GetUnknownProperties returns the unknown properties for the Collection type. -// Note that this should not be used by app developers. It is only used to -// help determine which implementation is LessThan the other. Developers who -// are creating a different implementation of this type's interface can use -// this method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsCollection) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Collection type extends from the other type. -func (this ActivityStreamsCollection) IsExtending(other vocab.Type) bool { - return ActivityStreamsCollectionExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsCollection) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsCurrent, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsFirst, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsItems, m) - m = this.helperJSONLDContext(this.ActivityStreamsLast, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsTotalItems, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Collection is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsCollection) LessThan(o vocab.ActivityStreamsCollection) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "current" - if lhs, rhs := this.ActivityStreamsCurrent, o.GetActivityStreamsCurrent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "first" - if lhs, rhs := this.ActivityStreamsFirst, o.GetActivityStreamsFirst(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "items" - if lhs, rhs := this.ActivityStreamsItems, o.GetActivityStreamsItems(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "last" - if lhs, rhs := this.ActivityStreamsLast, o.GetActivityStreamsLast(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "totalItems" - if lhs, rhs := this.ActivityStreamsTotalItems, o.GetActivityStreamsTotalItems(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsCollection) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Collection" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Collection" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "current" - if this.ActivityStreamsCurrent != nil { - if i, err := this.ActivityStreamsCurrent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCurrent.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "first" - if this.ActivityStreamsFirst != nil { - if i, err := this.ActivityStreamsFirst.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsFirst.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "items" - if this.ActivityStreamsItems != nil { - if i, err := this.ActivityStreamsItems.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsItems.Name()] = i - } - } - // Maybe serialize property "last" - if this.ActivityStreamsLast != nil { - if i, err := this.ActivityStreamsLast.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLast.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "totalItems" - if this.ActivityStreamsTotalItems != nil { - if i, err := this.ActivityStreamsTotalItems.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTotalItems.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsCollection) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsCollection) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsCollection) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsCollection) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsCollection) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsCollection) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsCollection) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsCollection) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsCollection) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsCurrent sets the "current" property. -func (this *ActivityStreamsCollection) SetActivityStreamsCurrent(i vocab.ActivityStreamsCurrentProperty) { - this.ActivityStreamsCurrent = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsCollection) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsCollection) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsFirst sets the "first" property. -func (this *ActivityStreamsCollection) SetActivityStreamsFirst(i vocab.ActivityStreamsFirstProperty) { - this.ActivityStreamsFirst = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsCollection) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsCollection) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsCollection) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsCollection) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsItems sets the "items" property. -func (this *ActivityStreamsCollection) SetActivityStreamsItems(i vocab.ActivityStreamsItemsProperty) { - this.ActivityStreamsItems = i -} - -// SetActivityStreamsLast sets the "last" property. -func (this *ActivityStreamsCollection) SetActivityStreamsLast(i vocab.ActivityStreamsLastProperty) { - this.ActivityStreamsLast = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsCollection) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsCollection) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsCollection) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsCollection) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsCollection) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsCollection) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsCollection) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsCollection) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsCollection) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsCollection) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsCollection) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsCollection) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsCollection) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsCollection) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsTotalItems sets the "totalItems" property. -func (this *ActivityStreamsCollection) SetActivityStreamsTotalItems(i vocab.ActivityStreamsTotalItemsProperty) { - this.ActivityStreamsTotalItems = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsCollection) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsCollection) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsCollection) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsCollection) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsCollection) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsCollection) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsCollection) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsCollection) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsCollection) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage/gen_doc.go deleted file mode 100644 index ea5bc596d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typecollectionpage contains the implementation for the CollectionPage -// type. All applications are strongly encouraged to use the interface instead -// of this concrete definition. The interfaces allow applications to consume -// only the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typecollectionpage diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go deleted file mode 100644 index 0ac83ca98..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage/gen_pkg.go +++ /dev/null @@ -1,219 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecollectionpage - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeCurrentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsCurrentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCurrentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCurrentProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeFirstPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsFirstProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeFirstPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFirstProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeItemsPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsItemsProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsItemsProperty, error) - // DeserializeLastPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLastProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLastPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLastProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeNextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNextProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePartOfPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPartOfProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePartOfPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPartOfProperty, error) - // DeserializePrevPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPrevProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePrevPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPrevProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTotalItemsPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsTotalItemsProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeTotalItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTotalItemsProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go deleted file mode 100644 index 126f14aca..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage/gen_type_activitystreams_collectionpage.go +++ /dev/null @@ -1,2084 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecollectionpage - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Used to represent distinct subsets of items from a Collection. Refer to the -// Activity Streams 2.0 Core for a complete description of the CollectionPage -// object. -// -// Example 7 (https://www.w3.org/TR/activitystreams-vocabulary/#ex6b-jsonld): -// { -// "id": "http://example.org/foo?page=1", -// "items": [ -// { -// "name": "A Simple Note", -// "type": "Note" -// }, -// { -// "name": "Another Simple Note", -// "type": "Note" -// } -// ], -// "partOf": "http://example.org/foo", -// "summary": "Page 1 of Sally's notes", -// "type": "CollectionPage" -// } -type ActivityStreamsCollectionPage struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsCurrent vocab.ActivityStreamsCurrentProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsFirst vocab.ActivityStreamsFirstProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsItems vocab.ActivityStreamsItemsProperty - ActivityStreamsLast vocab.ActivityStreamsLastProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsNext vocab.ActivityStreamsNextProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPartOf vocab.ActivityStreamsPartOfProperty - ActivityStreamsPrev vocab.ActivityStreamsPrevProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ActivityStreamsTotalItems vocab.ActivityStreamsTotalItemsProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsCollectionPageExtends returns true if the CollectionPage type -// extends from the other type. -func ActivityStreamsCollectionPageExtends(other vocab.Type) bool { - extensions := []string{"Collection", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// CollectionPageIsDisjointWith returns true if the other provided type is -// disjoint with the CollectionPage type. -func CollectionPageIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// CollectionPageIsExtendedBy returns true if the other provided type extends from -// the CollectionPage type. Note that it returns false if the types are the -// same; see the "IsOrExtendsCollectionPage" variant instead. -func CollectionPageIsExtendedBy(other vocab.Type) bool { - extensions := []string{"OrderedCollectionPage"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeCollectionPage creates a CollectionPage from a map representation -// that has been unmarshalled from a text or binary format. -func DeserializeCollectionPage(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsCollectionPage, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsCollectionPage{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "CollectionPage" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "CollectionPage", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "CollectionPage" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "CollectionPage") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeCurrentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCurrent = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeFirstPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsFirst = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeItemsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsItems = p - } - if p, err := mgr.DeserializeLastPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLast = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeNextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsNext = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePartOfPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPartOf = p - } - if p, err := mgr.DeserializePrevPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPrev = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTotalItemsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTotalItems = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "current" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "first" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "items" { - continue - } else if k == "last" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "next" { - continue - } else if k == "object" { - continue - } else if k == "partOf" { - continue - } else if k == "prev" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "totalItems" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsCollectionPage returns true if the other provided type is the -// CollectionPage type or extends from the CollectionPage type. -func IsOrExtendsCollectionPage(other vocab.Type) bool { - if other.GetTypeName() == "CollectionPage" { - return true - } - return CollectionPageIsExtendedBy(other) -} - -// NewActivityStreamsCollectionPage creates a new CollectionPage type -func NewActivityStreamsCollectionPage() *ActivityStreamsCollectionPage { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("CollectionPage") - return &ActivityStreamsCollectionPage{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsCurrent returns the "current" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsCurrent() vocab.ActivityStreamsCurrentProperty { - return this.ActivityStreamsCurrent -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsFirst returns the "first" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsFirst() vocab.ActivityStreamsFirstProperty { - return this.ActivityStreamsFirst -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsItems returns the "items" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsItems() vocab.ActivityStreamsItemsProperty { - return this.ActivityStreamsItems -} - -// GetActivityStreamsLast returns the "last" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsLast() vocab.ActivityStreamsLastProperty { - return this.ActivityStreamsLast -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsNext returns the "next" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsNext() vocab.ActivityStreamsNextProperty { - return this.ActivityStreamsNext -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPartOf returns the "partOf" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsPartOf() vocab.ActivityStreamsPartOfProperty { - return this.ActivityStreamsPartOf -} - -// GetActivityStreamsPrev returns the "prev" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsPrev() vocab.ActivityStreamsPrevProperty { - return this.ActivityStreamsPrev -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsTotalItems returns the "totalItems" property if it exists, -// and nil otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsTotalItems() vocab.ActivityStreamsTotalItemsProperty { - return this.ActivityStreamsTotalItems -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCollectionPage) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsCollectionPage) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsCollectionPage) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsCollectionPage) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsCollectionPage) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsCollectionPage) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsCollectionPage) GetTypeName() string { - return "CollectionPage" -} - -// GetUnknownProperties returns the unknown properties for the CollectionPage -// type. Note that this should not be used by app developers. It is only used -// to help determine which implementation is LessThan the other. Developers -// who are creating a different implementation of this type's interface can -// use this method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsCollectionPage) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the CollectionPage type extends from the other type. -func (this ActivityStreamsCollectionPage) IsExtending(other vocab.Type) bool { - return ActivityStreamsCollectionPageExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsCollectionPage) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsCurrent, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsFirst, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsItems, m) - m = this.helperJSONLDContext(this.ActivityStreamsLast, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsNext, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPartOf, m) - m = this.helperJSONLDContext(this.ActivityStreamsPrev, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsTotalItems, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this CollectionPage is lesser, with an arbitrary but -// stable determination. -func (this ActivityStreamsCollectionPage) LessThan(o vocab.ActivityStreamsCollectionPage) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "current" - if lhs, rhs := this.ActivityStreamsCurrent, o.GetActivityStreamsCurrent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "first" - if lhs, rhs := this.ActivityStreamsFirst, o.GetActivityStreamsFirst(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "items" - if lhs, rhs := this.ActivityStreamsItems, o.GetActivityStreamsItems(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "last" - if lhs, rhs := this.ActivityStreamsLast, o.GetActivityStreamsLast(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "next" - if lhs, rhs := this.ActivityStreamsNext, o.GetActivityStreamsNext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "partOf" - if lhs, rhs := this.ActivityStreamsPartOf, o.GetActivityStreamsPartOf(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "prev" - if lhs, rhs := this.ActivityStreamsPrev, o.GetActivityStreamsPrev(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "totalItems" - if lhs, rhs := this.ActivityStreamsTotalItems, o.GetActivityStreamsTotalItems(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsCollectionPage) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "CollectionPage" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "CollectionPage" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "current" - if this.ActivityStreamsCurrent != nil { - if i, err := this.ActivityStreamsCurrent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCurrent.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "first" - if this.ActivityStreamsFirst != nil { - if i, err := this.ActivityStreamsFirst.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsFirst.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "items" - if this.ActivityStreamsItems != nil { - if i, err := this.ActivityStreamsItems.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsItems.Name()] = i - } - } - // Maybe serialize property "last" - if this.ActivityStreamsLast != nil { - if i, err := this.ActivityStreamsLast.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLast.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "next" - if this.ActivityStreamsNext != nil { - if i, err := this.ActivityStreamsNext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsNext.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "partOf" - if this.ActivityStreamsPartOf != nil { - if i, err := this.ActivityStreamsPartOf.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPartOf.Name()] = i - } - } - // Maybe serialize property "prev" - if this.ActivityStreamsPrev != nil { - if i, err := this.ActivityStreamsPrev.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPrev.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "totalItems" - if this.ActivityStreamsTotalItems != nil { - if i, err := this.ActivityStreamsTotalItems.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTotalItems.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsCurrent sets the "current" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsCurrent(i vocab.ActivityStreamsCurrentProperty) { - this.ActivityStreamsCurrent = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsFirst sets the "first" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsFirst(i vocab.ActivityStreamsFirstProperty) { - this.ActivityStreamsFirst = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsItems sets the "items" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsItems(i vocab.ActivityStreamsItemsProperty) { - this.ActivityStreamsItems = i -} - -// SetActivityStreamsLast sets the "last" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsLast(i vocab.ActivityStreamsLastProperty) { - this.ActivityStreamsLast = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsNext sets the "next" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsNext(i vocab.ActivityStreamsNextProperty) { - this.ActivityStreamsNext = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPartOf sets the "partOf" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsPartOf(i vocab.ActivityStreamsPartOfProperty) { - this.ActivityStreamsPartOf = i -} - -// SetActivityStreamsPrev sets the "prev" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsPrev(i vocab.ActivityStreamsPrevProperty) { - this.ActivityStreamsPrev = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsTotalItems sets the "totalItems" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsTotalItems(i vocab.ActivityStreamsTotalItemsProperty) { - this.ActivityStreamsTotalItems = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsCollectionPage) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsCollectionPage) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsCollectionPage) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsCollectionPage) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsCollectionPage) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsCollectionPage) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsCollectionPage) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsCollectionPage) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_create/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_create/gen_doc.go deleted file mode 100644 index 98e4f5ae6..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_create/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typecreate contains the implementation for the Create type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typecreate diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_create/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_create/gen_pkg.go deleted file mode 100644 index 64861bdfc..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_create/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecreate - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go deleted file mode 100644 index 05c74e360..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_create/gen_type_activitystreams_create.go +++ /dev/null @@ -1,1948 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecreate - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor has created the object. -// -// Example 15 (https://www.w3.org/TR/activitystreams-vocabulary/#ex12-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "content": "This is a simple note", -// "name": "A Simple Note", -// "type": "Note" -// }, -// "summary": "Sally created a note", -// "type": "Create" -// } -type ActivityStreamsCreate struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsCreateExtends returns true if the Create type extends from the -// other type. -func ActivityStreamsCreateExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// CreateIsDisjointWith returns true if the other provided type is disjoint with -// the Create type. -func CreateIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// CreateIsExtendedBy returns true if the other provided type extends from the -// Create type. Note that it returns false if the types are the same; see the -// "IsOrExtendsCreate" variant instead. -func CreateIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeCreate creates a Create from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeCreate(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsCreate, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsCreate{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Create" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Create", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Create" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Create") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsCreate returns true if the other provided type is the Create type or -// extends from the Create type. -func IsOrExtendsCreate(other vocab.Type) bool { - if other.GetTypeName() == "Create" { - return true - } - return CreateIsExtendedBy(other) -} - -// NewActivityStreamsCreate creates a new Create type -func NewActivityStreamsCreate() *ActivityStreamsCreate { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Create") - return &ActivityStreamsCreate{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsCreate) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsCreate) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsCreate) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsCreate) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsCreate) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsCreate) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsCreate) GetTypeName() string { - return "Create" -} - -// GetUnknownProperties returns the unknown properties for the Create type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsCreate) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Create type extends from the other type. -func (this ActivityStreamsCreate) IsExtending(other vocab.Type) bool { - return ActivityStreamsCreateExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsCreate) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Create is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsCreate) LessThan(o vocab.ActivityStreamsCreate) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsCreate) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Create" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Create" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsCreate) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsCreate) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsCreate) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsCreate) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsCreate) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsCreate) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsCreate) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsCreate) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsCreate) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsCreate) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsCreate) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsCreate) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsCreate) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsCreate) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsCreate) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsCreate) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsCreate) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsCreate) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsCreate) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsCreate) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsCreate) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsCreate) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsCreate) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsCreate) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsCreate) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsCreate) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsCreate) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsCreate) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsCreate) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsCreate) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsCreate) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsCreate) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsCreate) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsCreate) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsCreate) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsCreate) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsCreate) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsCreate) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsCreate) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsCreate) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsCreate) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsCreate) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsCreate) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_delete/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_delete/gen_doc.go deleted file mode 100644 index 52199177d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_delete/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typedelete contains the implementation for the Delete type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typedelete diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_delete/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_delete/gen_pkg.go deleted file mode 100644 index 59f8c6eb7..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_delete/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typedelete - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go deleted file mode 100644 index 4876994b5..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_delete/gen_type_activitystreams_delete.go +++ /dev/null @@ -1,1949 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typedelete - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor has deleted the object. If specified, the origin -// indicates the context from which the object was deleted. -// -// Example 16 (https://www.w3.org/TR/activitystreams-vocabulary/#ex13-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/notes/1", -// "origin": { -// "name": "Sally's Notes", -// "type": "Collection" -// }, -// "summary": "Sally deleted a note", -// "type": "Delete" -// } -type ActivityStreamsDelete struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsDeleteExtends returns true if the Delete type extends from the -// other type. -func ActivityStreamsDeleteExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeleteIsDisjointWith returns true if the other provided type is disjoint with -// the Delete type. -func DeleteIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// DeleteIsExtendedBy returns true if the other provided type extends from the -// Delete type. Note that it returns false if the types are the same; see the -// "IsOrExtendsDelete" variant instead. -func DeleteIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeDelete creates a Delete from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeDelete(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsDelete, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsDelete{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Delete" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Delete", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Delete" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Delete") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsDelete returns true if the other provided type is the Delete type or -// extends from the Delete type. -func IsOrExtendsDelete(other vocab.Type) bool { - if other.GetTypeName() == "Delete" { - return true - } - return DeleteIsExtendedBy(other) -} - -// NewActivityStreamsDelete creates a new Delete type -func NewActivityStreamsDelete() *ActivityStreamsDelete { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Delete") - return &ActivityStreamsDelete{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDelete) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsDelete) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsDelete) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsDelete) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsDelete) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsDelete) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsDelete) GetTypeName() string { - return "Delete" -} - -// GetUnknownProperties returns the unknown properties for the Delete type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsDelete) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Delete type extends from the other type. -func (this ActivityStreamsDelete) IsExtending(other vocab.Type) bool { - return ActivityStreamsDeleteExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsDelete) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Delete is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsDelete) LessThan(o vocab.ActivityStreamsDelete) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsDelete) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Delete" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Delete" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsDelete) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsDelete) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsDelete) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsDelete) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsDelete) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsDelete) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsDelete) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsDelete) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsDelete) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsDelete) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsDelete) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsDelete) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsDelete) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsDelete) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsDelete) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsDelete) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsDelete) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsDelete) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsDelete) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsDelete) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsDelete) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsDelete) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsDelete) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsDelete) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsDelete) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsDelete) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsDelete) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsDelete) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsDelete) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsDelete) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsDelete) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsDelete) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsDelete) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsDelete) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsDelete) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsDelete) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsDelete) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsDelete) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsDelete) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsDelete) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsDelete) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsDelete) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsDelete) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_dislike/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_dislike/gen_doc.go deleted file mode 100644 index 7297a1203..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_dislike/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typedislike contains the implementation for the Dislike type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typedislike diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go deleted file mode 100644 index dd34234a3..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_dislike/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typedislike - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go deleted file mode 100644 index 4ac4abfa7..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_dislike/gen_type_activitystreams_dislike.go +++ /dev/null @@ -1,1941 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typedislike - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor dislikes the object. -// -// Example 39 (https://www.w3.org/TR/activitystreams-vocabulary/#ex175-jsonld): -// { -// "actor": "http://sally.example.org", -// "object": "http://example.org/posts/1", -// "summary": "Sally disliked a post", -// "type": "Dislike" -// } -type ActivityStreamsDislike struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsDislikeExtends returns true if the Dislike type extends from the -// other type. -func ActivityStreamsDislikeExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeDislike creates a Dislike from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeDislike(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsDislike, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsDislike{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Dislike" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Dislike", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Dislike" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Dislike") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// DislikeIsDisjointWith returns true if the other provided type is disjoint with -// the Dislike type. -func DislikeIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// DislikeIsExtendedBy returns true if the other provided type extends from the -// Dislike type. Note that it returns false if the types are the same; see the -// "IsOrExtendsDislike" variant instead. -func DislikeIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// IsOrExtendsDislike returns true if the other provided type is the Dislike type -// or extends from the Dislike type. -func IsOrExtendsDislike(other vocab.Type) bool { - if other.GetTypeName() == "Dislike" { - return true - } - return DislikeIsExtendedBy(other) -} - -// NewActivityStreamsDislike creates a new Dislike type -func NewActivityStreamsDislike() *ActivityStreamsDislike { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Dislike") - return &ActivityStreamsDislike{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDislike) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsDislike) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsDislike) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsDislike) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsDislike) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsDislike) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsDislike) GetTypeName() string { - return "Dislike" -} - -// GetUnknownProperties returns the unknown properties for the Dislike type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsDislike) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Dislike type extends from the other type. -func (this ActivityStreamsDislike) IsExtending(other vocab.Type) bool { - return ActivityStreamsDislikeExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsDislike) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Dislike is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsDislike) LessThan(o vocab.ActivityStreamsDislike) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsDislike) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Dislike" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Dislike" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsDislike) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsDislike) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsDislike) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsDislike) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsDislike) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsDislike) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsDislike) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsDislike) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsDislike) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsDislike) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsDislike) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsDislike) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsDislike) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsDislike) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsDislike) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsDislike) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsDislike) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsDislike) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsDislike) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsDislike) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsDislike) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsDislike) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsDislike) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsDislike) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsDislike) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsDislike) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsDislike) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsDislike) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsDislike) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsDislike) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsDislike) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsDislike) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsDislike) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsDislike) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsDislike) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsDislike) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsDislike) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsDislike) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsDislike) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsDislike) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsDislike) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsDislike) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsDislike) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_document/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_document/gen_doc.go deleted file mode 100644 index 0c4682fd9..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_document/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typedocument contains the implementation for the Document type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typedocument diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_document/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_document/gen_pkg.go deleted file mode 100644 index a64977722..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_document/gen_pkg.go +++ /dev/null @@ -1,191 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typedocument - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBlurhashPropertyToot returns the deserialization method for - // the "TootBlurhashProperty" non-functional property in the - // vocabulary "Toot" - DeserializeBlurhashPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootBlurhashProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go deleted file mode 100644 index 093f6391e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go +++ /dev/null @@ -1,1776 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typedocument - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents a document of any kind. -// -// Example 49 (https://www.w3.org/TR/activitystreams-vocabulary/#ex48-jsonld): -// { -// "name": "4Q Sales Forecast", -// "type": "Document", -// "url": "http://example.org/4q-sales-forecast.pdf" -// } -type ActivityStreamsDocument struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - TootBlurhash vocab.TootBlurhashProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsDocumentExtends returns true if the Document type extends from -// the other type. -func ActivityStreamsDocumentExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeDocument creates a Document from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeDocument(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsDocument, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsDocument{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Document" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Document", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Document" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Document") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBlurhashPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootBlurhash = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "blurhash" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// DocumentIsDisjointWith returns true if the other provided type is disjoint with -// the Document type. -func DocumentIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// DocumentIsExtendedBy returns true if the other provided type extends from the -// Document type. Note that it returns false if the types are the same; see -// the "IsOrExtendsDocument" variant instead. -func DocumentIsExtendedBy(other vocab.Type) bool { - extensions := []string{"Audio", "Image", "Page", "Video"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsDocument returns true if the other provided type is the Document -// type or extends from the Document type. -func IsOrExtendsDocument(other vocab.Type) bool { - if other.GetTypeName() == "Document" { - return true - } - return DocumentIsExtendedBy(other) -} - -// NewActivityStreamsDocument creates a new Document type -func NewActivityStreamsDocument() *ActivityStreamsDocument { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Document") - return &ActivityStreamsDocument{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsDocument) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsDocument) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsDocument) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsDocument) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsDocument) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsDocument) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTootBlurhash returns the "blurhash" property if it exists, and nil otherwise. -func (this ActivityStreamsDocument) GetTootBlurhash() vocab.TootBlurhashProperty { - return this.TootBlurhash -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsDocument) GetTypeName() string { - return "Document" -} - -// GetUnknownProperties returns the unknown properties for the Document type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsDocument) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Document type extends from the other type. -func (this ActivityStreamsDocument) IsExtending(other vocab.Type) bool { - return ActivityStreamsDocumentExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsDocument) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.TootBlurhash, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Document is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsDocument) LessThan(o vocab.ActivityStreamsDocument) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "blurhash" - if lhs, rhs := this.TootBlurhash, o.GetTootBlurhash(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsDocument) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Document" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Document" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "blurhash" - if this.TootBlurhash != nil { - if i, err := this.TootBlurhash.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootBlurhash.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsDocument) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsDocument) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsDocument) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsDocument) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsDocument) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsDocument) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsDocument) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsDocument) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsDocument) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsDocument) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsDocument) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsDocument) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsDocument) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsDocument) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsDocument) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsDocument) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsDocument) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsDocument) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsDocument) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsDocument) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsDocument) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsDocument) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsDocument) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsDocument) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsDocument) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsDocument) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsDocument) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsDocument) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsDocument) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsDocument) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsDocument) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsDocument) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsDocument) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsDocument) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsDocument) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsDocument) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// SetTootBlurhash sets the "blurhash" property. -func (this *ActivityStreamsDocument) SetTootBlurhash(i vocab.TootBlurhashProperty) { - this.TootBlurhash = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsDocument) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsDocument) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_event/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_event/gen_doc.go deleted file mode 100644 index f451b2ae1..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_event/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeevent contains the implementation for the Event type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeevent diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_event/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_event/gen_pkg.go deleted file mode 100644 index 74af2a1d5..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_event/gen_pkg.go +++ /dev/null @@ -1,187 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeevent - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go deleted file mode 100644 index 6ebf1de39..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go +++ /dev/null @@ -1,1731 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeevent - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents any kind of event. -// -// Example 55 (https://www.w3.org/TR/activitystreams-vocabulary/#ex56-jsonld): -// { -// "endTime": "2015-01-01T06:00:00-08:00", -// "name": "Going-Away Party for Jim", -// "startTime": "2014-12-31T23:00:00-08:00", -// "type": "Event" -// } -type ActivityStreamsEvent struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsEventExtends returns true if the Event type extends from the -// other type. -func ActivityStreamsEventExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeEvent creates a Event from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeEvent(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsEvent, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsEvent{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Event" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Event", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Event" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Event") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// EventIsDisjointWith returns true if the other provided type is disjoint with -// the Event type. -func EventIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// EventIsExtendedBy returns true if the other provided type extends from the -// Event type. Note that it returns false if the types are the same; see the -// "IsOrExtendsEvent" variant instead. -func EventIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// IsOrExtendsEvent returns true if the other provided type is the Event type or -// extends from the Event type. -func IsOrExtendsEvent(other vocab.Type) bool { - if other.GetTypeName() == "Event" { - return true - } - return EventIsExtendedBy(other) -} - -// NewActivityStreamsEvent creates a new Event type -func NewActivityStreamsEvent() *ActivityStreamsEvent { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Event") - return &ActivityStreamsEvent{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsEvent) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsEvent) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsEvent) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsEvent) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsEvent) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsEvent) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsEvent) GetTypeName() string { - return "Event" -} - -// GetUnknownProperties returns the unknown properties for the Event type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsEvent) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Event type extends from the other type. -func (this ActivityStreamsEvent) IsExtending(other vocab.Type) bool { - return ActivityStreamsEventExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsEvent) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Event is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsEvent) LessThan(o vocab.ActivityStreamsEvent) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsEvent) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Event" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Event" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsEvent) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsEvent) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsEvent) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsEvent) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsEvent) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsEvent) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsEvent) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsEvent) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsEvent) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsEvent) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsEvent) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsEvent) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsEvent) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsEvent) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsEvent) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsEvent) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsEvent) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsEvent) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsEvent) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsEvent) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsEvent) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsEvent) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsEvent) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsEvent) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsEvent) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsEvent) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsEvent) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsEvent) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsEvent) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsEvent) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsEvent) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsEvent) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsEvent) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsEvent) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsEvent) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsEvent) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsEvent) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsEvent) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_flag/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_flag/gen_doc.go deleted file mode 100644 index aef69614e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_flag/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeflag contains the implementation for the Flag type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeflag diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_flag/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_flag/gen_pkg.go deleted file mode 100644 index 9099556ba..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_flag/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeflag - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go deleted file mode 100644 index f979a1f93..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_flag/gen_type_activitystreams_flag.go +++ /dev/null @@ -1,1946 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeflag - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor is "flagging" the object. Flagging is defined in the -// sense common to many social platforms as reporting content as being -// inappropriate for any number of reasons. -// -// Example 38 (https://www.w3.org/TR/activitystreams-vocabulary/#ex174-jsonld): -// { -// "actor": "http://sally.example.org", -// "object": { -// "content": "An inappropriate note", -// "type": "Note" -// }, -// "summary": "Sally flagged an inappropriate note", -// "type": "Flag" -// } -type ActivityStreamsFlag struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsFlagExtends returns true if the Flag type extends from the other -// type. -func ActivityStreamsFlagExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeFlag creates a Flag from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeFlag(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsFlag, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsFlag{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Flag" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Flag", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Flag" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Flag") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// FlagIsDisjointWith returns true if the other provided type is disjoint with the -// Flag type. -func FlagIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// FlagIsExtendedBy returns true if the other provided type extends from the Flag -// type. Note that it returns false if the types are the same; see the -// "IsOrExtendsFlag" variant instead. -func FlagIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// IsOrExtendsFlag returns true if the other provided type is the Flag type or -// extends from the Flag type. -func IsOrExtendsFlag(other vocab.Type) bool { - if other.GetTypeName() == "Flag" { - return true - } - return FlagIsExtendedBy(other) -} - -// NewActivityStreamsFlag creates a new Flag type -func NewActivityStreamsFlag() *ActivityStreamsFlag { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Flag") - return &ActivityStreamsFlag{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFlag) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsFlag) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsFlag) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsFlag) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsFlag) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsFlag) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsFlag) GetTypeName() string { - return "Flag" -} - -// GetUnknownProperties returns the unknown properties for the Flag type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsFlag) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Flag type extends from the other type. -func (this ActivityStreamsFlag) IsExtending(other vocab.Type) bool { - return ActivityStreamsFlagExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsFlag) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Flag is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsFlag) LessThan(o vocab.ActivityStreamsFlag) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsFlag) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Flag" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Flag" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsFlag) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsFlag) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsFlag) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsFlag) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsFlag) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsFlag) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsFlag) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsFlag) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsFlag) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsFlag) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsFlag) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsFlag) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsFlag) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsFlag) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsFlag) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsFlag) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsFlag) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsFlag) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsFlag) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsFlag) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsFlag) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsFlag) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsFlag) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsFlag) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsFlag) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsFlag) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsFlag) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsFlag) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsFlag) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsFlag) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsFlag) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsFlag) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsFlag) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsFlag) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsFlag) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsFlag) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsFlag) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsFlag) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsFlag) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsFlag) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsFlag) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsFlag) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsFlag) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_follow/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_follow/gen_doc.go deleted file mode 100644 index 4c8450ab7..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_follow/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typefollow contains the implementation for the Follow type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typefollow diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_follow/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_follow/gen_pkg.go deleted file mode 100644 index 17d65c295..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_follow/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typefollow - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go deleted file mode 100644 index 1cf4b896f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_follow/gen_type_activitystreams_follow.go +++ /dev/null @@ -1,1950 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typefollow - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor is "following" the object. Following is defined in the -// sense typically used within Social systems in which the actor is interested -// in any activity performed by or on the object. The target and origin -// typically have no defined meaning. -// -// Example 17 (https://www.w3.org/TR/activitystreams-vocabulary/#ex15-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "John", -// "type": "Person" -// }, -// "summary": "Sally followed John", -// "type": "Follow" -// } -type ActivityStreamsFollow struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsFollowExtends returns true if the Follow type extends from the -// other type. -func ActivityStreamsFollowExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeFollow creates a Follow from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeFollow(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsFollow, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsFollow{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Follow" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Follow", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Follow" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Follow") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// FollowIsDisjointWith returns true if the other provided type is disjoint with -// the Follow type. -func FollowIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// FollowIsExtendedBy returns true if the other provided type extends from the -// Follow type. Note that it returns false if the types are the same; see the -// "IsOrExtendsFollow" variant instead. -func FollowIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// IsOrExtendsFollow returns true if the other provided type is the Follow type or -// extends from the Follow type. -func IsOrExtendsFollow(other vocab.Type) bool { - if other.GetTypeName() == "Follow" { - return true - } - return FollowIsExtendedBy(other) -} - -// NewActivityStreamsFollow creates a new Follow type -func NewActivityStreamsFollow() *ActivityStreamsFollow { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Follow") - return &ActivityStreamsFollow{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsFollow) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsFollow) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsFollow) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsFollow) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsFollow) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsFollow) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsFollow) GetTypeName() string { - return "Follow" -} - -// GetUnknownProperties returns the unknown properties for the Follow type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsFollow) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Follow type extends from the other type. -func (this ActivityStreamsFollow) IsExtending(other vocab.Type) bool { - return ActivityStreamsFollowExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsFollow) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Follow is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsFollow) LessThan(o vocab.ActivityStreamsFollow) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsFollow) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Follow" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Follow" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsFollow) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsFollow) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsFollow) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsFollow) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsFollow) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsFollow) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsFollow) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsFollow) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsFollow) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsFollow) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsFollow) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsFollow) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsFollow) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsFollow) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsFollow) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsFollow) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsFollow) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsFollow) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsFollow) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsFollow) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsFollow) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsFollow) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsFollow) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsFollow) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsFollow) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsFollow) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsFollow) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsFollow) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsFollow) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsFollow) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsFollow) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsFollow) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsFollow) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsFollow) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsFollow) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsFollow) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsFollow) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsFollow) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsFollow) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsFollow) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsFollow) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsFollow) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsFollow) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_group/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_group/gen_doc.go deleted file mode 100644 index 7bc7bede6..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_group/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typegroup contains the implementation for the Group type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typegroup diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_group/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_group/gen_pkg.go deleted file mode 100644 index 167179c55..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_group/gen_pkg.go +++ /dev/null @@ -1,233 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typegroup - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDiscoverablePropertyToot returns the deserialization method - // for the "TootDiscoverableProperty" non-functional property in the - // vocabulary "Toot" - DeserializeDiscoverablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootDiscoverableProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeFeaturedPropertyToot returns the deserialization method for - // the "TootFeaturedProperty" non-functional property in the - // vocabulary "Toot" - DeserializeFeaturedPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFeaturedProperty, error) - // DeserializeFollowersPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsFollowersProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowersProperty, error) - // DeserializeFollowingPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsFollowingProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeFollowingPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowingProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInboxPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInboxProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInboxProperty, error) - // DeserializeLikedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikedProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsManuallyApprovesFollowersProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeManuallyApprovesFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOutboxPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOutboxProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOutboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOutboxProperty, error) - // DeserializePreferredUsernamePropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsPreferredUsernameProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializePreferredUsernamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreferredUsernameProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublicKeyPropertyW3IDSecurityV1 returns the deserialization - // method for the "W3IDSecurityV1PublicKeyProperty" non-functional - // property in the vocabulary "W3IDSecurityV1" - DeserializePublicKeyPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKeyProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeStreamsPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStreamsProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStreamsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStreamsProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go deleted file mode 100644 index 4951eef9b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go +++ /dev/null @@ -1,2193 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typegroup - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents a formal or informal collective of Actors. -// -// Example 43 (https://www.w3.org/TR/activitystreams-vocabulary/#ex37-jsonld): -// { -// "name": "Big Beards of Austin", -// "type": "Group" -// } -type ActivityStreamsGroup struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - TootDiscoverable vocab.TootDiscoverableProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - TootFeatured vocab.TootFeaturedProperty - ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty - ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInbox vocab.ActivityStreamsInboxProperty - ActivityStreamsLiked vocab.ActivityStreamsLikedProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty - ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsGroupExtends returns true if the Group type extends from the -// other type. -func ActivityStreamsGroupExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeGroup creates a Group from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsGroup, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsGroup{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Group" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Group", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Group" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Group") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDiscoverablePropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootDiscoverable = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeFeaturedPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootFeatured = p - } - if p, err := mgr.DeserializeFollowersPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsFollowers = p - } - if p, err := mgr.DeserializeFollowingPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsFollowing = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInboxPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInbox = p - } - if p, err := mgr.DeserializeLikedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLiked = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeManuallyApprovesFollowersPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsManuallyApprovesFollowers = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOutboxPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOutbox = p - } - if p, err := mgr.DeserializePreferredUsernamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreferredUsername = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublicKeyPropertyW3IDSecurityV1()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.W3IDSecurityV1PublicKey = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeStreamsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStreams = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "discoverable" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "featured" { - continue - } else if k == "followers" { - continue - } else if k == "following" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "inbox" { - continue - } else if k == "liked" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "manuallyApprovesFollowers" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "outbox" { - continue - } else if k == "preferredUsername" { - continue - } else if k == "preferredUsernameMap" { - continue - } else if k == "preview" { - continue - } else if k == "publicKey" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "streams" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// GroupIsDisjointWith returns true if the other provided type is disjoint with -// the Group type. -func GroupIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// GroupIsExtendedBy returns true if the other provided type extends from the -// Group type. Note that it returns false if the types are the same; see the -// "IsOrExtendsGroup" variant instead. -func GroupIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// IsOrExtendsGroup returns true if the other provided type is the Group type or -// extends from the Group type. -func IsOrExtendsGroup(other vocab.Type) bool { - if other.GetTypeName() == "Group" { - return true - } - return GroupIsExtendedBy(other) -} - -// NewActivityStreamsGroup creates a new Group type -func NewActivityStreamsGroup() *ActivityStreamsGroup { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Group") - return &ActivityStreamsGroup{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsFollowers returns the "followers" property if it exists, and -// nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsFollowers() vocab.ActivityStreamsFollowersProperty { - return this.ActivityStreamsFollowers -} - -// GetActivityStreamsFollowing returns the "following" property if it exists, and -// nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsFollowing() vocab.ActivityStreamsFollowingProperty { - return this.ActivityStreamsFollowing -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInbox returns the "inbox" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsInbox() vocab.ActivityStreamsInboxProperty { - return this.ActivityStreamsInbox -} - -// GetActivityStreamsLiked returns the "liked" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsLiked() vocab.ActivityStreamsLikedProperty { - return this.ActivityStreamsLiked -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsManuallyApprovesFollowers returns the -// "manuallyApprovesFollowers" property if it exists, and nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsManuallyApprovesFollowers() vocab.ActivityStreamsManuallyApprovesFollowersProperty { - return this.ActivityStreamsManuallyApprovesFollowers -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOutbox returns the "outbox" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsOutbox() vocab.ActivityStreamsOutboxProperty { - return this.ActivityStreamsOutbox -} - -// GetActivityStreamsPreferredUsername returns the "preferredUsername" property if -// it exists, and nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsPreferredUsername() vocab.ActivityStreamsPreferredUsernameProperty { - return this.ActivityStreamsPreferredUsername -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsStreams returns the "streams" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsStreams() vocab.ActivityStreamsStreamsProperty { - return this.ActivityStreamsStreams -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsGroup) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsGroup) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsGroup) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsGroup) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsGroup) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTootDiscoverable returns the "discoverable" property if it exists, and nil -// otherwise. -func (this ActivityStreamsGroup) GetTootDiscoverable() vocab.TootDiscoverableProperty { - return this.TootDiscoverable -} - -// GetTootFeatured returns the "featured" property if it exists, and nil otherwise. -func (this ActivityStreamsGroup) GetTootFeatured() vocab.TootFeaturedProperty { - return this.TootFeatured -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsGroup) GetTypeName() string { - return "Group" -} - -// GetUnknownProperties returns the unknown properties for the Group type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsGroup) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// GetW3IDSecurityV1PublicKey returns the "publicKey" property if it exists, and -// nil otherwise. -func (this ActivityStreamsGroup) GetW3IDSecurityV1PublicKey() vocab.W3IDSecurityV1PublicKeyProperty { - return this.W3IDSecurityV1PublicKey -} - -// IsExtending returns true if the Group type extends from the other type. -func (this ActivityStreamsGroup) IsExtending(other vocab.Type) bool { - return ActivityStreamsGroupExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsGroup) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.TootDiscoverable, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.TootFeatured, m) - m = this.helperJSONLDContext(this.ActivityStreamsFollowers, m) - m = this.helperJSONLDContext(this.ActivityStreamsFollowing, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInbox, m) - m = this.helperJSONLDContext(this.ActivityStreamsLiked, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOutbox, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreferredUsername, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKey, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsStreams, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Group is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsGroup) LessThan(o vocab.ActivityStreamsGroup) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "discoverable" - if lhs, rhs := this.TootDiscoverable, o.GetTootDiscoverable(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "featured" - if lhs, rhs := this.TootFeatured, o.GetTootFeatured(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "followers" - if lhs, rhs := this.ActivityStreamsFollowers, o.GetActivityStreamsFollowers(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "following" - if lhs, rhs := this.ActivityStreamsFollowing, o.GetActivityStreamsFollowing(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inbox" - if lhs, rhs := this.ActivityStreamsInbox, o.GetActivityStreamsInbox(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "liked" - if lhs, rhs := this.ActivityStreamsLiked, o.GetActivityStreamsLiked(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "manuallyApprovesFollowers" - if lhs, rhs := this.ActivityStreamsManuallyApprovesFollowers, o.GetActivityStreamsManuallyApprovesFollowers(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "outbox" - if lhs, rhs := this.ActivityStreamsOutbox, o.GetActivityStreamsOutbox(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preferredUsername" - if lhs, rhs := this.ActivityStreamsPreferredUsername, o.GetActivityStreamsPreferredUsername(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "publicKey" - if lhs, rhs := this.W3IDSecurityV1PublicKey, o.GetW3IDSecurityV1PublicKey(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "streams" - if lhs, rhs := this.ActivityStreamsStreams, o.GetActivityStreamsStreams(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsGroup) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Group" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Group" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "discoverable" - if this.TootDiscoverable != nil { - if i, err := this.TootDiscoverable.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootDiscoverable.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "featured" - if this.TootFeatured != nil { - if i, err := this.TootFeatured.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootFeatured.Name()] = i - } - } - // Maybe serialize property "followers" - if this.ActivityStreamsFollowers != nil { - if i, err := this.ActivityStreamsFollowers.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsFollowers.Name()] = i - } - } - // Maybe serialize property "following" - if this.ActivityStreamsFollowing != nil { - if i, err := this.ActivityStreamsFollowing.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsFollowing.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "inbox" - if this.ActivityStreamsInbox != nil { - if i, err := this.ActivityStreamsInbox.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInbox.Name()] = i - } - } - // Maybe serialize property "liked" - if this.ActivityStreamsLiked != nil { - if i, err := this.ActivityStreamsLiked.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLiked.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "manuallyApprovesFollowers" - if this.ActivityStreamsManuallyApprovesFollowers != nil { - if i, err := this.ActivityStreamsManuallyApprovesFollowers.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsManuallyApprovesFollowers.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "outbox" - if this.ActivityStreamsOutbox != nil { - if i, err := this.ActivityStreamsOutbox.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOutbox.Name()] = i - } - } - // Maybe serialize property "preferredUsername" - if this.ActivityStreamsPreferredUsername != nil { - if i, err := this.ActivityStreamsPreferredUsername.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreferredUsername.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "publicKey" - if this.W3IDSecurityV1PublicKey != nil { - if i, err := this.W3IDSecurityV1PublicKey.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.W3IDSecurityV1PublicKey.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "streams" - if this.ActivityStreamsStreams != nil { - if i, err := this.ActivityStreamsStreams.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStreams.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsGroup) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsGroup) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsGroup) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsGroup) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsGroup) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsGroup) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsGroup) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsGroup) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsGroup) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsGroup) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsGroup) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsFollowers sets the "followers" property. -func (this *ActivityStreamsGroup) SetActivityStreamsFollowers(i vocab.ActivityStreamsFollowersProperty) { - this.ActivityStreamsFollowers = i -} - -// SetActivityStreamsFollowing sets the "following" property. -func (this *ActivityStreamsGroup) SetActivityStreamsFollowing(i vocab.ActivityStreamsFollowingProperty) { - this.ActivityStreamsFollowing = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsGroup) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsGroup) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsGroup) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsGroup) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInbox sets the "inbox" property. -func (this *ActivityStreamsGroup) SetActivityStreamsInbox(i vocab.ActivityStreamsInboxProperty) { - this.ActivityStreamsInbox = i -} - -// SetActivityStreamsLiked sets the "liked" property. -func (this *ActivityStreamsGroup) SetActivityStreamsLiked(i vocab.ActivityStreamsLikedProperty) { - this.ActivityStreamsLiked = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsGroup) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsGroup) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsManuallyApprovesFollowers sets the -// "manuallyApprovesFollowers" property. -func (this *ActivityStreamsGroup) SetActivityStreamsManuallyApprovesFollowers(i vocab.ActivityStreamsManuallyApprovesFollowersProperty) { - this.ActivityStreamsManuallyApprovesFollowers = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsGroup) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsGroup) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsGroup) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOutbox sets the "outbox" property. -func (this *ActivityStreamsGroup) SetActivityStreamsOutbox(i vocab.ActivityStreamsOutboxProperty) { - this.ActivityStreamsOutbox = i -} - -// SetActivityStreamsPreferredUsername sets the "preferredUsername" property. -func (this *ActivityStreamsGroup) SetActivityStreamsPreferredUsername(i vocab.ActivityStreamsPreferredUsernameProperty) { - this.ActivityStreamsPreferredUsername = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsGroup) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsGroup) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsGroup) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsGroup) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsGroup) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsGroup) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsStreams sets the "streams" property. -func (this *ActivityStreamsGroup) SetActivityStreamsStreams(i vocab.ActivityStreamsStreamsProperty) { - this.ActivityStreamsStreams = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsGroup) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsGroup) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsGroup) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsGroup) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsGroup) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsGroup) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsGroup) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsGroup) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsGroup) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsGroup) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// SetTootDiscoverable sets the "discoverable" property. -func (this *ActivityStreamsGroup) SetTootDiscoverable(i vocab.TootDiscoverableProperty) { - this.TootDiscoverable = i -} - -// SetTootFeatured sets the "featured" property. -func (this *ActivityStreamsGroup) SetTootFeatured(i vocab.TootFeaturedProperty) { - this.TootFeatured = i -} - -// SetW3IDSecurityV1PublicKey sets the "publicKey" property. -func (this *ActivityStreamsGroup) SetW3IDSecurityV1PublicKey(i vocab.W3IDSecurityV1PublicKeyProperty) { - this.W3IDSecurityV1PublicKey = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsGroup) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsGroup) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_ignore/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_ignore/gen_doc.go deleted file mode 100644 index 0c21393cc..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_ignore/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeignore contains the implementation for the Ignore type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeignore diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go deleted file mode 100644 index 7b6ab2101..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_ignore/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeignore - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go deleted file mode 100644 index 85f24e621..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_ignore/gen_type_activitystreams_ignore.go +++ /dev/null @@ -1,1950 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeignore - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor is ignoring the object. The target and origin -// typically have no defined meaning. -// -// Example 18 (https://www.w3.org/TR/activitystreams-vocabulary/#ex16-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/notes/1", -// "summary": "Sally ignored a note", -// "type": "Ignore" -// } -type ActivityStreamsIgnore struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsIgnoreExtends returns true if the Ignore type extends from the -// other type. -func ActivityStreamsIgnoreExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeIgnore creates a Ignore from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeIgnore(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsIgnore, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsIgnore{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Ignore" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Ignore", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Ignore" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Ignore") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IgnoreIsDisjointWith returns true if the other provided type is disjoint with -// the Ignore type. -func IgnoreIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// IgnoreIsExtendedBy returns true if the other provided type extends from the -// Ignore type. Note that it returns false if the types are the same; see the -// "IsOrExtendsIgnore" variant instead. -func IgnoreIsExtendedBy(other vocab.Type) bool { - extensions := []string{"Block"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsIgnore returns true if the other provided type is the Ignore type or -// extends from the Ignore type. -func IsOrExtendsIgnore(other vocab.Type) bool { - if other.GetTypeName() == "Ignore" { - return true - } - return IgnoreIsExtendedBy(other) -} - -// NewActivityStreamsIgnore creates a new Ignore type -func NewActivityStreamsIgnore() *ActivityStreamsIgnore { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Ignore") - return &ActivityStreamsIgnore{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIgnore) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsIgnore) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsIgnore) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsIgnore) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsIgnore) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsIgnore) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsIgnore) GetTypeName() string { - return "Ignore" -} - -// GetUnknownProperties returns the unknown properties for the Ignore type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsIgnore) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Ignore type extends from the other type. -func (this ActivityStreamsIgnore) IsExtending(other vocab.Type) bool { - return ActivityStreamsIgnoreExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsIgnore) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Ignore is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsIgnore) LessThan(o vocab.ActivityStreamsIgnore) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsIgnore) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Ignore" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Ignore" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsIgnore) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsIgnore) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsIgnore) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsIgnore) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsIgnore) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsIgnore) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsIgnore) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsIgnore) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_image/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_image/gen_doc.go deleted file mode 100644 index 7225f297b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_image/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeimage contains the implementation for the Image type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeimage diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_image/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_image/gen_pkg.go deleted file mode 100644 index 2525ee058..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_image/gen_pkg.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeimage - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBlurhashPropertyToot returns the deserialization method for - // the "TootBlurhashProperty" non-functional property in the - // vocabulary "Toot" - DeserializeBlurhashPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootBlurhashProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeHeightPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsHeightProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeHeightPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHeightProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) - // DeserializeWidthPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsWidthProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeWidthPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsWidthProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go deleted file mode 100644 index 47b11ea35..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go +++ /dev/null @@ -1,1866 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeimage - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// An image document of any kind -// -// Example 51 (https://www.w3.org/TR/activitystreams-vocabulary/#ex50-jsonld): -// { -// "name": "Cat Jumping on Wagon", -// "type": "Image", -// "url": [ -// { -// "mediaType": "image/jpeg", -// "type": "Link", -// "url": "http://example.org/image.jpeg" -// }, -// { -// "mediaType": "image/png", -// "type": "Link", -// "url": "http://example.org/image.png" -// } -// ] -// } -type ActivityStreamsImage struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - TootBlurhash vocab.TootBlurhashProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsHeight vocab.ActivityStreamsHeightProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - ActivityStreamsWidth vocab.ActivityStreamsWidthProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsImageExtends returns true if the Image type extends from the -// other type. -func ActivityStreamsImageExtends(other vocab.Type) bool { - extensions := []string{"Document", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeImage creates a Image from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeImage(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsImage, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsImage{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Image" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Image", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Image" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Image") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBlurhashPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootBlurhash = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeHeightPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsHeight = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - if p, err := mgr.DeserializeWidthPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsWidth = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "blurhash" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "height" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } else if k == "width" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// ImageIsDisjointWith returns true if the other provided type is disjoint with -// the Image type. -func ImageIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// ImageIsExtendedBy returns true if the other provided type extends from the -// Image type. Note that it returns false if the types are the same; see the -// "IsOrExtendsImage" variant instead. -func ImageIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// IsOrExtendsImage returns true if the other provided type is the Image type or -// extends from the Image type. -func IsOrExtendsImage(other vocab.Type) bool { - if other.GetTypeName() == "Image" { - return true - } - return ImageIsExtendedBy(other) -} - -// NewActivityStreamsImage creates a new Image type -func NewActivityStreamsImage() *ActivityStreamsImage { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Image") - return &ActivityStreamsImage{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsImage) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsImage) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsImage) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsImage) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsImage) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsImage) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsImage) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsHeight returns the "height" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsHeight() vocab.ActivityStreamsHeightProperty { - return this.ActivityStreamsHeight -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsImage) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsImage) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsImage) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsImage) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsImage) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsImage) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetActivityStreamsWidth returns the "width" property if it exists, and nil -// otherwise. -func (this ActivityStreamsImage) GetActivityStreamsWidth() vocab.ActivityStreamsWidthProperty { - return this.ActivityStreamsWidth -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsImage) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsImage) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsImage) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsImage) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsImage) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTootBlurhash returns the "blurhash" property if it exists, and nil otherwise. -func (this ActivityStreamsImage) GetTootBlurhash() vocab.TootBlurhashProperty { - return this.TootBlurhash -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsImage) GetTypeName() string { - return "Image" -} - -// GetUnknownProperties returns the unknown properties for the Image type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsImage) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Image type extends from the other type. -func (this ActivityStreamsImage) IsExtending(other vocab.Type) bool { - return ActivityStreamsImageExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsImage) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.TootBlurhash, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsHeight, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - m = this.helperJSONLDContext(this.ActivityStreamsWidth, m) - - return m -} - -// LessThan computes if this Image is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsImage) LessThan(o vocab.ActivityStreamsImage) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "blurhash" - if lhs, rhs := this.TootBlurhash, o.GetTootBlurhash(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "height" - if lhs, rhs := this.ActivityStreamsHeight, o.GetActivityStreamsHeight(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "width" - if lhs, rhs := this.ActivityStreamsWidth, o.GetActivityStreamsWidth(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsImage) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Image" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Image" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "blurhash" - if this.TootBlurhash != nil { - if i, err := this.TootBlurhash.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootBlurhash.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "height" - if this.ActivityStreamsHeight != nil { - if i, err := this.ActivityStreamsHeight.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsHeight.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // Maybe serialize property "width" - if this.ActivityStreamsWidth != nil { - if i, err := this.ActivityStreamsWidth.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsWidth.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsImage) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsImage) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsImage) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsImage) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsImage) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsImage) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsImage) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsImage) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsImage) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsImage) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsImage) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsImage) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsHeight sets the "height" property. -func (this *ActivityStreamsImage) SetActivityStreamsHeight(i vocab.ActivityStreamsHeightProperty) { - this.ActivityStreamsHeight = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsImage) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsImage) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsImage) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsImage) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsImage) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsImage) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsImage) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsImage) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsImage) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsImage) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsImage) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsImage) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsImage) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsImage) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsImage) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsImage) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsImage) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsImage) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsImage) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetActivityStreamsWidth sets the "width" property. -func (this *ActivityStreamsImage) SetActivityStreamsWidth(i vocab.ActivityStreamsWidthProperty) { - this.ActivityStreamsWidth = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsImage) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsImage) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsImage) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsImage) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsImage) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// SetTootBlurhash sets the "blurhash" property. -func (this *ActivityStreamsImage) SetTootBlurhash(i vocab.TootBlurhashProperty) { - this.TootBlurhash = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsImage) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsImage) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_doc.go deleted file mode 100644 index d38017ec2..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeintransitiveactivity contains the implementation for the -// IntransitiveActivity type. All applications are strongly encouraged to use -// the interface instead of this concrete definition. The interfaces allow -// applications to consume only the types and properties needed and be -// independent of the go-fed implementation if another alternative -// implementation is created. This package is code-generated and subject to -// the same license as the go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeintransitiveactivity diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go deleted file mode 100644 index a7614d529..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_pkg.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeintransitiveactivity - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go deleted file mode 100644 index 1aec4ecb6..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity/gen_type_activitystreams_intransitiveactivity.go +++ /dev/null @@ -1,1915 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeintransitiveactivity - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Instances of IntransitiveActivity are a subtype of Activity representing -// intransitive actions. The object property is therefore inappropriate for -// these activities. -// -// Example 4 (https://www.w3.org/TR/activitystreams-vocabulary/#ex182-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "summary": "Sally went to work", -// "target": { -// "name": "Work", -// "type": "Place" -// }, -// "type": "Travel" -// } -type ActivityStreamsIntransitiveActivity struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsIntransitiveActivityExtends returns true if the -// IntransitiveActivity type extends from the other type. -func ActivityStreamsIntransitiveActivityExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeIntransitiveActivity creates a IntransitiveActivity from a map -// representation that has been unmarshalled from a text or binary format. -func DeserializeIntransitiveActivity(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsIntransitiveActivity, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsIntransitiveActivity{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "IntransitiveActivity" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "IntransitiveActivity", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "IntransitiveActivity" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "IntransitiveActivity") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IntransitiveActivityIsDisjointWith returns true if the other provided type is -// disjoint with the IntransitiveActivity type. -func IntransitiveActivityIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// IntransitiveActivityIsExtendedBy returns true if the other provided type -// extends from the IntransitiveActivity type. Note that it returns false if -// the types are the same; see the "IsOrExtendsIntransitiveActivity" variant -// instead. -func IntransitiveActivityIsExtendedBy(other vocab.Type) bool { - extensions := []string{"Arrive", "Question", "Travel"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsIntransitiveActivity returns true if the other provided type is the -// IntransitiveActivity type or extends from the IntransitiveActivity type. -func IsOrExtendsIntransitiveActivity(other vocab.Type) bool { - if other.GetTypeName() == "IntransitiveActivity" { - return true - } - return IntransitiveActivityIsExtendedBy(other) -} - -// NewActivityStreamsIntransitiveActivity creates a new IntransitiveActivity type -func NewActivityStreamsIntransitiveActivity() *ActivityStreamsIntransitiveActivity { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("IntransitiveActivity") - return &ActivityStreamsIntransitiveActivity{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsIntransitiveActivity) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsIntransitiveActivity) GetTypeName() string { - return "IntransitiveActivity" -} - -// GetUnknownProperties returns the unknown properties for the -// IntransitiveActivity type. Note that this should not be used by app -// developers. It is only used to help determine which implementation is -// LessThan the other. Developers who are creating a different implementation -// of this type's interface can use this method in their LessThan -// implementation, but routine ActivityPub applications should not use this to -// bypass the code generation tool. -func (this ActivityStreamsIntransitiveActivity) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the IntransitiveActivity type extends from the -// other type. -func (this ActivityStreamsIntransitiveActivity) IsExtending(other vocab.Type) bool { - return ActivityStreamsIntransitiveActivityExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsIntransitiveActivity) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this IntransitiveActivity is lesser, with an arbitrary but -// stable determination. -func (this ActivityStreamsIntransitiveActivity) LessThan(o vocab.ActivityStreamsIntransitiveActivity) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsIntransitiveActivity) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "IntransitiveActivity" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "IntransitiveActivity" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsIntransitiveActivity) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsIntransitiveActivity) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsIntransitiveActivity) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsIntransitiveActivity) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsIntransitiveActivity) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsIntransitiveActivity) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsIntransitiveActivity) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_invite/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_invite/gen_doc.go deleted file mode 100644 index 2bc79acc6..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_invite/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeinvite contains the implementation for the Invite type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeinvite diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_invite/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_invite/gen_pkg.go deleted file mode 100644 index e87d031e5..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_invite/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeinvite - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go deleted file mode 100644 index d88924759..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_invite/gen_type_activitystreams_invite.go +++ /dev/null @@ -1,1958 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeinvite - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// A specialization of Offer in which the actor is extending an invitation for the -// object to the target. -// -// Example 24 (https://www.w3.org/TR/activitystreams-vocabulary/#ex24-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "A Party", -// "type": "Event" -// }, -// "summary": "Sally invited John and Lisa to a party", -// "target": [ -// { -// "name": "John", -// "type": "Person" -// }, -// { -// "name": "Lisa", -// "type": "Person" -// } -// ], -// "type": "Invite" -// } -type ActivityStreamsInvite struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsInviteExtends returns true if the Invite type extends from the -// other type. -func ActivityStreamsInviteExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object", "Offer"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeInvite creates a Invite from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeInvite(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsInvite, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsInvite{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Invite" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Invite", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Invite" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Invite") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// InviteIsDisjointWith returns true if the other provided type is disjoint with -// the Invite type. -func InviteIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// InviteIsExtendedBy returns true if the other provided type extends from the -// Invite type. Note that it returns false if the types are the same; see the -// "IsOrExtendsInvite" variant instead. -func InviteIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// IsOrExtendsInvite returns true if the other provided type is the Invite type or -// extends from the Invite type. -func IsOrExtendsInvite(other vocab.Type) bool { - if other.GetTypeName() == "Invite" { - return true - } - return InviteIsExtendedBy(other) -} - -// NewActivityStreamsInvite creates a new Invite type -func NewActivityStreamsInvite() *ActivityStreamsInvite { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Invite") - return &ActivityStreamsInvite{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsInvite) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsInvite) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsInvite) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsInvite) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsInvite) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsInvite) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsInvite) GetTypeName() string { - return "Invite" -} - -// GetUnknownProperties returns the unknown properties for the Invite type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsInvite) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Invite type extends from the other type. -func (this ActivityStreamsInvite) IsExtending(other vocab.Type) bool { - return ActivityStreamsInviteExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsInvite) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Invite is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsInvite) LessThan(o vocab.ActivityStreamsInvite) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsInvite) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Invite" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Invite" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsInvite) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsInvite) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsInvite) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsInvite) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsInvite) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsInvite) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsInvite) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsInvite) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsInvite) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsInvite) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsInvite) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsInvite) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsInvite) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsInvite) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsInvite) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsInvite) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsInvite) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsInvite) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsInvite) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsInvite) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsInvite) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsInvite) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsInvite) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsInvite) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsInvite) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsInvite) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsInvite) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsInvite) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsInvite) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsInvite) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsInvite) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsInvite) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsInvite) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsInvite) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsInvite) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsInvite) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsInvite) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsInvite) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsInvite) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsInvite) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsInvite) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsInvite) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsInvite) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_join/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_join/gen_doc.go deleted file mode 100644 index fce28e4c3..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_join/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typejoin contains the implementation for the Join type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typejoin diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_join/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_join/gen_pkg.go deleted file mode 100644 index 20b91a598..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_join/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typejoin - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go deleted file mode 100644 index 3699bee8a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_join/gen_type_activitystreams_join.go +++ /dev/null @@ -1,1948 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typejoin - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor has joined the object. The target and origin typically -// have no defined meaning. -// -// Example 19 (https://www.w3.org/TR/activitystreams-vocabulary/#ex17-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "A Simple Group", -// "type": "Group" -// }, -// "summary": "Sally joined a group", -// "type": "Join" -// } -type ActivityStreamsJoin struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsJoinExtends returns true if the Join type extends from the other -// type. -func ActivityStreamsJoinExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeJoin creates a Join from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeJoin(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsJoin, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsJoin{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Join" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Join", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Join" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Join") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsJoin returns true if the other provided type is the Join type or -// extends from the Join type. -func IsOrExtendsJoin(other vocab.Type) bool { - if other.GetTypeName() == "Join" { - return true - } - return JoinIsExtendedBy(other) -} - -// JoinIsDisjointWith returns true if the other provided type is disjoint with the -// Join type. -func JoinIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// JoinIsExtendedBy returns true if the other provided type extends from the Join -// type. Note that it returns false if the types are the same; see the -// "IsOrExtendsJoin" variant instead. -func JoinIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// NewActivityStreamsJoin creates a new Join type -func NewActivityStreamsJoin() *ActivityStreamsJoin { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Join") - return &ActivityStreamsJoin{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsJoin) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsJoin) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsJoin) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsJoin) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsJoin) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsJoin) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsJoin) GetTypeName() string { - return "Join" -} - -// GetUnknownProperties returns the unknown properties for the Join type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsJoin) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Join type extends from the other type. -func (this ActivityStreamsJoin) IsExtending(other vocab.Type) bool { - return ActivityStreamsJoinExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsJoin) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Join is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsJoin) LessThan(o vocab.ActivityStreamsJoin) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsJoin) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Join" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Join" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsJoin) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsJoin) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsJoin) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsJoin) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsJoin) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsJoin) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsJoin) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsJoin) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsJoin) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsJoin) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsJoin) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsJoin) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsJoin) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsJoin) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsJoin) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsJoin) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsJoin) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsJoin) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsJoin) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsJoin) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsJoin) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsJoin) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsJoin) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsJoin) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsJoin) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsJoin) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsJoin) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsJoin) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsJoin) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsJoin) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsJoin) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsJoin) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsJoin) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsJoin) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsJoin) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsJoin) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsJoin) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsJoin) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsJoin) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsJoin) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsJoin) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsJoin) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsJoin) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_leave/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_leave/gen_doc.go deleted file mode 100644 index 9d5633e39..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_leave/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeleave contains the implementation for the Leave type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeleave diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_leave/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_leave/gen_pkg.go deleted file mode 100644 index 1d646e299..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_leave/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeleave - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go deleted file mode 100644 index bbcbb93e0..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_leave/gen_type_activitystreams_leave.go +++ /dev/null @@ -1,1962 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeleave - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor has left the object. The target and origin typically -// have no meaning. -// -// Example 20 (https://www.w3.org/TR/activitystreams-vocabulary/#ex18-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "Work", -// "type": "Place" -// }, -// "summary": "Sally left work", -// "type": "Leave" -// } -// -// Example 21 (https://www.w3.org/TR/activitystreams-vocabulary/#ex19-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "A Simple Group", -// "type": "Group" -// }, -// "summary": "Sally left a group", -// "type": "Leave" -// } -type ActivityStreamsLeave struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsLeaveExtends returns true if the Leave type extends from the -// other type. -func ActivityStreamsLeaveExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeLeave creates a Leave from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeLeave(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsLeave, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsLeave{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Leave" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Leave", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Leave" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Leave") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsLeave returns true if the other provided type is the Leave type or -// extends from the Leave type. -func IsOrExtendsLeave(other vocab.Type) bool { - if other.GetTypeName() == "Leave" { - return true - } - return LeaveIsExtendedBy(other) -} - -// LeaveIsDisjointWith returns true if the other provided type is disjoint with -// the Leave type. -func LeaveIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// LeaveIsExtendedBy returns true if the other provided type extends from the -// Leave type. Note that it returns false if the types are the same; see the -// "IsOrExtendsLeave" variant instead. -func LeaveIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// NewActivityStreamsLeave creates a new Leave type -func NewActivityStreamsLeave() *ActivityStreamsLeave { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Leave") - return &ActivityStreamsLeave{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLeave) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsLeave) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsLeave) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsLeave) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsLeave) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsLeave) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsLeave) GetTypeName() string { - return "Leave" -} - -// GetUnknownProperties returns the unknown properties for the Leave type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsLeave) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Leave type extends from the other type. -func (this ActivityStreamsLeave) IsExtending(other vocab.Type) bool { - return ActivityStreamsLeaveExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsLeave) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Leave is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsLeave) LessThan(o vocab.ActivityStreamsLeave) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsLeave) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Leave" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Leave" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsLeave) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsLeave) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsLeave) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsLeave) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsLeave) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsLeave) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsLeave) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsLeave) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsLeave) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsLeave) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsLeave) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsLeave) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsLeave) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsLeave) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsLeave) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsLeave) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsLeave) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsLeave) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsLeave) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsLeave) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsLeave) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsLeave) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsLeave) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsLeave) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsLeave) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsLeave) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsLeave) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsLeave) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsLeave) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsLeave) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsLeave) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsLeave) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsLeave) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsLeave) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsLeave) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsLeave) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsLeave) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsLeave) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsLeave) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsLeave) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsLeave) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsLeave) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsLeave) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_like/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_like/gen_doc.go deleted file mode 100644 index 6e51d66d8..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_like/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typelike contains the implementation for the Like type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typelike diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_like/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_like/gen_pkg.go deleted file mode 100644 index 2a3a9902a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_like/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelike - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go deleted file mode 100644 index c78004d32..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go +++ /dev/null @@ -1,1945 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelike - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor likes, recommends or endorses the object. The target -// and origin typically have no defined meaning. -// -// Example 22 (https://www.w3.org/TR/activitystreams-vocabulary/#ex20-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/notes/1", -// "summary": "Sally liked a note", -// "type": "Like" -// } -type ActivityStreamsLike struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsLikeExtends returns true if the Like type extends from the other -// type. -func ActivityStreamsLikeExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeLike creates a Like from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeLike(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsLike, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsLike{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Like" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Like", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Like" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Like") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsLike returns true if the other provided type is the Like type or -// extends from the Like type. -func IsOrExtendsLike(other vocab.Type) bool { - if other.GetTypeName() == "Like" { - return true - } - return LikeIsExtendedBy(other) -} - -// LikeIsDisjointWith returns true if the other provided type is disjoint with the -// Like type. -func LikeIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// LikeIsExtendedBy returns true if the other provided type extends from the Like -// type. Note that it returns false if the types are the same; see the -// "IsOrExtendsLike" variant instead. -func LikeIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// NewActivityStreamsLike creates a new Like type -func NewActivityStreamsLike() *ActivityStreamsLike { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Like") - return &ActivityStreamsLike{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLike) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsLike) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsLike) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLike) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsLike) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLike) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLike) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLike) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsLike) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLike) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLike) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLike) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLike) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsLike) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLike) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsLike) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsLike) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsLike) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsLike) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsLike) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsLike) GetTypeName() string { - return "Like" -} - -// GetUnknownProperties returns the unknown properties for the Like type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsLike) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Like type extends from the other type. -func (this ActivityStreamsLike) IsExtending(other vocab.Type) bool { - return ActivityStreamsLikeExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsLike) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Like is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsLike) LessThan(o vocab.ActivityStreamsLike) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsLike) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Like" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Like" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsLike) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsLike) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsLike) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsLike) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsLike) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsLike) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsLike) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsLike) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsLike) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsLike) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsLike) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsLike) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsLike) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsLike) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsLike) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsLike) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsLike) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsLike) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsLike) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsLike) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsLike) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsLike) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsLike) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsLike) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsLike) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsLike) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsLike) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsLike) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsLike) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsLike) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsLike) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsLike) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsLike) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsLike) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsLike) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsLike) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsLike) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsLike) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsLike) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsLike) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsLike) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsLike) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsLike) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_link/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_link/gen_doc.go deleted file mode 100644 index 23bb10622..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_link/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typelink contains the implementation for the Link type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typelink diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_link/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_link/gen_pkg.go deleted file mode 100644 index 61d2ba834..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_link/gen_pkg.go +++ /dev/null @@ -1,91 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelink - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeHeightPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsHeightProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeHeightPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHeightProperty, error) - // DeserializeHrefPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsHrefProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeHrefPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHrefProperty, error) - // DeserializeHreflangPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsHreflangProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeHreflangPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHreflangProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializeRelPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRelProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeRelPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeWidthPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsWidthProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeWidthPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsWidthProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go deleted file mode 100644 index ffb6912b2..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go +++ /dev/null @@ -1,731 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelink - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// A Link is an indirect, qualified reference to a resource identified by a URL. -// The fundamental model for links is established by [RFC5988]. Many of the -// properties defined by the Activity Vocabulary allow values that are either -// instances of Object or Link. When a Link is used, it establishes a -// qualified relation connecting the subject (the containing object) to the -// resource identified by the href. Properties of the Link are properties of -// the reference as opposed to properties of the resource. -// -// Example 2 (https://www.w3.org/TR/activitystreams-vocabulary/#ex2-jsonld): -// { -// "hreflang": "en", -// "mediaType": "text/html", -// "name": "An example link", -// "type": "Link", -// "url": "http://example.org/abc" -// } -type ActivityStreamsLink struct { - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsHeight vocab.ActivityStreamsHeightProperty - ActivityStreamsHref vocab.ActivityStreamsHrefProperty - ActivityStreamsHreflang vocab.ActivityStreamsHreflangProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsRel vocab.ActivityStreamsRelProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsWidth vocab.ActivityStreamsWidthProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsLinkExtends returns true if the Link type extends from the other -// type. -func ActivityStreamsLinkExtends(other vocab.Type) bool { - // Shortcut implementation: this does not extend anything. - return false -} - -// DeserializeLink creates a Link from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeLink(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsLink, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsLink{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Link" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Link", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Link" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Link") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeHeightPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsHeight = p - } - if p, err := mgr.DeserializeHrefPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsHref = p - } - if p, err := mgr.DeserializeHreflangPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsHreflang = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializeRelPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsRel = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeWidthPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsWidth = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "attributedTo" { - continue - } else if k == "height" { - continue - } else if k == "href" { - continue - } else if k == "hreflang" { - continue - } else if k == "id" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "preview" { - continue - } else if k == "rel" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "type" { - continue - } else if k == "width" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsLink returns true if the other provided type is the Link type or -// extends from the Link type. -func IsOrExtendsLink(other vocab.Type) bool { - if other.GetTypeName() == "Link" { - return true - } - return LinkIsExtendedBy(other) -} - -// LinkIsDisjointWith returns true if the other provided type is disjoint with the -// Link type. -func LinkIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Branch", "Collection", "CollectionPage", "Commit", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Push", "Question", "Read", "Reject", "Relationship", "Remove", "Repository", "Service", "TentativeAccept", "TentativeReject", "Ticket", "TicketDependency", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// LinkIsExtendedBy returns true if the other provided type extends from the Link -// type. Note that it returns false if the types are the same; see the -// "IsOrExtendsLink" variant instead. -func LinkIsExtendedBy(other vocab.Type) bool { - extensions := []string{"Mention"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// NewActivityStreamsLink creates a new Link type -func NewActivityStreamsLink() *ActivityStreamsLink { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Link") - return &ActivityStreamsLink{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsLink) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsHeight returns the "height" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLink) GetActivityStreamsHeight() vocab.ActivityStreamsHeightProperty { - return this.ActivityStreamsHeight -} - -// GetActivityStreamsHref returns the "href" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLink) GetActivityStreamsHref() vocab.ActivityStreamsHrefProperty { - return this.ActivityStreamsHref -} - -// GetActivityStreamsHreflang returns the "hreflang" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLink) GetActivityStreamsHreflang() vocab.ActivityStreamsHreflangProperty { - return this.ActivityStreamsHreflang -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsLink) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLink) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLink) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsRel returns the "rel" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLink) GetActivityStreamsRel() vocab.ActivityStreamsRelProperty { - return this.ActivityStreamsRel -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLink) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsWidth returns the "width" property if it exists, and nil -// otherwise. -func (this ActivityStreamsLink) GetActivityStreamsWidth() vocab.ActivityStreamsWidthProperty { - return this.ActivityStreamsWidth -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsLink) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsLink) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsLink) GetTypeName() string { - return "Link" -} - -// GetUnknownProperties returns the unknown properties for the Link type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsLink) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Link type extends from the other type. -func (this ActivityStreamsLink) IsExtending(other vocab.Type) bool { - return ActivityStreamsLinkExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsLink) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsHeight, m) - m = this.helperJSONLDContext(this.ActivityStreamsHref, m) - m = this.helperJSONLDContext(this.ActivityStreamsHreflang, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsRel, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsWidth, m) - - return m -} - -// LessThan computes if this Link is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsLink) LessThan(o vocab.ActivityStreamsLink) bool { - // Begin: Compare known properties - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "height" - if lhs, rhs := this.ActivityStreamsHeight, o.GetActivityStreamsHeight(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "href" - if lhs, rhs := this.ActivityStreamsHref, o.GetActivityStreamsHref(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "hreflang" - if lhs, rhs := this.ActivityStreamsHreflang, o.GetActivityStreamsHreflang(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "rel" - if lhs, rhs := this.ActivityStreamsRel, o.GetActivityStreamsRel(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "width" - if lhs, rhs := this.ActivityStreamsWidth, o.GetActivityStreamsWidth(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsLink) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Link" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Link" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "height" - if this.ActivityStreamsHeight != nil { - if i, err := this.ActivityStreamsHeight.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsHeight.Name()] = i - } - } - // Maybe serialize property "href" - if this.ActivityStreamsHref != nil { - if i, err := this.ActivityStreamsHref.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsHref.Name()] = i - } - } - // Maybe serialize property "hreflang" - if this.ActivityStreamsHreflang != nil { - if i, err := this.ActivityStreamsHreflang.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsHreflang.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "rel" - if this.ActivityStreamsRel != nil { - if i, err := this.ActivityStreamsRel.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsRel.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "width" - if this.ActivityStreamsWidth != nil { - if i, err := this.ActivityStreamsWidth.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsWidth.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsLink) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsHeight sets the "height" property. -func (this *ActivityStreamsLink) SetActivityStreamsHeight(i vocab.ActivityStreamsHeightProperty) { - this.ActivityStreamsHeight = i -} - -// SetActivityStreamsHref sets the "href" property. -func (this *ActivityStreamsLink) SetActivityStreamsHref(i vocab.ActivityStreamsHrefProperty) { - this.ActivityStreamsHref = i -} - -// SetActivityStreamsHreflang sets the "hreflang" property. -func (this *ActivityStreamsLink) SetActivityStreamsHreflang(i vocab.ActivityStreamsHreflangProperty) { - this.ActivityStreamsHreflang = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsLink) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsLink) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsLink) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsRel sets the "rel" property. -func (this *ActivityStreamsLink) SetActivityStreamsRel(i vocab.ActivityStreamsRelProperty) { - this.ActivityStreamsRel = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsLink) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsWidth sets the "width" property. -func (this *ActivityStreamsLink) SetActivityStreamsWidth(i vocab.ActivityStreamsWidthProperty) { - this.ActivityStreamsWidth = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsLink) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsLink) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsLink) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsLink) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_listen/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_listen/gen_doc.go deleted file mode 100644 index 480e1e384..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_listen/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typelisten contains the implementation for the Listen type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typelisten diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_listen/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_listen/gen_pkg.go deleted file mode 100644 index 567b1cc81..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_listen/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelisten - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go deleted file mode 100644 index ed69b2162..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_listen/gen_type_activitystreams_listen.go +++ /dev/null @@ -1,1944 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typelisten - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor has listened to the object. -// -// Example 32 (https://www.w3.org/TR/activitystreams-vocabulary/#ex163-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/music.mp3", -// "summary": "Sally listened to a piece of music", -// "type": "Listen" -// } -type ActivityStreamsListen struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsListenExtends returns true if the Listen type extends from the -// other type. -func ActivityStreamsListenExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeListen creates a Listen from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeListen(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsListen, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsListen{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Listen" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Listen", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Listen" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Listen") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsListen returns true if the other provided type is the Listen type or -// extends from the Listen type. -func IsOrExtendsListen(other vocab.Type) bool { - if other.GetTypeName() == "Listen" { - return true - } - return ListenIsExtendedBy(other) -} - -// ListenIsDisjointWith returns true if the other provided type is disjoint with -// the Listen type. -func ListenIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// ListenIsExtendedBy returns true if the other provided type extends from the -// Listen type. Note that it returns false if the types are the same; see the -// "IsOrExtendsListen" variant instead. -func ListenIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// NewActivityStreamsListen creates a new Listen type -func NewActivityStreamsListen() *ActivityStreamsListen { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Listen") - return &ActivityStreamsListen{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsListen) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsListen) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsListen) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsListen) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsListen) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsListen) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsListen) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsListen) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsListen) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsListen) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsListen) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsListen) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsListen) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsListen) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsListen) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsListen) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsListen) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsListen) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsListen) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsListen) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsListen) GetTypeName() string { - return "Listen" -} - -// GetUnknownProperties returns the unknown properties for the Listen type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsListen) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Listen type extends from the other type. -func (this ActivityStreamsListen) IsExtending(other vocab.Type) bool { - return ActivityStreamsListenExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsListen) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Listen is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsListen) LessThan(o vocab.ActivityStreamsListen) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsListen) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Listen" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Listen" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsListen) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsListen) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsListen) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsListen) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsListen) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsListen) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsListen) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsListen) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsListen) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsListen) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsListen) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsListen) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsListen) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsListen) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsListen) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsListen) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsListen) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsListen) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsListen) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsListen) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsListen) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsListen) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsListen) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsListen) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsListen) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsListen) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsListen) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsListen) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsListen) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsListen) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsListen) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsListen) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsListen) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsListen) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsListen) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsListen) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsListen) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsListen) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsListen) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsListen) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsListen) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsListen) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsListen) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_mention/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_mention/gen_doc.go deleted file mode 100644 index 6e0f5fa5b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_mention/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typemention contains the implementation for the Mention type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typemention diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_mention/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_mention/gen_pkg.go deleted file mode 100644 index 037dbe0b1..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_mention/gen_pkg.go +++ /dev/null @@ -1,91 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typemention - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeHeightPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsHeightProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeHeightPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHeightProperty, error) - // DeserializeHrefPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsHrefProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeHrefPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHrefProperty, error) - // DeserializeHreflangPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsHreflangProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeHreflangPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHreflangProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializeRelPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRelProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeRelPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeWidthPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsWidthProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeWidthPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsWidthProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go deleted file mode 100644 index 80ff63bed..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go +++ /dev/null @@ -1,724 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typemention - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// A specialized Link that represents an @mention. -// -// Example 58 (https://www.w3.org/TR/activitystreams-vocabulary/#ex181-jsonld): -// { -// "name": "Joe", -// "summary": "Mention of Joe by Carrie in her note", -// "type": "Mention", -// "url": "http://example.org/joe" -// } -type ActivityStreamsMention struct { - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsHeight vocab.ActivityStreamsHeightProperty - ActivityStreamsHref vocab.ActivityStreamsHrefProperty - ActivityStreamsHreflang vocab.ActivityStreamsHreflangProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsRel vocab.ActivityStreamsRelProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsWidth vocab.ActivityStreamsWidthProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsMentionExtends returns true if the Mention type extends from the -// other type. -func ActivityStreamsMentionExtends(other vocab.Type) bool { - extensions := []string{"Link"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeMention creates a Mention from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeMention(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsMention, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsMention{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Mention" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Mention", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Mention" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Mention") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeHeightPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsHeight = p - } - if p, err := mgr.DeserializeHrefPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsHref = p - } - if p, err := mgr.DeserializeHreflangPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsHreflang = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializeRelPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsRel = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeWidthPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsWidth = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "attributedTo" { - continue - } else if k == "height" { - continue - } else if k == "href" { - continue - } else if k == "hreflang" { - continue - } else if k == "id" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "preview" { - continue - } else if k == "rel" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "type" { - continue - } else if k == "width" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsMention returns true if the other provided type is the Mention type -// or extends from the Mention type. -func IsOrExtendsMention(other vocab.Type) bool { - if other.GetTypeName() == "Mention" { - return true - } - return MentionIsExtendedBy(other) -} - -// MentionIsDisjointWith returns true if the other provided type is disjoint with -// the Mention type. -func MentionIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Branch", "Collection", "CollectionPage", "Commit", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Push", "Question", "Read", "Reject", "Relationship", "Remove", "Repository", "Service", "TentativeAccept", "TentativeReject", "Ticket", "TicketDependency", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// MentionIsExtendedBy returns true if the other provided type extends from the -// Mention type. Note that it returns false if the types are the same; see the -// "IsOrExtendsMention" variant instead. -func MentionIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// NewActivityStreamsMention creates a new Mention type -func NewActivityStreamsMention() *ActivityStreamsMention { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Mention") - return &ActivityStreamsMention{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsMention) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsHeight returns the "height" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMention) GetActivityStreamsHeight() vocab.ActivityStreamsHeightProperty { - return this.ActivityStreamsHeight -} - -// GetActivityStreamsHref returns the "href" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMention) GetActivityStreamsHref() vocab.ActivityStreamsHrefProperty { - return this.ActivityStreamsHref -} - -// GetActivityStreamsHreflang returns the "hreflang" property if it exists, and -// nil otherwise. -func (this ActivityStreamsMention) GetActivityStreamsHreflang() vocab.ActivityStreamsHreflangProperty { - return this.ActivityStreamsHreflang -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsMention) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMention) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMention) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsRel returns the "rel" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMention) GetActivityStreamsRel() vocab.ActivityStreamsRelProperty { - return this.ActivityStreamsRel -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMention) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsWidth returns the "width" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMention) GetActivityStreamsWidth() vocab.ActivityStreamsWidthProperty { - return this.ActivityStreamsWidth -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsMention) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsMention) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsMention) GetTypeName() string { - return "Mention" -} - -// GetUnknownProperties returns the unknown properties for the Mention type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsMention) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Mention type extends from the other type. -func (this ActivityStreamsMention) IsExtending(other vocab.Type) bool { - return ActivityStreamsMentionExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsMention) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsHeight, m) - m = this.helperJSONLDContext(this.ActivityStreamsHref, m) - m = this.helperJSONLDContext(this.ActivityStreamsHreflang, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsRel, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsWidth, m) - - return m -} - -// LessThan computes if this Mention is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsMention) LessThan(o vocab.ActivityStreamsMention) bool { - // Begin: Compare known properties - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "height" - if lhs, rhs := this.ActivityStreamsHeight, o.GetActivityStreamsHeight(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "href" - if lhs, rhs := this.ActivityStreamsHref, o.GetActivityStreamsHref(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "hreflang" - if lhs, rhs := this.ActivityStreamsHreflang, o.GetActivityStreamsHreflang(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "rel" - if lhs, rhs := this.ActivityStreamsRel, o.GetActivityStreamsRel(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "width" - if lhs, rhs := this.ActivityStreamsWidth, o.GetActivityStreamsWidth(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsMention) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Mention" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Mention" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "height" - if this.ActivityStreamsHeight != nil { - if i, err := this.ActivityStreamsHeight.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsHeight.Name()] = i - } - } - // Maybe serialize property "href" - if this.ActivityStreamsHref != nil { - if i, err := this.ActivityStreamsHref.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsHref.Name()] = i - } - } - // Maybe serialize property "hreflang" - if this.ActivityStreamsHreflang != nil { - if i, err := this.ActivityStreamsHreflang.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsHreflang.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "rel" - if this.ActivityStreamsRel != nil { - if i, err := this.ActivityStreamsRel.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsRel.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "width" - if this.ActivityStreamsWidth != nil { - if i, err := this.ActivityStreamsWidth.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsWidth.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsMention) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsHeight sets the "height" property. -func (this *ActivityStreamsMention) SetActivityStreamsHeight(i vocab.ActivityStreamsHeightProperty) { - this.ActivityStreamsHeight = i -} - -// SetActivityStreamsHref sets the "href" property. -func (this *ActivityStreamsMention) SetActivityStreamsHref(i vocab.ActivityStreamsHrefProperty) { - this.ActivityStreamsHref = i -} - -// SetActivityStreamsHreflang sets the "hreflang" property. -func (this *ActivityStreamsMention) SetActivityStreamsHreflang(i vocab.ActivityStreamsHreflangProperty) { - this.ActivityStreamsHreflang = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsMention) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsMention) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsMention) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsRel sets the "rel" property. -func (this *ActivityStreamsMention) SetActivityStreamsRel(i vocab.ActivityStreamsRelProperty) { - this.ActivityStreamsRel = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsMention) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsWidth sets the "width" property. -func (this *ActivityStreamsMention) SetActivityStreamsWidth(i vocab.ActivityStreamsWidthProperty) { - this.ActivityStreamsWidth = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsMention) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsMention) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsMention) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsMention) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_move/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_move/gen_doc.go deleted file mode 100644 index f5409ea00..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_move/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typemove contains the implementation for the Move type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typemove diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_move/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_move/gen_pkg.go deleted file mode 100644 index 6873913bc..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_move/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typemove - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go deleted file mode 100644 index 8072b87ae..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_move/gen_type_activitystreams_move.go +++ /dev/null @@ -1,1953 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typemove - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor has moved object from origin to target. If the origin -// or target are not specified, either can be determined by context. -// -// Example 34 (https://www.w3.org/TR/activitystreams-vocabulary/#ex168-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/posts/1", -// "origin": { -// "name": "List A", -// "type": "Collection" -// }, -// "summary": "Sally moved a post from List A to List B", -// "target": { -// "name": "List B", -// "type": "Collection" -// }, -// "type": "Move" -// } -type ActivityStreamsMove struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsMoveExtends returns true if the Move type extends from the other -// type. -func ActivityStreamsMoveExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeMove creates a Move from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeMove(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsMove, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsMove{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Move" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Move", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Move" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Move") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsMove returns true if the other provided type is the Move type or -// extends from the Move type. -func IsOrExtendsMove(other vocab.Type) bool { - if other.GetTypeName() == "Move" { - return true - } - return MoveIsExtendedBy(other) -} - -// MoveIsDisjointWith returns true if the other provided type is disjoint with the -// Move type. -func MoveIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// MoveIsExtendedBy returns true if the other provided type extends from the Move -// type. Note that it returns false if the types are the same; see the -// "IsOrExtendsMove" variant instead. -func MoveIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// NewActivityStreamsMove creates a new Move type -func NewActivityStreamsMove() *ActivityStreamsMove { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Move") - return &ActivityStreamsMove{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsMove) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsMove) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsMove) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsMove) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsMove) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsMove) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsMove) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsMove) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsMove) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsMove) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsMove) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsMove) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsMove) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsMove) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsMove) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsMove) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsMove) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsMove) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsMove) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsMove) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsMove) GetTypeName() string { - return "Move" -} - -// GetUnknownProperties returns the unknown properties for the Move type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsMove) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Move type extends from the other type. -func (this ActivityStreamsMove) IsExtending(other vocab.Type) bool { - return ActivityStreamsMoveExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsMove) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Move is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsMove) LessThan(o vocab.ActivityStreamsMove) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsMove) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Move" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Move" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsMove) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsMove) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsMove) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsMove) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsMove) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsMove) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsMove) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsMove) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsMove) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsMove) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsMove) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsMove) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsMove) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsMove) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsMove) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsMove) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsMove) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsMove) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsMove) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsMove) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsMove) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsMove) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsMove) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsMove) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsMove) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsMove) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsMove) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsMove) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsMove) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsMove) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsMove) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsMove) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsMove) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsMove) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsMove) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsMove) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsMove) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsMove) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsMove) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsMove) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsMove) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsMove) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsMove) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_note/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_note/gen_doc.go deleted file mode 100644 index 70354bba8..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_note/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typenote contains the implementation for the Note type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typenote diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_note/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_note/gen_pkg.go deleted file mode 100644 index 3ccfdd6a1..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_note/gen_pkg.go +++ /dev/null @@ -1,187 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typenote - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go deleted file mode 100644 index 075960d5d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go +++ /dev/null @@ -1,1731 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typenote - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents a short written work typically less than a single paragraph in -// length. -// -// Example 53 (https://www.w3.org/TR/activitystreams-vocabulary/#ex52-jsonld): -// { -// "content": "Looks like it is going to rain today. Bring an umbrella!", -// "name": "A Word of Warning", -// "type": "Note" -// } -type ActivityStreamsNote struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsNoteExtends returns true if the Note type extends from the other -// type. -func ActivityStreamsNoteExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeNote creates a Note from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeNote(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsNote, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsNote{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Note" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Note", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Note" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Note") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsNote returns true if the other provided type is the Note type or -// extends from the Note type. -func IsOrExtendsNote(other vocab.Type) bool { - if other.GetTypeName() == "Note" { - return true - } - return NoteIsExtendedBy(other) -} - -// NewActivityStreamsNote creates a new Note type -func NewActivityStreamsNote() *ActivityStreamsNote { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Note") - return &ActivityStreamsNote{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// NoteIsDisjointWith returns true if the other provided type is disjoint with the -// Note type. -func NoteIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// NoteIsExtendedBy returns true if the other provided type extends from the Note -// type. Note that it returns false if the types are the same; see the -// "IsOrExtendsNote" variant instead. -func NoteIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsNote) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsNote) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsNote) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsNote) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsNote) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsNote) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsNote) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsNote) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsNote) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsNote) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsNote) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsNote) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsNote) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsNote) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsNote) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsNote) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsNote) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsNote) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsNote) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsNote) GetTypeName() string { - return "Note" -} - -// GetUnknownProperties returns the unknown properties for the Note type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsNote) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Note type extends from the other type. -func (this ActivityStreamsNote) IsExtending(other vocab.Type) bool { - return ActivityStreamsNoteExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsNote) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Note is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsNote) LessThan(o vocab.ActivityStreamsNote) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsNote) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Note" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Note" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsNote) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsNote) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsNote) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsNote) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsNote) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsNote) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsNote) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsNote) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsNote) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsNote) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsNote) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsNote) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsNote) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsNote) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsNote) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsNote) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsNote) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsNote) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsNote) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsNote) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsNote) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsNote) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsNote) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsNote) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsNote) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsNote) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsNote) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsNote) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsNote) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsNote) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsNote) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsNote) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsNote) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsNote) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsNote) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsNote) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsNote) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsNote) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_object/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_object/gen_doc.go deleted file mode 100644 index e49c55cd0..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_object/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeobject contains the implementation for the Object type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeobject diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_object/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_object/gen_pkg.go deleted file mode 100644 index da2a6e43f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_object/gen_pkg.go +++ /dev/null @@ -1,187 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeobject - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go deleted file mode 100644 index ee0815694..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go +++ /dev/null @@ -1,1733 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeobject - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Describes an object of any kind. The Object type serves as the base type for -// most of the other kinds of objects defined in the Activity Vocabulary, -// including other Core types such as Activity, IntransitiveActivity, -// Collection and OrderedCollection. -// -// Example 1 (https://www.w3.org/TR/activitystreams-vocabulary/#ex1-jsonld): -// { -// "id": "http://www.test.example/object/1", -// "name": "A Simple, non-specific object", -// "type": "Object" -// } -type ActivityStreamsObject struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsObjectExtends returns true if the Object type extends from the -// other type. -func ActivityStreamsObjectExtends(other vocab.Type) bool { - // Shortcut implementation: this does not extend anything. - return false -} - -// DeserializeObject creates a Object from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeObject(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsObject, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsObject{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Object" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Object", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Object" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Object") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsObject returns true if the other provided type is the Object type or -// extends from the Object type. -func IsOrExtendsObject(other vocab.Type) bool { - if other.GetTypeName() == "Object" { - return true - } - return ObjectIsExtendedBy(other) -} - -// NewActivityStreamsObject creates a new Object type -func NewActivityStreamsObject() *ActivityStreamsObject { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Object") - return &ActivityStreamsObject{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// ObjectIsDisjointWith returns true if the other provided type is disjoint with -// the Object type. -func ObjectIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// ObjectIsExtendedBy returns true if the other provided type extends from the -// Object type. Note that it returns false if the types are the same; see the -// "IsOrExtendsObject" variant instead. -func ObjectIsExtendedBy(other vocab.Type) bool { - extensions := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Branch", "Collection", "CollectionPage", "Commit", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Push", "Question", "Read", "Reject", "Relationship", "Remove", "Repository", "Service", "TentativeAccept", "TentativeReject", "Ticket", "TicketDependency", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsObject) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsObject) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsObject) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsObject) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsObject) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsObject) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsObject) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsObject) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsObject) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsObject) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsObject) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsObject) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsObject) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsObject) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsObject) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsObject) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsObject) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsObject) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsObject) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsObject) GetTypeName() string { - return "Object" -} - -// GetUnknownProperties returns the unknown properties for the Object type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsObject) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Object type extends from the other type. -func (this ActivityStreamsObject) IsExtending(other vocab.Type) bool { - return ActivityStreamsObjectExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsObject) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Object is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsObject) LessThan(o vocab.ActivityStreamsObject) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsObject) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Object" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Object" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsObject) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsObject) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsObject) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsObject) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsObject) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsObject) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsObject) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsObject) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsObject) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsObject) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsObject) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsObject) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsObject) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsObject) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsObject) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsObject) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsObject) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsObject) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsObject) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsObject) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsObject) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsObject) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsObject) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsObject) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsObject) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsObject) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsObject) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsObject) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsObject) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsObject) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsObject) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsObject) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsObject) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsObject) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsObject) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsObject) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsObject) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsObject) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_offer/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_offer/gen_doc.go deleted file mode 100644 index 8bb80b809..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_offer/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeoffer contains the implementation for the Offer type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeoffer diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_offer/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_offer/gen_pkg.go deleted file mode 100644 index 79fda805c..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_offer/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeoffer - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go deleted file mode 100644 index a04977bf2..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_offer/gen_type_activitystreams_offer.go +++ /dev/null @@ -1,1957 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeoffer - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor is offering the object. If specified, the target -// indicates the entity to which the object is being offered. -// -// Example 23 (https://www.w3.org/TR/activitystreams-vocabulary/#ex21-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "50%!O(MISSING)ff!", -// "type": "http://www.types.example/ProductOffer" -// }, -// "summary": "Sally offered 50%!o(MISSING)ff to Lewis", -// "target": { -// "name": "Lewis", -// "type": "Person" -// }, -// "type": "Offer" -// } -type ActivityStreamsOffer struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsOfferExtends returns true if the Offer type extends from the -// other type. -func ActivityStreamsOfferExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeOffer creates a Offer from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeOffer(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsOffer, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsOffer{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Offer" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Offer", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Offer" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Offer") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsOffer returns true if the other provided type is the Offer type or -// extends from the Offer type. -func IsOrExtendsOffer(other vocab.Type) bool { - if other.GetTypeName() == "Offer" { - return true - } - return OfferIsExtendedBy(other) -} - -// NewActivityStreamsOffer creates a new Offer type -func NewActivityStreamsOffer() *ActivityStreamsOffer { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Offer") - return &ActivityStreamsOffer{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// OfferIsDisjointWith returns true if the other provided type is disjoint with -// the Offer type. -func OfferIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// OfferIsExtendedBy returns true if the other provided type extends from the -// Offer type. Note that it returns false if the types are the same; see the -// "IsOrExtendsOffer" variant instead. -func OfferIsExtendedBy(other vocab.Type) bool { - extensions := []string{"Invite"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOffer) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsOffer) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsOffer) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsOffer) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsOffer) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsOffer) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsOffer) GetTypeName() string { - return "Offer" -} - -// GetUnknownProperties returns the unknown properties for the Offer type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsOffer) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Offer type extends from the other type. -func (this ActivityStreamsOffer) IsExtending(other vocab.Type) bool { - return ActivityStreamsOfferExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsOffer) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Offer is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsOffer) LessThan(o vocab.ActivityStreamsOffer) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsOffer) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Offer" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Offer" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsOffer) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsOffer) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsOffer) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsOffer) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsOffer) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsOffer) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsOffer) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsOffer) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsOffer) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsOffer) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsOffer) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsOffer) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsOffer) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsOffer) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsOffer) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsOffer) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsOffer) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsOffer) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsOffer) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsOffer) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsOffer) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsOffer) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsOffer) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsOffer) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsOffer) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsOffer) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsOffer) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsOffer) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsOffer) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsOffer) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsOffer) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsOffer) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsOffer) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsOffer) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsOffer) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsOffer) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsOffer) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsOffer) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsOffer) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsOffer) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsOffer) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsOffer) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsOffer) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection/gen_doc.go deleted file mode 100644 index 332ac2c2c..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeorderedcollection contains the implementation for the -// OrderedCollection type. All applications are strongly encouraged to use the -// interface instead of this concrete definition. The interfaces allow -// applications to consume only the types and properties needed and be -// independent of the go-fed implementation if another alternative -// implementation is created. This package is code-generated and subject to -// the same license as the go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeorderedcollection diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go deleted file mode 100644 index 3c51afcc3..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection/gen_pkg.go +++ /dev/null @@ -1,212 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeorderedcollection - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeCurrentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsCurrentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCurrentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCurrentProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEarlyItemsPropertyForgeFed returns the deserialization - // method for the "ForgeFedEarlyItemsProperty" non-functional property - // in the vocabulary "ForgeFed" - DeserializeEarlyItemsPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedEarlyItemsProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeFirstPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsFirstProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeFirstPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFirstProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLastPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLastProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLastPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLastProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOrderedItemsPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedItemsProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedItemsProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTotalItemsPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsTotalItemsProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeTotalItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTotalItemsProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go deleted file mode 100644 index ecc738e16..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection/gen_type_activitystreams_orderedcollection.go +++ /dev/null @@ -1,1999 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeorderedcollection - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// A subtype of Collection in which members of the logical collection are assumed -// to always be strictly ordered. -// -// Example 6 (https://www.w3.org/TR/activitystreams-vocabulary/#ex6-jsonld): -// { -// "orderedItems": [ -// { -// "name": "A Simple Note", -// "type": "Note" -// }, -// { -// "name": "Another Simple Note", -// "type": "Note" -// } -// ], -// "summary": "Sally's notes", -// "totalItems": 2, -// "type": "OrderedCollection" -// } -type ActivityStreamsOrderedCollection struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsCurrent vocab.ActivityStreamsCurrentProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ForgeFedEarlyItems vocab.ForgeFedEarlyItemsProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsFirst vocab.ActivityStreamsFirstProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLast vocab.ActivityStreamsLastProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrderedItems vocab.ActivityStreamsOrderedItemsProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ActivityStreamsTotalItems vocab.ActivityStreamsTotalItemsProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsOrderedCollectionExtends returns true if the OrderedCollection -// type extends from the other type. -func ActivityStreamsOrderedCollectionExtends(other vocab.Type) bool { - extensions := []string{"Collection", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeOrderedCollection creates a OrderedCollection from a map -// representation that has been unmarshalled from a text or binary format. -func DeserializeOrderedCollection(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsOrderedCollection, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsOrderedCollection{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "OrderedCollection" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "OrderedCollection", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "OrderedCollection" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "OrderedCollection") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeCurrentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCurrent = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEarlyItemsPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedEarlyItems = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeFirstPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsFirst = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLastPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLast = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOrderedItemsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrderedItems = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTotalItemsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTotalItems = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "current" { - continue - } else if k == "duration" { - continue - } else if k == "earlyItems" { - continue - } else if k == "endTime" { - continue - } else if k == "first" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "last" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "orderedItems" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "totalItems" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsOrderedCollection returns true if the other provided type is the -// OrderedCollection type or extends from the OrderedCollection type. -func IsOrExtendsOrderedCollection(other vocab.Type) bool { - if other.GetTypeName() == "OrderedCollection" { - return true - } - return OrderedCollectionIsExtendedBy(other) -} - -// NewActivityStreamsOrderedCollection creates a new OrderedCollection type -func NewActivityStreamsOrderedCollection() *ActivityStreamsOrderedCollection { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("OrderedCollection") - return &ActivityStreamsOrderedCollection{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// OrderedCollectionIsDisjointWith returns true if the other provided type is -// disjoint with the OrderedCollection type. -func OrderedCollectionIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// OrderedCollectionIsExtendedBy returns true if the other provided type extends -// from the OrderedCollection type. Note that it returns false if the types -// are the same; see the "IsOrExtendsOrderedCollection" variant instead. -func OrderedCollectionIsExtendedBy(other vocab.Type) bool { - extensions := []string{"OrderedCollectionPage"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsCurrent returns the "current" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsCurrent() vocab.ActivityStreamsCurrentProperty { - return this.ActivityStreamsCurrent -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsFirst returns the "first" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsFirst() vocab.ActivityStreamsFirstProperty { - return this.ActivityStreamsFirst -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLast returns the "last" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsLast() vocab.ActivityStreamsLastProperty { - return this.ActivityStreamsLast -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrderedItems returns the "orderedItems" property if it -// exists, and nil otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsOrderedItems() vocab.ActivityStreamsOrderedItemsProperty { - return this.ActivityStreamsOrderedItems -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsTotalItems returns the "totalItems" property if it exists, -// and nil otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsTotalItems() vocab.ActivityStreamsTotalItemsProperty { - return this.ActivityStreamsTotalItems -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedEarlyItems returns the "earlyItems" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollection) GetForgeFedEarlyItems() vocab.ForgeFedEarlyItemsProperty { - return this.ForgeFedEarlyItems -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsOrderedCollection) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsOrderedCollection) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsOrderedCollection) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsOrderedCollection) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsOrderedCollection) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsOrderedCollection) GetTypeName() string { - return "OrderedCollection" -} - -// GetUnknownProperties returns the unknown properties for the OrderedCollection -// type. Note that this should not be used by app developers. It is only used -// to help determine which implementation is LessThan the other. Developers -// who are creating a different implementation of this type's interface can -// use this method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsOrderedCollection) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the OrderedCollection type extends from the other -// type. -func (this ActivityStreamsOrderedCollection) IsExtending(other vocab.Type) bool { - return ActivityStreamsOrderedCollectionExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsOrderedCollection) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsCurrent, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ForgeFedEarlyItems, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsFirst, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLast, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrderedItems, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsTotalItems, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this OrderedCollection is lesser, with an arbitrary but -// stable determination. -func (this ActivityStreamsOrderedCollection) LessThan(o vocab.ActivityStreamsOrderedCollection) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "current" - if lhs, rhs := this.ActivityStreamsCurrent, o.GetActivityStreamsCurrent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "earlyItems" - if lhs, rhs := this.ForgeFedEarlyItems, o.GetForgeFedEarlyItems(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "first" - if lhs, rhs := this.ActivityStreamsFirst, o.GetActivityStreamsFirst(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "last" - if lhs, rhs := this.ActivityStreamsLast, o.GetActivityStreamsLast(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "orderedItems" - if lhs, rhs := this.ActivityStreamsOrderedItems, o.GetActivityStreamsOrderedItems(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "totalItems" - if lhs, rhs := this.ActivityStreamsTotalItems, o.GetActivityStreamsTotalItems(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsOrderedCollection) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "OrderedCollection" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "OrderedCollection" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "current" - if this.ActivityStreamsCurrent != nil { - if i, err := this.ActivityStreamsCurrent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCurrent.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "earlyItems" - if this.ForgeFedEarlyItems != nil { - if i, err := this.ForgeFedEarlyItems.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedEarlyItems.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "first" - if this.ActivityStreamsFirst != nil { - if i, err := this.ActivityStreamsFirst.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsFirst.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "last" - if this.ActivityStreamsLast != nil { - if i, err := this.ActivityStreamsLast.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLast.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "orderedItems" - if this.ActivityStreamsOrderedItems != nil { - if i, err := this.ActivityStreamsOrderedItems.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrderedItems.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "totalItems" - if this.ActivityStreamsTotalItems != nil { - if i, err := this.ActivityStreamsTotalItems.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTotalItems.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsCurrent sets the "current" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsCurrent(i vocab.ActivityStreamsCurrentProperty) { - this.ActivityStreamsCurrent = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsFirst sets the "first" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsFirst(i vocab.ActivityStreamsFirstProperty) { - this.ActivityStreamsFirst = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLast sets the "last" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsLast(i vocab.ActivityStreamsLastProperty) { - this.ActivityStreamsLast = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrderedItems sets the "orderedItems" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsOrderedItems(i vocab.ActivityStreamsOrderedItemsProperty) { - this.ActivityStreamsOrderedItems = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsTotalItems sets the "totalItems" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsTotalItems(i vocab.ActivityStreamsTotalItemsProperty) { - this.ActivityStreamsTotalItems = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsOrderedCollection) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedEarlyItems sets the "earlyItems" property. -func (this *ActivityStreamsOrderedCollection) SetForgeFedEarlyItems(i vocab.ForgeFedEarlyItemsProperty) { - this.ForgeFedEarlyItems = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsOrderedCollection) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsOrderedCollection) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsOrderedCollection) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsOrderedCollection) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsOrderedCollection) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsOrderedCollection) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsOrderedCollection) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_doc.go deleted file mode 100644 index a81a66313..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeorderedcollectionpage contains the implementation for the -// OrderedCollectionPage type. All applications are strongly encouraged to use -// the interface instead of this concrete definition. The interfaces allow -// applications to consume only the types and properties needed and be -// independent of the go-fed implementation if another alternative -// implementation is created. This package is code-generated and subject to -// the same license as the go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeorderedcollectionpage diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go deleted file mode 100644 index 1ad7d837f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_pkg.go +++ /dev/null @@ -1,228 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeorderedcollectionpage - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeCurrentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsCurrentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCurrentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCurrentProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEarlyItemsPropertyForgeFed returns the deserialization - // method for the "ForgeFedEarlyItemsProperty" non-functional property - // in the vocabulary "ForgeFed" - DeserializeEarlyItemsPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedEarlyItemsProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeFirstPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsFirstProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeFirstPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFirstProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLastPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLastProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLastPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLastProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeNextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNextProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOrderedItemsPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedItemsProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedItemsProperty, error) - // DeserializePartOfPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPartOfProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePartOfPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPartOfProperty, error) - // DeserializePrevPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPrevProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePrevPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPrevProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartIndexPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsStartIndexProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeStartIndexPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartIndexProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTotalItemsPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsTotalItemsProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeTotalItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTotalItemsProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go deleted file mode 100644 index 97c589c48..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage/gen_type_activitystreams_orderedcollectionpage.go +++ /dev/null @@ -1,2166 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeorderedcollectionpage - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// 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. -// -// Example 8 (https://www.w3.org/TR/activitystreams-vocabulary/#ex6c-jsonld): -// { -// "id": "http://example.org/foo?page=1", -// "orderedItems": [ -// { -// "name": "A Simple Note", -// "type": "Note" -// }, -// { -// "name": "Another Simple Note", -// "type": "Note" -// } -// ], -// "partOf": "http://example.org/foo", -// "summary": "Page 1 of Sally's notes", -// "type": "OrderedCollectionPage" -// } -type ActivityStreamsOrderedCollectionPage struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsCurrent vocab.ActivityStreamsCurrentProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ForgeFedEarlyItems vocab.ForgeFedEarlyItemsProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsFirst vocab.ActivityStreamsFirstProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLast vocab.ActivityStreamsLastProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsNext vocab.ActivityStreamsNextProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrderedItems vocab.ActivityStreamsOrderedItemsProperty - ActivityStreamsPartOf vocab.ActivityStreamsPartOfProperty - ActivityStreamsPrev vocab.ActivityStreamsPrevProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartIndex vocab.ActivityStreamsStartIndexProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ActivityStreamsTotalItems vocab.ActivityStreamsTotalItemsProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsOrderedCollectionPageExtends returns true if the -// OrderedCollectionPage type extends from the other type. -func ActivityStreamsOrderedCollectionPageExtends(other vocab.Type) bool { - extensions := []string{"Collection", "CollectionPage", "Object", "OrderedCollection"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeOrderedCollectionPage creates a OrderedCollectionPage from a map -// representation that has been unmarshalled from a text or binary format. -func DeserializeOrderedCollectionPage(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsOrderedCollectionPage, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsOrderedCollectionPage{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "OrderedCollectionPage" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "OrderedCollectionPage", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "OrderedCollectionPage" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "OrderedCollectionPage") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeCurrentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCurrent = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEarlyItemsPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedEarlyItems = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeFirstPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsFirst = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLastPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLast = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeNextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsNext = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOrderedItemsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrderedItems = p - } - if p, err := mgr.DeserializePartOfPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPartOf = p - } - if p, err := mgr.DeserializePrevPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPrev = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartIndexPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartIndex = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTotalItemsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTotalItems = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "current" { - continue - } else if k == "duration" { - continue - } else if k == "earlyItems" { - continue - } else if k == "endTime" { - continue - } else if k == "first" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "last" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "next" { - continue - } else if k == "object" { - continue - } else if k == "orderedItems" { - continue - } else if k == "partOf" { - continue - } else if k == "prev" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startIndex" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "totalItems" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsOrderedCollectionPage returns true if the other provided type is the -// OrderedCollectionPage type or extends from the OrderedCollectionPage type. -func IsOrExtendsOrderedCollectionPage(other vocab.Type) bool { - if other.GetTypeName() == "OrderedCollectionPage" { - return true - } - return OrderedCollectionPageIsExtendedBy(other) -} - -// NewActivityStreamsOrderedCollectionPage creates a new OrderedCollectionPage type -func NewActivityStreamsOrderedCollectionPage() *ActivityStreamsOrderedCollectionPage { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("OrderedCollectionPage") - return &ActivityStreamsOrderedCollectionPage{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// OrderedCollectionPageIsDisjointWith returns true if the other provided type is -// disjoint with the OrderedCollectionPage type. -func OrderedCollectionPageIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// OrderedCollectionPageIsExtendedBy returns true if the other provided type -// extends from the OrderedCollectionPage type. Note that it returns false if -// the types are the same; see the "IsOrExtendsOrderedCollectionPage" variant -// instead. -func OrderedCollectionPageIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsCurrent returns the "current" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsCurrent() vocab.ActivityStreamsCurrentProperty { - return this.ActivityStreamsCurrent -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsFirst returns the "first" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsFirst() vocab.ActivityStreamsFirstProperty { - return this.ActivityStreamsFirst -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLast returns the "last" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsLast() vocab.ActivityStreamsLastProperty { - return this.ActivityStreamsLast -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsNext returns the "next" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsNext() vocab.ActivityStreamsNextProperty { - return this.ActivityStreamsNext -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrderedItems returns the "orderedItems" property if it -// exists, and nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsOrderedItems() vocab.ActivityStreamsOrderedItemsProperty { - return this.ActivityStreamsOrderedItems -} - -// GetActivityStreamsPartOf returns the "partOf" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsPartOf() vocab.ActivityStreamsPartOfProperty { - return this.ActivityStreamsPartOf -} - -// GetActivityStreamsPrev returns the "prev" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsPrev() vocab.ActivityStreamsPrevProperty { - return this.ActivityStreamsPrev -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartIndex returns the "startIndex" property if it exists, -// and nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsStartIndex() vocab.ActivityStreamsStartIndexProperty { - return this.ActivityStreamsStartIndex -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsTotalItems returns the "totalItems" property if it exists, -// and nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsTotalItems() vocab.ActivityStreamsTotalItemsProperty { - return this.ActivityStreamsTotalItems -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedEarlyItems returns the "earlyItems" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetForgeFedEarlyItems() vocab.ForgeFedEarlyItemsProperty { - return this.ForgeFedEarlyItems -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsOrderedCollectionPage) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsOrderedCollectionPage) GetTypeName() string { - return "OrderedCollectionPage" -} - -// GetUnknownProperties returns the unknown properties for the -// OrderedCollectionPage type. Note that this should not be used by app -// developers. It is only used to help determine which implementation is -// LessThan the other. Developers who are creating a different implementation -// of this type's interface can use this method in their LessThan -// implementation, but routine ActivityPub applications should not use this to -// bypass the code generation tool. -func (this ActivityStreamsOrderedCollectionPage) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the OrderedCollectionPage type extends from the -// other type. -func (this ActivityStreamsOrderedCollectionPage) IsExtending(other vocab.Type) bool { - return ActivityStreamsOrderedCollectionPageExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsOrderedCollectionPage) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsCurrent, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ForgeFedEarlyItems, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsFirst, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLast, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsNext, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrderedItems, m) - m = this.helperJSONLDContext(this.ActivityStreamsPartOf, m) - m = this.helperJSONLDContext(this.ActivityStreamsPrev, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartIndex, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsTotalItems, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this OrderedCollectionPage is lesser, with an arbitrary -// but stable determination. -func (this ActivityStreamsOrderedCollectionPage) LessThan(o vocab.ActivityStreamsOrderedCollectionPage) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "current" - if lhs, rhs := this.ActivityStreamsCurrent, o.GetActivityStreamsCurrent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "earlyItems" - if lhs, rhs := this.ForgeFedEarlyItems, o.GetForgeFedEarlyItems(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "first" - if lhs, rhs := this.ActivityStreamsFirst, o.GetActivityStreamsFirst(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "last" - if lhs, rhs := this.ActivityStreamsLast, o.GetActivityStreamsLast(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "next" - if lhs, rhs := this.ActivityStreamsNext, o.GetActivityStreamsNext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "orderedItems" - if lhs, rhs := this.ActivityStreamsOrderedItems, o.GetActivityStreamsOrderedItems(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "partOf" - if lhs, rhs := this.ActivityStreamsPartOf, o.GetActivityStreamsPartOf(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "prev" - if lhs, rhs := this.ActivityStreamsPrev, o.GetActivityStreamsPrev(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startIndex" - if lhs, rhs := this.ActivityStreamsStartIndex, o.GetActivityStreamsStartIndex(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "totalItems" - if lhs, rhs := this.ActivityStreamsTotalItems, o.GetActivityStreamsTotalItems(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsOrderedCollectionPage) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "OrderedCollectionPage" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "OrderedCollectionPage" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "current" - if this.ActivityStreamsCurrent != nil { - if i, err := this.ActivityStreamsCurrent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCurrent.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "earlyItems" - if this.ForgeFedEarlyItems != nil { - if i, err := this.ForgeFedEarlyItems.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedEarlyItems.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "first" - if this.ActivityStreamsFirst != nil { - if i, err := this.ActivityStreamsFirst.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsFirst.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "last" - if this.ActivityStreamsLast != nil { - if i, err := this.ActivityStreamsLast.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLast.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "next" - if this.ActivityStreamsNext != nil { - if i, err := this.ActivityStreamsNext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsNext.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "orderedItems" - if this.ActivityStreamsOrderedItems != nil { - if i, err := this.ActivityStreamsOrderedItems.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrderedItems.Name()] = i - } - } - // Maybe serialize property "partOf" - if this.ActivityStreamsPartOf != nil { - if i, err := this.ActivityStreamsPartOf.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPartOf.Name()] = i - } - } - // Maybe serialize property "prev" - if this.ActivityStreamsPrev != nil { - if i, err := this.ActivityStreamsPrev.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPrev.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startIndex" - if this.ActivityStreamsStartIndex != nil { - if i, err := this.ActivityStreamsStartIndex.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartIndex.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "totalItems" - if this.ActivityStreamsTotalItems != nil { - if i, err := this.ActivityStreamsTotalItems.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTotalItems.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsCurrent sets the "current" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsCurrent(i vocab.ActivityStreamsCurrentProperty) { - this.ActivityStreamsCurrent = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsFirst sets the "first" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsFirst(i vocab.ActivityStreamsFirstProperty) { - this.ActivityStreamsFirst = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLast sets the "last" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsLast(i vocab.ActivityStreamsLastProperty) { - this.ActivityStreamsLast = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsNext sets the "next" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsNext(i vocab.ActivityStreamsNextProperty) { - this.ActivityStreamsNext = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrderedItems sets the "orderedItems" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsOrderedItems(i vocab.ActivityStreamsOrderedItemsProperty) { - this.ActivityStreamsOrderedItems = i -} - -// SetActivityStreamsPartOf sets the "partOf" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsPartOf(i vocab.ActivityStreamsPartOfProperty) { - this.ActivityStreamsPartOf = i -} - -// SetActivityStreamsPrev sets the "prev" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsPrev(i vocab.ActivityStreamsPrevProperty) { - this.ActivityStreamsPrev = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartIndex sets the "startIndex" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsStartIndex(i vocab.ActivityStreamsStartIndexProperty) { - this.ActivityStreamsStartIndex = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsTotalItems sets the "totalItems" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsTotalItems(i vocab.ActivityStreamsTotalItemsProperty) { - this.ActivityStreamsTotalItems = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedEarlyItems sets the "earlyItems" property. -func (this *ActivityStreamsOrderedCollectionPage) SetForgeFedEarlyItems(i vocab.ForgeFedEarlyItemsProperty) { - this.ForgeFedEarlyItems = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsOrderedCollectionPage) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsOrderedCollectionPage) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsOrderedCollectionPage) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsOrderedCollectionPage) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsOrderedCollectionPage) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsOrderedCollectionPage) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsOrderedCollectionPage) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_organization/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_organization/gen_doc.go deleted file mode 100644 index 5e9e4630e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_organization/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeorganization contains the implementation for the Organization type. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeorganization diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_organization/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_organization/gen_pkg.go deleted file mode 100644 index c2d1aba01..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_organization/gen_pkg.go +++ /dev/null @@ -1,233 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeorganization - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDiscoverablePropertyToot returns the deserialization method - // for the "TootDiscoverableProperty" non-functional property in the - // vocabulary "Toot" - DeserializeDiscoverablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootDiscoverableProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeFeaturedPropertyToot returns the deserialization method for - // the "TootFeaturedProperty" non-functional property in the - // vocabulary "Toot" - DeserializeFeaturedPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFeaturedProperty, error) - // DeserializeFollowersPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsFollowersProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowersProperty, error) - // DeserializeFollowingPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsFollowingProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeFollowingPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowingProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInboxPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInboxProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInboxProperty, error) - // DeserializeLikedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikedProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsManuallyApprovesFollowersProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeManuallyApprovesFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOutboxPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOutboxProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOutboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOutboxProperty, error) - // DeserializePreferredUsernamePropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsPreferredUsernameProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializePreferredUsernamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreferredUsernameProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublicKeyPropertyW3IDSecurityV1 returns the deserialization - // method for the "W3IDSecurityV1PublicKeyProperty" non-functional - // property in the vocabulary "W3IDSecurityV1" - DeserializePublicKeyPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKeyProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeStreamsPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStreamsProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStreamsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStreamsProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go deleted file mode 100644 index c0df553c1..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go +++ /dev/null @@ -1,2193 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeorganization - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents an organization. -// -// Example 44 (https://www.w3.org/TR/activitystreams-vocabulary/#ex186-jsonld): -// { -// "name": "Example Co.", -// "type": "Organization" -// } -type ActivityStreamsOrganization struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - TootDiscoverable vocab.TootDiscoverableProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - TootFeatured vocab.TootFeaturedProperty - ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty - ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInbox vocab.ActivityStreamsInboxProperty - ActivityStreamsLiked vocab.ActivityStreamsLikedProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty - ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsOrganizationExtends returns true if the Organization type -// extends from the other type. -func ActivityStreamsOrganizationExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeOrganization creates a Organization from a map representation that -// has been unmarshalled from a text or binary format. -func DeserializeOrganization(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsOrganization, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsOrganization{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Organization" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Organization", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Organization" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Organization") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDiscoverablePropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootDiscoverable = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeFeaturedPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootFeatured = p - } - if p, err := mgr.DeserializeFollowersPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsFollowers = p - } - if p, err := mgr.DeserializeFollowingPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsFollowing = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInboxPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInbox = p - } - if p, err := mgr.DeserializeLikedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLiked = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeManuallyApprovesFollowersPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsManuallyApprovesFollowers = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOutboxPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOutbox = p - } - if p, err := mgr.DeserializePreferredUsernamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreferredUsername = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublicKeyPropertyW3IDSecurityV1()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.W3IDSecurityV1PublicKey = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeStreamsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStreams = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "discoverable" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "featured" { - continue - } else if k == "followers" { - continue - } else if k == "following" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "inbox" { - continue - } else if k == "liked" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "manuallyApprovesFollowers" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "outbox" { - continue - } else if k == "preferredUsername" { - continue - } else if k == "preferredUsernameMap" { - continue - } else if k == "preview" { - continue - } else if k == "publicKey" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "streams" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsOrganization returns true if the other provided type is the -// Organization type or extends from the Organization type. -func IsOrExtendsOrganization(other vocab.Type) bool { - if other.GetTypeName() == "Organization" { - return true - } - return OrganizationIsExtendedBy(other) -} - -// NewActivityStreamsOrganization creates a new Organization type -func NewActivityStreamsOrganization() *ActivityStreamsOrganization { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Organization") - return &ActivityStreamsOrganization{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// OrganizationIsDisjointWith returns true if the other provided type is disjoint -// with the Organization type. -func OrganizationIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// OrganizationIsExtendedBy returns true if the other provided type extends from -// the Organization type. Note that it returns false if the types are the -// same; see the "IsOrExtendsOrganization" variant instead. -func OrganizationIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsFollowers returns the "followers" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsFollowers() vocab.ActivityStreamsFollowersProperty { - return this.ActivityStreamsFollowers -} - -// GetActivityStreamsFollowing returns the "following" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsFollowing() vocab.ActivityStreamsFollowingProperty { - return this.ActivityStreamsFollowing -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInbox returns the "inbox" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsInbox() vocab.ActivityStreamsInboxProperty { - return this.ActivityStreamsInbox -} - -// GetActivityStreamsLiked returns the "liked" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsLiked() vocab.ActivityStreamsLikedProperty { - return this.ActivityStreamsLiked -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsManuallyApprovesFollowers returns the -// "manuallyApprovesFollowers" property if it exists, and nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsManuallyApprovesFollowers() vocab.ActivityStreamsManuallyApprovesFollowersProperty { - return this.ActivityStreamsManuallyApprovesFollowers -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOutbox returns the "outbox" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsOutbox() vocab.ActivityStreamsOutboxProperty { - return this.ActivityStreamsOutbox -} - -// GetActivityStreamsPreferredUsername returns the "preferredUsername" property if -// it exists, and nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsPreferredUsername() vocab.ActivityStreamsPreferredUsernameProperty { - return this.ActivityStreamsPreferredUsername -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsStreams returns the "streams" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsStreams() vocab.ActivityStreamsStreamsProperty { - return this.ActivityStreamsStreams -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsOrganization) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsOrganization) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsOrganization) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsOrganization) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsOrganization) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTootDiscoverable returns the "discoverable" property if it exists, and nil -// otherwise. -func (this ActivityStreamsOrganization) GetTootDiscoverable() vocab.TootDiscoverableProperty { - return this.TootDiscoverable -} - -// GetTootFeatured returns the "featured" property if it exists, and nil otherwise. -func (this ActivityStreamsOrganization) GetTootFeatured() vocab.TootFeaturedProperty { - return this.TootFeatured -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsOrganization) GetTypeName() string { - return "Organization" -} - -// GetUnknownProperties returns the unknown properties for the Organization type. -// Note that this should not be used by app developers. It is only used to -// help determine which implementation is LessThan the other. Developers who -// are creating a different implementation of this type's interface can use -// this method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsOrganization) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// GetW3IDSecurityV1PublicKey returns the "publicKey" property if it exists, and -// nil otherwise. -func (this ActivityStreamsOrganization) GetW3IDSecurityV1PublicKey() vocab.W3IDSecurityV1PublicKeyProperty { - return this.W3IDSecurityV1PublicKey -} - -// IsExtending returns true if the Organization type extends from the other type. -func (this ActivityStreamsOrganization) IsExtending(other vocab.Type) bool { - return ActivityStreamsOrganizationExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsOrganization) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.TootDiscoverable, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.TootFeatured, m) - m = this.helperJSONLDContext(this.ActivityStreamsFollowers, m) - m = this.helperJSONLDContext(this.ActivityStreamsFollowing, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInbox, m) - m = this.helperJSONLDContext(this.ActivityStreamsLiked, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOutbox, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreferredUsername, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKey, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsStreams, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Organization is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsOrganization) LessThan(o vocab.ActivityStreamsOrganization) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "discoverable" - if lhs, rhs := this.TootDiscoverable, o.GetTootDiscoverable(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "featured" - if lhs, rhs := this.TootFeatured, o.GetTootFeatured(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "followers" - if lhs, rhs := this.ActivityStreamsFollowers, o.GetActivityStreamsFollowers(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "following" - if lhs, rhs := this.ActivityStreamsFollowing, o.GetActivityStreamsFollowing(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inbox" - if lhs, rhs := this.ActivityStreamsInbox, o.GetActivityStreamsInbox(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "liked" - if lhs, rhs := this.ActivityStreamsLiked, o.GetActivityStreamsLiked(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "manuallyApprovesFollowers" - if lhs, rhs := this.ActivityStreamsManuallyApprovesFollowers, o.GetActivityStreamsManuallyApprovesFollowers(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "outbox" - if lhs, rhs := this.ActivityStreamsOutbox, o.GetActivityStreamsOutbox(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preferredUsername" - if lhs, rhs := this.ActivityStreamsPreferredUsername, o.GetActivityStreamsPreferredUsername(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "publicKey" - if lhs, rhs := this.W3IDSecurityV1PublicKey, o.GetW3IDSecurityV1PublicKey(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "streams" - if lhs, rhs := this.ActivityStreamsStreams, o.GetActivityStreamsStreams(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsOrganization) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Organization" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Organization" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "discoverable" - if this.TootDiscoverable != nil { - if i, err := this.TootDiscoverable.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootDiscoverable.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "featured" - if this.TootFeatured != nil { - if i, err := this.TootFeatured.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootFeatured.Name()] = i - } - } - // Maybe serialize property "followers" - if this.ActivityStreamsFollowers != nil { - if i, err := this.ActivityStreamsFollowers.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsFollowers.Name()] = i - } - } - // Maybe serialize property "following" - if this.ActivityStreamsFollowing != nil { - if i, err := this.ActivityStreamsFollowing.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsFollowing.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "inbox" - if this.ActivityStreamsInbox != nil { - if i, err := this.ActivityStreamsInbox.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInbox.Name()] = i - } - } - // Maybe serialize property "liked" - if this.ActivityStreamsLiked != nil { - if i, err := this.ActivityStreamsLiked.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLiked.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "manuallyApprovesFollowers" - if this.ActivityStreamsManuallyApprovesFollowers != nil { - if i, err := this.ActivityStreamsManuallyApprovesFollowers.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsManuallyApprovesFollowers.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "outbox" - if this.ActivityStreamsOutbox != nil { - if i, err := this.ActivityStreamsOutbox.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOutbox.Name()] = i - } - } - // Maybe serialize property "preferredUsername" - if this.ActivityStreamsPreferredUsername != nil { - if i, err := this.ActivityStreamsPreferredUsername.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreferredUsername.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "publicKey" - if this.W3IDSecurityV1PublicKey != nil { - if i, err := this.W3IDSecurityV1PublicKey.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.W3IDSecurityV1PublicKey.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "streams" - if this.ActivityStreamsStreams != nil { - if i, err := this.ActivityStreamsStreams.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStreams.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsFollowers sets the "followers" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsFollowers(i vocab.ActivityStreamsFollowersProperty) { - this.ActivityStreamsFollowers = i -} - -// SetActivityStreamsFollowing sets the "following" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsFollowing(i vocab.ActivityStreamsFollowingProperty) { - this.ActivityStreamsFollowing = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInbox sets the "inbox" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsInbox(i vocab.ActivityStreamsInboxProperty) { - this.ActivityStreamsInbox = i -} - -// SetActivityStreamsLiked sets the "liked" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsLiked(i vocab.ActivityStreamsLikedProperty) { - this.ActivityStreamsLiked = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsManuallyApprovesFollowers sets the -// "manuallyApprovesFollowers" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsManuallyApprovesFollowers(i vocab.ActivityStreamsManuallyApprovesFollowersProperty) { - this.ActivityStreamsManuallyApprovesFollowers = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOutbox sets the "outbox" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsOutbox(i vocab.ActivityStreamsOutboxProperty) { - this.ActivityStreamsOutbox = i -} - -// SetActivityStreamsPreferredUsername sets the "preferredUsername" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsPreferredUsername(i vocab.ActivityStreamsPreferredUsernameProperty) { - this.ActivityStreamsPreferredUsername = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsStreams sets the "streams" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsStreams(i vocab.ActivityStreamsStreamsProperty) { - this.ActivityStreamsStreams = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsOrganization) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsOrganization) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsOrganization) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsOrganization) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsOrganization) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsOrganization) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// SetTootDiscoverable sets the "discoverable" property. -func (this *ActivityStreamsOrganization) SetTootDiscoverable(i vocab.TootDiscoverableProperty) { - this.TootDiscoverable = i -} - -// SetTootFeatured sets the "featured" property. -func (this *ActivityStreamsOrganization) SetTootFeatured(i vocab.TootFeaturedProperty) { - this.TootFeatured = i -} - -// SetW3IDSecurityV1PublicKey sets the "publicKey" property. -func (this *ActivityStreamsOrganization) SetW3IDSecurityV1PublicKey(i vocab.W3IDSecurityV1PublicKeyProperty) { - this.W3IDSecurityV1PublicKey = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsOrganization) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsOrganization) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_page/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_page/gen_doc.go deleted file mode 100644 index ee281c63b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_page/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typepage contains the implementation for the Page type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typepage diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_page/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_page/gen_pkg.go deleted file mode 100644 index c0941bbcd..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_page/gen_pkg.go +++ /dev/null @@ -1,191 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typepage - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBlurhashPropertyToot returns the deserialization method for - // the "TootBlurhashProperty" non-functional property in the - // vocabulary "Toot" - DeserializeBlurhashPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootBlurhashProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go deleted file mode 100644 index 55fdfd54a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go +++ /dev/null @@ -1,1771 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typepage - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents a Web Page. -// -// Example 54 (https://www.w3.org/TR/activitystreams-vocabulary/#ex53-jsonld): -// { -// "name": "Omaha Weather Report", -// "type": "Page", -// "url": "http://example.org/weather-in-omaha.html" -// } -type ActivityStreamsPage struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - TootBlurhash vocab.TootBlurhashProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsPageExtends returns true if the Page type extends from the other -// type. -func ActivityStreamsPageExtends(other vocab.Type) bool { - extensions := []string{"Document", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializePage creates a Page from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializePage(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsPage, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsPage{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Page" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Page", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Page" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Page") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBlurhashPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootBlurhash = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "blurhash" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsPage returns true if the other provided type is the Page type or -// extends from the Page type. -func IsOrExtendsPage(other vocab.Type) bool { - if other.GetTypeName() == "Page" { - return true - } - return PageIsExtendedBy(other) -} - -// NewActivityStreamsPage creates a new Page type -func NewActivityStreamsPage() *ActivityStreamsPage { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Page") - return &ActivityStreamsPage{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// PageIsDisjointWith returns true if the other provided type is disjoint with the -// Page type. -func PageIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// PageIsExtendedBy returns true if the other provided type extends from the Page -// type. Note that it returns false if the types are the same; see the -// "IsOrExtendsPage" variant instead. -func PageIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPage) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsPage) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsPage) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPage) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsPage) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPage) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPage) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPage) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPage) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPage) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPage) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPage) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsPage) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPage) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsPage) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsPage) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsPage) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsPage) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsPage) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTootBlurhash returns the "blurhash" property if it exists, and nil otherwise. -func (this ActivityStreamsPage) GetTootBlurhash() vocab.TootBlurhashProperty { - return this.TootBlurhash -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsPage) GetTypeName() string { - return "Page" -} - -// GetUnknownProperties returns the unknown properties for the Page type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsPage) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Page type extends from the other type. -func (this ActivityStreamsPage) IsExtending(other vocab.Type) bool { - return ActivityStreamsPageExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsPage) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.TootBlurhash, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Page is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsPage) LessThan(o vocab.ActivityStreamsPage) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "blurhash" - if lhs, rhs := this.TootBlurhash, o.GetTootBlurhash(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsPage) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Page" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Page" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "blurhash" - if this.TootBlurhash != nil { - if i, err := this.TootBlurhash.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootBlurhash.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsPage) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsPage) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsPage) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsPage) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsPage) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsPage) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsPage) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsPage) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsPage) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsPage) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsPage) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsPage) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsPage) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsPage) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsPage) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsPage) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsPage) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsPage) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsPage) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsPage) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsPage) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsPage) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsPage) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsPage) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsPage) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsPage) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsPage) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsPage) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsPage) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsPage) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsPage) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsPage) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsPage) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsPage) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsPage) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsPage) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// SetTootBlurhash sets the "blurhash" property. -func (this *ActivityStreamsPage) SetTootBlurhash(i vocab.TootBlurhashProperty) { - this.TootBlurhash = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsPage) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsPage) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_person/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_person/gen_doc.go deleted file mode 100644 index 3c86a2caa..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_person/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeperson contains the implementation for the Person type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeperson diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_person/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_person/gen_pkg.go deleted file mode 100644 index 44295e2b4..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_person/gen_pkg.go +++ /dev/null @@ -1,233 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeperson - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDiscoverablePropertyToot returns the deserialization method - // for the "TootDiscoverableProperty" non-functional property in the - // vocabulary "Toot" - DeserializeDiscoverablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootDiscoverableProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeFeaturedPropertyToot returns the deserialization method for - // the "TootFeaturedProperty" non-functional property in the - // vocabulary "Toot" - DeserializeFeaturedPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFeaturedProperty, error) - // DeserializeFollowersPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsFollowersProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowersProperty, error) - // DeserializeFollowingPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsFollowingProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeFollowingPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowingProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInboxPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInboxProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInboxProperty, error) - // DeserializeLikedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikedProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsManuallyApprovesFollowersProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeManuallyApprovesFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOutboxPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOutboxProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOutboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOutboxProperty, error) - // DeserializePreferredUsernamePropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsPreferredUsernameProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializePreferredUsernamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreferredUsernameProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublicKeyPropertyW3IDSecurityV1 returns the deserialization - // method for the "W3IDSecurityV1PublicKeyProperty" non-functional - // property in the vocabulary "W3IDSecurityV1" - DeserializePublicKeyPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKeyProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeStreamsPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStreamsProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStreamsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStreamsProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go deleted file mode 100644 index bf51f554e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go +++ /dev/null @@ -1,2193 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeperson - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents an individual person. -// -// Example 45 (https://www.w3.org/TR/activitystreams-vocabulary/#ex39-jsonld): -// { -// "name": "Sally Smith", -// "type": "Person" -// } -type ActivityStreamsPerson struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - TootDiscoverable vocab.TootDiscoverableProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - TootFeatured vocab.TootFeaturedProperty - ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty - ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInbox vocab.ActivityStreamsInboxProperty - ActivityStreamsLiked vocab.ActivityStreamsLikedProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty - ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsPersonExtends returns true if the Person type extends from the -// other type. -func ActivityStreamsPersonExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializePerson creates a Person from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializePerson(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsPerson, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsPerson{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Person" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Person", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Person" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Person") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDiscoverablePropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootDiscoverable = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeFeaturedPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootFeatured = p - } - if p, err := mgr.DeserializeFollowersPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsFollowers = p - } - if p, err := mgr.DeserializeFollowingPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsFollowing = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInboxPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInbox = p - } - if p, err := mgr.DeserializeLikedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLiked = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeManuallyApprovesFollowersPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsManuallyApprovesFollowers = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOutboxPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOutbox = p - } - if p, err := mgr.DeserializePreferredUsernamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreferredUsername = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublicKeyPropertyW3IDSecurityV1()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.W3IDSecurityV1PublicKey = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeStreamsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStreams = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "discoverable" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "featured" { - continue - } else if k == "followers" { - continue - } else if k == "following" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "inbox" { - continue - } else if k == "liked" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "manuallyApprovesFollowers" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "outbox" { - continue - } else if k == "preferredUsername" { - continue - } else if k == "preferredUsernameMap" { - continue - } else if k == "preview" { - continue - } else if k == "publicKey" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "streams" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsPerson returns true if the other provided type is the Person type or -// extends from the Person type. -func IsOrExtendsPerson(other vocab.Type) bool { - if other.GetTypeName() == "Person" { - return true - } - return PersonIsExtendedBy(other) -} - -// NewActivityStreamsPerson creates a new Person type -func NewActivityStreamsPerson() *ActivityStreamsPerson { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Person") - return &ActivityStreamsPerson{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// PersonIsDisjointWith returns true if the other provided type is disjoint with -// the Person type. -func PersonIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// PersonIsExtendedBy returns true if the other provided type extends from the -// Person type. Note that it returns false if the types are the same; see the -// "IsOrExtendsPerson" variant instead. -func PersonIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsFollowers returns the "followers" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsFollowers() vocab.ActivityStreamsFollowersProperty { - return this.ActivityStreamsFollowers -} - -// GetActivityStreamsFollowing returns the "following" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsFollowing() vocab.ActivityStreamsFollowingProperty { - return this.ActivityStreamsFollowing -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInbox returns the "inbox" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsInbox() vocab.ActivityStreamsInboxProperty { - return this.ActivityStreamsInbox -} - -// GetActivityStreamsLiked returns the "liked" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsLiked() vocab.ActivityStreamsLikedProperty { - return this.ActivityStreamsLiked -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsManuallyApprovesFollowers returns the -// "manuallyApprovesFollowers" property if it exists, and nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsManuallyApprovesFollowers() vocab.ActivityStreamsManuallyApprovesFollowersProperty { - return this.ActivityStreamsManuallyApprovesFollowers -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOutbox returns the "outbox" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsOutbox() vocab.ActivityStreamsOutboxProperty { - return this.ActivityStreamsOutbox -} - -// GetActivityStreamsPreferredUsername returns the "preferredUsername" property if -// it exists, and nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsPreferredUsername() vocab.ActivityStreamsPreferredUsernameProperty { - return this.ActivityStreamsPreferredUsername -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsStreams returns the "streams" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsStreams() vocab.ActivityStreamsStreamsProperty { - return this.ActivityStreamsStreams -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsPerson) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsPerson) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsPerson) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsPerson) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsPerson) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTootDiscoverable returns the "discoverable" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPerson) GetTootDiscoverable() vocab.TootDiscoverableProperty { - return this.TootDiscoverable -} - -// GetTootFeatured returns the "featured" property if it exists, and nil otherwise. -func (this ActivityStreamsPerson) GetTootFeatured() vocab.TootFeaturedProperty { - return this.TootFeatured -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsPerson) GetTypeName() string { - return "Person" -} - -// GetUnknownProperties returns the unknown properties for the Person type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsPerson) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// GetW3IDSecurityV1PublicKey returns the "publicKey" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPerson) GetW3IDSecurityV1PublicKey() vocab.W3IDSecurityV1PublicKeyProperty { - return this.W3IDSecurityV1PublicKey -} - -// IsExtending returns true if the Person type extends from the other type. -func (this ActivityStreamsPerson) IsExtending(other vocab.Type) bool { - return ActivityStreamsPersonExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsPerson) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.TootDiscoverable, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.TootFeatured, m) - m = this.helperJSONLDContext(this.ActivityStreamsFollowers, m) - m = this.helperJSONLDContext(this.ActivityStreamsFollowing, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInbox, m) - m = this.helperJSONLDContext(this.ActivityStreamsLiked, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOutbox, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreferredUsername, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKey, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsStreams, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Person is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsPerson) LessThan(o vocab.ActivityStreamsPerson) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "discoverable" - if lhs, rhs := this.TootDiscoverable, o.GetTootDiscoverable(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "featured" - if lhs, rhs := this.TootFeatured, o.GetTootFeatured(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "followers" - if lhs, rhs := this.ActivityStreamsFollowers, o.GetActivityStreamsFollowers(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "following" - if lhs, rhs := this.ActivityStreamsFollowing, o.GetActivityStreamsFollowing(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inbox" - if lhs, rhs := this.ActivityStreamsInbox, o.GetActivityStreamsInbox(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "liked" - if lhs, rhs := this.ActivityStreamsLiked, o.GetActivityStreamsLiked(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "manuallyApprovesFollowers" - if lhs, rhs := this.ActivityStreamsManuallyApprovesFollowers, o.GetActivityStreamsManuallyApprovesFollowers(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "outbox" - if lhs, rhs := this.ActivityStreamsOutbox, o.GetActivityStreamsOutbox(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preferredUsername" - if lhs, rhs := this.ActivityStreamsPreferredUsername, o.GetActivityStreamsPreferredUsername(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "publicKey" - if lhs, rhs := this.W3IDSecurityV1PublicKey, o.GetW3IDSecurityV1PublicKey(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "streams" - if lhs, rhs := this.ActivityStreamsStreams, o.GetActivityStreamsStreams(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsPerson) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Person" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Person" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "discoverable" - if this.TootDiscoverable != nil { - if i, err := this.TootDiscoverable.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootDiscoverable.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "featured" - if this.TootFeatured != nil { - if i, err := this.TootFeatured.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootFeatured.Name()] = i - } - } - // Maybe serialize property "followers" - if this.ActivityStreamsFollowers != nil { - if i, err := this.ActivityStreamsFollowers.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsFollowers.Name()] = i - } - } - // Maybe serialize property "following" - if this.ActivityStreamsFollowing != nil { - if i, err := this.ActivityStreamsFollowing.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsFollowing.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "inbox" - if this.ActivityStreamsInbox != nil { - if i, err := this.ActivityStreamsInbox.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInbox.Name()] = i - } - } - // Maybe serialize property "liked" - if this.ActivityStreamsLiked != nil { - if i, err := this.ActivityStreamsLiked.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLiked.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "manuallyApprovesFollowers" - if this.ActivityStreamsManuallyApprovesFollowers != nil { - if i, err := this.ActivityStreamsManuallyApprovesFollowers.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsManuallyApprovesFollowers.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "outbox" - if this.ActivityStreamsOutbox != nil { - if i, err := this.ActivityStreamsOutbox.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOutbox.Name()] = i - } - } - // Maybe serialize property "preferredUsername" - if this.ActivityStreamsPreferredUsername != nil { - if i, err := this.ActivityStreamsPreferredUsername.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreferredUsername.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "publicKey" - if this.W3IDSecurityV1PublicKey != nil { - if i, err := this.W3IDSecurityV1PublicKey.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.W3IDSecurityV1PublicKey.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "streams" - if this.ActivityStreamsStreams != nil { - if i, err := this.ActivityStreamsStreams.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStreams.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsPerson) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsPerson) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsPerson) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsPerson) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsPerson) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsPerson) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsPerson) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsPerson) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsPerson) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsPerson) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsPerson) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsFollowers sets the "followers" property. -func (this *ActivityStreamsPerson) SetActivityStreamsFollowers(i vocab.ActivityStreamsFollowersProperty) { - this.ActivityStreamsFollowers = i -} - -// SetActivityStreamsFollowing sets the "following" property. -func (this *ActivityStreamsPerson) SetActivityStreamsFollowing(i vocab.ActivityStreamsFollowingProperty) { - this.ActivityStreamsFollowing = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsPerson) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsPerson) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsPerson) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsPerson) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInbox sets the "inbox" property. -func (this *ActivityStreamsPerson) SetActivityStreamsInbox(i vocab.ActivityStreamsInboxProperty) { - this.ActivityStreamsInbox = i -} - -// SetActivityStreamsLiked sets the "liked" property. -func (this *ActivityStreamsPerson) SetActivityStreamsLiked(i vocab.ActivityStreamsLikedProperty) { - this.ActivityStreamsLiked = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsPerson) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsPerson) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsManuallyApprovesFollowers sets the -// "manuallyApprovesFollowers" property. -func (this *ActivityStreamsPerson) SetActivityStreamsManuallyApprovesFollowers(i vocab.ActivityStreamsManuallyApprovesFollowersProperty) { - this.ActivityStreamsManuallyApprovesFollowers = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsPerson) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsPerson) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsPerson) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOutbox sets the "outbox" property. -func (this *ActivityStreamsPerson) SetActivityStreamsOutbox(i vocab.ActivityStreamsOutboxProperty) { - this.ActivityStreamsOutbox = i -} - -// SetActivityStreamsPreferredUsername sets the "preferredUsername" property. -func (this *ActivityStreamsPerson) SetActivityStreamsPreferredUsername(i vocab.ActivityStreamsPreferredUsernameProperty) { - this.ActivityStreamsPreferredUsername = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsPerson) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsPerson) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsPerson) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsPerson) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsPerson) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsPerson) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsStreams sets the "streams" property. -func (this *ActivityStreamsPerson) SetActivityStreamsStreams(i vocab.ActivityStreamsStreamsProperty) { - this.ActivityStreamsStreams = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsPerson) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsPerson) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsPerson) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsPerson) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsPerson) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsPerson) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsPerson) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsPerson) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsPerson) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsPerson) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// SetTootDiscoverable sets the "discoverable" property. -func (this *ActivityStreamsPerson) SetTootDiscoverable(i vocab.TootDiscoverableProperty) { - this.TootDiscoverable = i -} - -// SetTootFeatured sets the "featured" property. -func (this *ActivityStreamsPerson) SetTootFeatured(i vocab.TootFeaturedProperty) { - this.TootFeatured = i -} - -// SetW3IDSecurityV1PublicKey sets the "publicKey" property. -func (this *ActivityStreamsPerson) SetW3IDSecurityV1PublicKey(i vocab.W3IDSecurityV1PublicKeyProperty) { - this.W3IDSecurityV1PublicKey = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsPerson) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsPerson) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_place/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_place/gen_doc.go deleted file mode 100644 index 5eaff6eca..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_place/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeplace contains the implementation for the Place type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeplace diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_place/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_place/gen_pkg.go deleted file mode 100644 index d8a52e2cc..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_place/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeplace - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAccuracyPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAccuracyProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAccuracyPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccuracyProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLatitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLatitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLatitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLatitudeProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeLongitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLongitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLongitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLongitudeProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRadiusPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRadiusProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRadiusPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRadiusProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUnitsPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUnitsProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUnitsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUnitsProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go deleted file mode 100644 index 6097eefc0..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go +++ /dev/null @@ -1,1950 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeplace - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents a logical or physical location. See 5.3 Representing Places for -// additional information. -// -// Example 56 (https://www.w3.org/TR/activitystreams-vocabulary/#ex57-jsonld): -// { -// "name": "Work", -// "type": "Place" -// } -// -// Example 57 (https://www.w3.org/TR/activitystreams-vocabulary/#ex58-jsonld): -// { -// "latitude": 36.75, -// "longitude": 119.7667, -// "name": "Fresno Area", -// "radius": 15, -// "type": "Place", -// "units": "miles" -// } -type ActivityStreamsPlace struct { - ActivityStreamsAccuracy vocab.ActivityStreamsAccuracyProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLatitude vocab.ActivityStreamsLatitudeProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsLongitude vocab.ActivityStreamsLongitudeProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsRadius vocab.ActivityStreamsRadiusProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUnits vocab.ActivityStreamsUnitsProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsPlaceExtends returns true if the Place type extends from the -// other type. -func ActivityStreamsPlaceExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializePlace creates a Place from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializePlace(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsPlace, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsPlace{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Place" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Place", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Place" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Place") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAccuracyPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAccuracy = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLatitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLatitude = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeLongitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLongitude = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRadiusPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsRadius = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUnitsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUnits = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "accuracy" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "latitude" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "longitude" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "radius" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "units" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsPlace returns true if the other provided type is the Place type or -// extends from the Place type. -func IsOrExtendsPlace(other vocab.Type) bool { - if other.GetTypeName() == "Place" { - return true - } - return PlaceIsExtendedBy(other) -} - -// NewActivityStreamsPlace creates a new Place type -func NewActivityStreamsPlace() *ActivityStreamsPlace { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Place") - return &ActivityStreamsPlace{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// PlaceIsDisjointWith returns true if the other provided type is disjoint with -// the Place type. -func PlaceIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// PlaceIsExtendedBy returns true if the other provided type extends from the -// Place type. Note that it returns false if the types are the same; see the -// "IsOrExtendsPlace" variant instead. -func PlaceIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsAccuracy returns the "accuracy" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsAccuracy() vocab.ActivityStreamsAccuracyProperty { - return this.ActivityStreamsAccuracy -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLatitude returns the "latitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsLatitude() vocab.ActivityStreamsLatitudeProperty { - return this.ActivityStreamsLatitude -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsLongitude returns the "longitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsLongitude() vocab.ActivityStreamsLongitudeProperty { - return this.ActivityStreamsLongitude -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsRadius returns the "radius" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsRadius() vocab.ActivityStreamsRadiusProperty { - return this.ActivityStreamsRadius -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUnits returns the "units" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsUnits() vocab.ActivityStreamsUnitsProperty { - return this.ActivityStreamsUnits -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsPlace) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsPlace) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsPlace) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsPlace) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsPlace) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsPlace) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsPlace) GetTypeName() string { - return "Place" -} - -// GetUnknownProperties returns the unknown properties for the Place type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsPlace) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Place type extends from the other type. -func (this ActivityStreamsPlace) IsExtending(other vocab.Type) bool { - return ActivityStreamsPlaceExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsPlace) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAccuracy, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLatitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsLongitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsRadius, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUnits, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Place is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsPlace) LessThan(o vocab.ActivityStreamsPlace) bool { - // Begin: Compare known properties - // Compare property "accuracy" - if lhs, rhs := this.ActivityStreamsAccuracy, o.GetActivityStreamsAccuracy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "latitude" - if lhs, rhs := this.ActivityStreamsLatitude, o.GetActivityStreamsLatitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "longitude" - if lhs, rhs := this.ActivityStreamsLongitude, o.GetActivityStreamsLongitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "radius" - if lhs, rhs := this.ActivityStreamsRadius, o.GetActivityStreamsRadius(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "units" - if lhs, rhs := this.ActivityStreamsUnits, o.GetActivityStreamsUnits(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsPlace) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Place" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Place" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "accuracy" - if this.ActivityStreamsAccuracy != nil { - if i, err := this.ActivityStreamsAccuracy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAccuracy.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "latitude" - if this.ActivityStreamsLatitude != nil { - if i, err := this.ActivityStreamsLatitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLatitude.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "longitude" - if this.ActivityStreamsLongitude != nil { - if i, err := this.ActivityStreamsLongitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLongitude.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "radius" - if this.ActivityStreamsRadius != nil { - if i, err := this.ActivityStreamsRadius.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsRadius.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "units" - if this.ActivityStreamsUnits != nil { - if i, err := this.ActivityStreamsUnits.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUnits.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAccuracy sets the "accuracy" property. -func (this *ActivityStreamsPlace) SetActivityStreamsAccuracy(i vocab.ActivityStreamsAccuracyProperty) { - this.ActivityStreamsAccuracy = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsPlace) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsPlace) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsPlace) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsPlace) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsPlace) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsPlace) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsPlace) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsPlace) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsPlace) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsPlace) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsPlace) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsPlace) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsPlace) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsPlace) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsPlace) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLatitude sets the "latitude" property. -func (this *ActivityStreamsPlace) SetActivityStreamsLatitude(i vocab.ActivityStreamsLatitudeProperty) { - this.ActivityStreamsLatitude = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsPlace) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsPlace) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsLongitude sets the "longitude" property. -func (this *ActivityStreamsPlace) SetActivityStreamsLongitude(i vocab.ActivityStreamsLongitudeProperty) { - this.ActivityStreamsLongitude = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsPlace) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsPlace) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsPlace) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsPlace) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsPlace) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsRadius sets the "radius" property. -func (this *ActivityStreamsPlace) SetActivityStreamsRadius(i vocab.ActivityStreamsRadiusProperty) { - this.ActivityStreamsRadius = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsPlace) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsPlace) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsPlace) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsPlace) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsPlace) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsPlace) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsPlace) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUnits sets the "units" property. -func (this *ActivityStreamsPlace) SetActivityStreamsUnits(i vocab.ActivityStreamsUnitsProperty) { - this.ActivityStreamsUnits = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsPlace) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsPlace) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsPlace) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsPlace) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsPlace) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsPlace) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsPlace) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsPlace) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsPlace) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_profile/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_profile/gen_doc.go deleted file mode 100644 index 7193cc46a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_profile/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeprofile contains the implementation for the Profile type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeprofile diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_profile/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_profile/gen_pkg.go deleted file mode 100644 index 10d39ecdf..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_profile/gen_pkg.go +++ /dev/null @@ -1,191 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeprofile - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDescribesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDescribesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDescribesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDescribesProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go deleted file mode 100644 index e97304bc0..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go +++ /dev/null @@ -1,1777 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeprofile - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// A Profile is a content object that describes another Object, typically used to -// describe Actor Type objects. The describes property is used to reference -// the object being described by the profile. -// -// Example 59 (https://www.w3.org/TR/activitystreams-vocabulary/#ex184a-jsonld): -// { -// "describes": { -// "name": "Sally Smith", -// "type": "Person" -// }, -// "summary": "Sally's Profile", -// "type": "Profile" -// } -type ActivityStreamsProfile struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDescribes vocab.ActivityStreamsDescribesProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsProfileExtends returns true if the Profile type extends from the -// other type. -func ActivityStreamsProfileExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeProfile creates a Profile from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeProfile(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsProfile, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsProfile{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Profile" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Profile", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Profile" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Profile") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDescribesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDescribes = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "describes" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsProfile returns true if the other provided type is the Profile type -// or extends from the Profile type. -func IsOrExtendsProfile(other vocab.Type) bool { - if other.GetTypeName() == "Profile" { - return true - } - return ProfileIsExtendedBy(other) -} - -// NewActivityStreamsProfile creates a new Profile type -func NewActivityStreamsProfile() *ActivityStreamsProfile { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Profile") - return &ActivityStreamsProfile{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// ProfileIsDisjointWith returns true if the other provided type is disjoint with -// the Profile type. -func ProfileIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// ProfileIsExtendedBy returns true if the other provided type extends from the -// Profile type. Note that it returns false if the types are the same; see the -// "IsOrExtendsProfile" variant instead. -func ProfileIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDescribes returns the "describes" property if it exists, and -// nil otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsDescribes() vocab.ActivityStreamsDescribesProperty { - return this.ActivityStreamsDescribes -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsProfile) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsProfile) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsProfile) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsProfile) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsProfile) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsProfile) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsProfile) GetTypeName() string { - return "Profile" -} - -// GetUnknownProperties returns the unknown properties for the Profile type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsProfile) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Profile type extends from the other type. -func (this ActivityStreamsProfile) IsExtending(other vocab.Type) bool { - return ActivityStreamsProfileExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsProfile) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDescribes, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Profile is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsProfile) LessThan(o vocab.ActivityStreamsProfile) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "describes" - if lhs, rhs := this.ActivityStreamsDescribes, o.GetActivityStreamsDescribes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsProfile) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Profile" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Profile" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "describes" - if this.ActivityStreamsDescribes != nil { - if i, err := this.ActivityStreamsDescribes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDescribes.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsProfile) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsProfile) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsProfile) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsProfile) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsProfile) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsProfile) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsProfile) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsProfile) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsProfile) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDescribes sets the "describes" property. -func (this *ActivityStreamsProfile) SetActivityStreamsDescribes(i vocab.ActivityStreamsDescribesProperty) { - this.ActivityStreamsDescribes = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsProfile) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsProfile) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsProfile) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsProfile) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsProfile) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsProfile) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsProfile) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsProfile) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsProfile) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsProfile) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsProfile) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsProfile) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsProfile) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsProfile) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsProfile) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsProfile) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsProfile) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsProfile) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsProfile) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsProfile) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsProfile) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsProfile) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsProfile) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsProfile) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsProfile) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsProfile) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsProfile) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsProfile) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsProfile) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_question/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_question/gen_doc.go deleted file mode 100644 index 14eb8a236..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_question/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typequestion contains the implementation for the Question type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typequestion diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_question/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_question/gen_pkg.go deleted file mode 100644 index ba6d5c845..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_question/gen_pkg.go +++ /dev/null @@ -1,219 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typequestion - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAnyOfPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAnyOfProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAnyOfPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnyOfProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeClosedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsClosedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeClosedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsClosedProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeOneOfPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOneOfProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOneOfPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOneOfProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) - // DeserializeVotersCountPropertyToot returns the deserialization method - // for the "TootVotersCountProperty" non-functional property in the - // vocabulary "Toot" - DeserializeVotersCountPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootVotersCountProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go deleted file mode 100644 index ce697f023..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go +++ /dev/null @@ -1,2087 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typequestion - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents a question being asked. Question objects are an extension of -// IntransitiveActivity. That is, the Question object is an Activity, but the -// direct object is the question itself and therefore it would not contain an -// object property. Either of the anyOf and oneOf properties MAY be used to -// express possible answers, but a Question object MUST NOT have both -// properties. -// -// Example 40 (https://www.w3.org/TR/activitystreams-vocabulary/#ex55a-jsonld): -// { -// "name": "What is the answer?", -// "oneOf": [ -// { -// "name": "Option A", -// "type": "Note" -// }, -// { -// "name": "Option B", -// "type": "Note" -// } -// ], -// "type": "Question" -// } -// -// Example 41 (https://www.w3.org/TR/activitystreams-vocabulary/#ex55b-jsonld): -// { -// "closed": "2016-05-10T00:00:00Z", -// "name": "What is the answer?", -// "type": "Question" -// } -type ActivityStreamsQuestion struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAnyOf vocab.ActivityStreamsAnyOfProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsClosed vocab.ActivityStreamsClosedProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsOneOf vocab.ActivityStreamsOneOfProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - TootVotersCount vocab.TootVotersCountProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsQuestionExtends returns true if the Question type extends from -// the other type. -func ActivityStreamsQuestionExtends(other vocab.Type) bool { - extensions := []string{"Activity", "IntransitiveActivity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeQuestion creates a Question from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeQuestion(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsQuestion, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsQuestion{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Question" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Question", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Question" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Question") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAnyOfPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAnyOf = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeClosedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsClosed = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeOneOfPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOneOf = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - if p, err := mgr.DeserializeVotersCountPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootVotersCount = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "anyOf" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "closed" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "oneOf" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } else if k == "votersCount" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsQuestion returns true if the other provided type is the Question -// type or extends from the Question type. -func IsOrExtendsQuestion(other vocab.Type) bool { - if other.GetTypeName() == "Question" { - return true - } - return QuestionIsExtendedBy(other) -} - -// NewActivityStreamsQuestion creates a new Question type -func NewActivityStreamsQuestion() *ActivityStreamsQuestion { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Question") - return &ActivityStreamsQuestion{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// QuestionIsDisjointWith returns true if the other provided type is disjoint with -// the Question type. -func QuestionIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// QuestionIsExtendedBy returns true if the other provided type extends from the -// Question type. Note that it returns false if the types are the same; see -// the "IsOrExtendsQuestion" variant instead. -func QuestionIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAnyOf returns the "anyOf" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsAnyOf() vocab.ActivityStreamsAnyOfProperty { - return this.ActivityStreamsAnyOf -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsClosed returns the "closed" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsClosed() vocab.ActivityStreamsClosedProperty { - return this.ActivityStreamsClosed -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsOneOf returns the "oneOf" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsOneOf() vocab.ActivityStreamsOneOfProperty { - return this.ActivityStreamsOneOf -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsQuestion) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsQuestion) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsQuestion) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsQuestion) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsQuestion) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTootVotersCount returns the "votersCount" property if it exists, and nil -// otherwise. -func (this ActivityStreamsQuestion) GetTootVotersCount() vocab.TootVotersCountProperty { - return this.TootVotersCount -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsQuestion) GetTypeName() string { - return "Question" -} - -// GetUnknownProperties returns the unknown properties for the Question type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsQuestion) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Question type extends from the other type. -func (this ActivityStreamsQuestion) IsExtending(other vocab.Type) bool { - return ActivityStreamsQuestionExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsQuestion) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAnyOf, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsClosed, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsOneOf, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - m = this.helperJSONLDContext(this.TootVotersCount, m) - - return m -} - -// LessThan computes if this Question is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsQuestion) LessThan(o vocab.ActivityStreamsQuestion) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "anyOf" - if lhs, rhs := this.ActivityStreamsAnyOf, o.GetActivityStreamsAnyOf(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "closed" - if lhs, rhs := this.ActivityStreamsClosed, o.GetActivityStreamsClosed(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "oneOf" - if lhs, rhs := this.ActivityStreamsOneOf, o.GetActivityStreamsOneOf(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "votersCount" - if lhs, rhs := this.TootVotersCount, o.GetTootVotersCount(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsQuestion) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Question" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Question" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "anyOf" - if this.ActivityStreamsAnyOf != nil { - if i, err := this.ActivityStreamsAnyOf.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAnyOf.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "closed" - if this.ActivityStreamsClosed != nil { - if i, err := this.ActivityStreamsClosed.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsClosed.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "oneOf" - if this.ActivityStreamsOneOf != nil { - if i, err := this.ActivityStreamsOneOf.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOneOf.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // Maybe serialize property "votersCount" - if this.TootVotersCount != nil { - if i, err := this.TootVotersCount.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootVotersCount.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAnyOf sets the "anyOf" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsAnyOf(i vocab.ActivityStreamsAnyOfProperty) { - this.ActivityStreamsAnyOf = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsClosed sets the "closed" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsClosed(i vocab.ActivityStreamsClosedProperty) { - this.ActivityStreamsClosed = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsOneOf sets the "oneOf" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsOneOf(i vocab.ActivityStreamsOneOfProperty) { - this.ActivityStreamsOneOf = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsQuestion) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsQuestion) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsQuestion) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsQuestion) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsQuestion) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsQuestion) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// SetTootVotersCount sets the "votersCount" property. -func (this *ActivityStreamsQuestion) SetTootVotersCount(i vocab.TootVotersCountProperty) { - this.TootVotersCount = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsQuestion) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsQuestion) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_read/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_read/gen_doc.go deleted file mode 100644 index cb52b3047..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_read/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeread contains the implementation for the Read type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeread diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_read/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_read/gen_pkg.go deleted file mode 100644 index d40fceeb1..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_read/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeread - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go deleted file mode 100644 index 1798c11b0..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_read/gen_type_activitystreams_read.go +++ /dev/null @@ -1,1944 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeread - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor has read the object. -// -// Example 33 (https://www.w3.org/TR/activitystreams-vocabulary/#ex164-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/posts/1", -// "summary": "Sally read a blog post", -// "type": "Read" -// } -type ActivityStreamsRead struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsReadExtends returns true if the Read type extends from the other -// type. -func ActivityStreamsReadExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeRead creates a Read from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeRead(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsRead, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsRead{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Read" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Read", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Read" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Read") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsRead returns true if the other provided type is the Read type or -// extends from the Read type. -func IsOrExtendsRead(other vocab.Type) bool { - if other.GetTypeName() == "Read" { - return true - } - return ReadIsExtendedBy(other) -} - -// NewActivityStreamsRead creates a new Read type -func NewActivityStreamsRead() *ActivityStreamsRead { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Read") - return &ActivityStreamsRead{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// ReadIsDisjointWith returns true if the other provided type is disjoint with the -// Read type. -func ReadIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// ReadIsExtendedBy returns true if the other provided type extends from the Read -// type. Note that it returns false if the types are the same; see the -// "IsOrExtendsRead" variant instead. -func ReadIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRead) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsRead) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsRead) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRead) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsRead) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRead) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRead) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRead) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsRead) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRead) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRead) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRead) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRead) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsRead) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRead) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsRead) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsRead) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsRead) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsRead) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsRead) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsRead) GetTypeName() string { - return "Read" -} - -// GetUnknownProperties returns the unknown properties for the Read type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsRead) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Read type extends from the other type. -func (this ActivityStreamsRead) IsExtending(other vocab.Type) bool { - return ActivityStreamsReadExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsRead) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Read is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsRead) LessThan(o vocab.ActivityStreamsRead) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsRead) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Read" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Read" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsRead) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsRead) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsRead) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsRead) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsRead) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsRead) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsRead) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsRead) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsRead) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsRead) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsRead) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsRead) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsRead) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsRead) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsRead) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsRead) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsRead) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsRead) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsRead) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsRead) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsRead) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsRead) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsRead) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsRead) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsRead) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsRead) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsRead) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsRead) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsRead) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsRead) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsRead) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsRead) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsRead) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsRead) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsRead) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsRead) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsRead) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsRead) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsRead) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsRead) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsRead) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsRead) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsRead) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_reject/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_reject/gen_doc.go deleted file mode 100644 index 4abce491a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_reject/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typereject contains the implementation for the Reject type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typereject diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_reject/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_reject/gen_pkg.go deleted file mode 100644 index ac028f01b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_reject/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typereject - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go deleted file mode 100644 index 6e91d0a81..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_reject/gen_type_activitystreams_reject.go +++ /dev/null @@ -1,1957 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typereject - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor is rejecting the object. The target and origin -// typically have no defined meaning. -// -// Example 25 (https://www.w3.org/TR/activitystreams-vocabulary/#ex26-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "actor": "http://john.example.org", -// "object": { -// "name": "Going-Away Party for Jim", -// "type": "Event" -// }, -// "type": "Invite" -// }, -// "summary": "Sally rejected an invitation to a party", -// "type": "Reject" -// } -type ActivityStreamsReject struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsRejectExtends returns true if the Reject type extends from the -// other type. -func ActivityStreamsRejectExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeReject creates a Reject from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeReject(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsReject, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsReject{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Reject" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Reject", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Reject" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Reject") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsReject returns true if the other provided type is the Reject type or -// extends from the Reject type. -func IsOrExtendsReject(other vocab.Type) bool { - if other.GetTypeName() == "Reject" { - return true - } - return RejectIsExtendedBy(other) -} - -// NewActivityStreamsReject creates a new Reject type -func NewActivityStreamsReject() *ActivityStreamsReject { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Reject") - return &ActivityStreamsReject{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// RejectIsDisjointWith returns true if the other provided type is disjoint with -// the Reject type. -func RejectIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// RejectIsExtendedBy returns true if the other provided type extends from the -// Reject type. Note that it returns false if the types are the same; see the -// "IsOrExtendsReject" variant instead. -func RejectIsExtendedBy(other vocab.Type) bool { - extensions := []string{"TentativeReject"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsReject) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsReject) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsReject) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsReject) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsReject) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsReject) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsReject) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsReject) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsReject) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsReject) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsReject) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsReject) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsReject) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsReject) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsReject) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsReject) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsReject) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsReject) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsReject) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsReject) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsReject) GetTypeName() string { - return "Reject" -} - -// GetUnknownProperties returns the unknown properties for the Reject type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsReject) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Reject type extends from the other type. -func (this ActivityStreamsReject) IsExtending(other vocab.Type) bool { - return ActivityStreamsRejectExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsReject) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Reject is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsReject) LessThan(o vocab.ActivityStreamsReject) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsReject) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Reject" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Reject" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsReject) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsReject) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsReject) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsReject) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsReject) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsReject) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsReject) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsReject) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsReject) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsReject) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsReject) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsReject) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsReject) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsReject) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsReject) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsReject) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsReject) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsReject) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsReject) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsReject) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsReject) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsReject) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsReject) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsReject) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsReject) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsReject) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsReject) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsReject) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsReject) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsReject) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsReject) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsReject) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsReject) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsReject) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsReject) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsReject) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsReject) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsReject) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsReject) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsReject) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsReject) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsReject) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsReject) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_relationship/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_relationship/gen_doc.go deleted file mode 100644 index 0f685e305..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_relationship/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typerelationship contains the implementation for the Relationship type. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typerelationship diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go deleted file mode 100644 index de79ecc92..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_relationship/gen_pkg.go +++ /dev/null @@ -1,196 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typerelationship - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRelationshipPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsRelationshipProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeRelationshipPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationshipProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSubjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSubjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSubjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSubjectProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go deleted file mode 100644 index b70696799..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_relationship/gen_type_activitystreams_relationship.go +++ /dev/null @@ -1,1829 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typerelationship - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Describes a relationship between two individuals. The subject and object -// properties are used to identify the connected individuals. See 5.2 -// Representing Relationships Between Entities for additional information. -// -// Example 47 (https://www.w3.org/TR/activitystreams-vocabulary/#ex22-jsonld): -// { -// "object": { -// "name": "John", -// "type": "Person" -// }, -// "relationship": "http://purl.org/vocab/relationship/acquaintanceOf", -// "subject": { -// "name": "Sally", -// "type": "Person" -// }, -// "summary": "Sally is an acquaintance of John", -// "type": "Relationship" -// } -type ActivityStreamsRelationship struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsRelationship vocab.ActivityStreamsRelationshipProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSubject vocab.ActivityStreamsSubjectProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsRelationshipExtends returns true if the Relationship type -// extends from the other type. -func ActivityStreamsRelationshipExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeRelationship creates a Relationship from a map representation that -// has been unmarshalled from a text or binary format. -func DeserializeRelationship(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsRelationship, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsRelationship{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Relationship" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Relationship", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Relationship" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Relationship") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRelationshipPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsRelationship = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSubjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSubject = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "relationship" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "subject" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsRelationship returns true if the other provided type is the -// Relationship type or extends from the Relationship type. -func IsOrExtendsRelationship(other vocab.Type) bool { - if other.GetTypeName() == "Relationship" { - return true - } - return RelationshipIsExtendedBy(other) -} - -// NewActivityStreamsRelationship creates a new Relationship type -func NewActivityStreamsRelationship() *ActivityStreamsRelationship { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Relationship") - return &ActivityStreamsRelationship{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// RelationshipIsDisjointWith returns true if the other provided type is disjoint -// with the Relationship type. -func RelationshipIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// RelationshipIsExtendedBy returns true if the other provided type extends from -// the Relationship type. Note that it returns false if the types are the -// same; see the "IsOrExtendsRelationship" variant instead. -func RelationshipIsExtendedBy(other vocab.Type) bool { - extensions := []string{"TicketDependency"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsRelationship returns the "relationship" property if it -// exists, and nil otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationshipProperty { - return this.ActivityStreamsRelationship -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSubject returns the "subject" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsSubject() vocab.ActivityStreamsSubjectProperty { - return this.ActivityStreamsSubject -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRelationship) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsRelationship) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsRelationship) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsRelationship) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsRelationship) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsRelationship) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsRelationship) GetTypeName() string { - return "Relationship" -} - -// GetUnknownProperties returns the unknown properties for the Relationship type. -// Note that this should not be used by app developers. It is only used to -// help determine which implementation is LessThan the other. Developers who -// are creating a different implementation of this type's interface can use -// this method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsRelationship) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Relationship type extends from the other type. -func (this ActivityStreamsRelationship) IsExtending(other vocab.Type) bool { - return ActivityStreamsRelationshipExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsRelationship) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsRelationship, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSubject, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Relationship is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsRelationship) LessThan(o vocab.ActivityStreamsRelationship) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "relationship" - if lhs, rhs := this.ActivityStreamsRelationship, o.GetActivityStreamsRelationship(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "subject" - if lhs, rhs := this.ActivityStreamsSubject, o.GetActivityStreamsSubject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsRelationship) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Relationship" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Relationship" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "relationship" - if this.ActivityStreamsRelationship != nil { - if i, err := this.ActivityStreamsRelationship.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsRelationship.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "subject" - if this.ActivityStreamsSubject != nil { - if i, err := this.ActivityStreamsSubject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSubject.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsRelationship sets the "relationship" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsRelationship(i vocab.ActivityStreamsRelationshipProperty) { - this.ActivityStreamsRelationship = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSubject sets the "subject" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsSubject(i vocab.ActivityStreamsSubjectProperty) { - this.ActivityStreamsSubject = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsRelationship) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsRelationship) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsRelationship) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsRelationship) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsRelationship) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsRelationship) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsRelationship) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsRelationship) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_remove/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_remove/gen_doc.go deleted file mode 100644 index d409311f3..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_remove/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeremove contains the implementation for the Remove type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeremove diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_remove/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_remove/gen_pkg.go deleted file mode 100644 index db9bfc61a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_remove/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeremove - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go deleted file mode 100644 index cb9733345..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_remove/gen_type_activitystreams_remove.go +++ /dev/null @@ -1,1967 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeremove - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor is removing the object. If specified, the origin -// indicates the context from which the object is being removed. -// -// Example 27 (https://www.w3.org/TR/activitystreams-vocabulary/#ex28-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/notes/1", -// "summary": "Sally removed a note from her notes folder", -// "target": { -// "name": "Notes Folder", -// "type": "Collection" -// }, -// "type": "Remove" -// } -// -// Example 28 (https://www.w3.org/TR/activitystreams-vocabulary/#ex29-jsonld): -// { -// "actor": { -// "name": "The Moderator", -// "type": "http://example.org/Role" -// }, -// "object": { -// "name": "Sally", -// "type": "Person" -// }, -// "origin": { -// "name": "A Simple Group", -// "type": "Group" -// }, -// "summary": "The moderator removed Sally from a group", -// "type": "Remove" -// } -type ActivityStreamsRemove struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsRemoveExtends returns true if the Remove type extends from the -// other type. -func ActivityStreamsRemoveExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeRemove creates a Remove from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeRemove(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsRemove, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsRemove{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Remove" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Remove", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Remove" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Remove") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsRemove returns true if the other provided type is the Remove type or -// extends from the Remove type. -func IsOrExtendsRemove(other vocab.Type) bool { - if other.GetTypeName() == "Remove" { - return true - } - return RemoveIsExtendedBy(other) -} - -// NewActivityStreamsRemove creates a new Remove type -func NewActivityStreamsRemove() *ActivityStreamsRemove { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Remove") - return &ActivityStreamsRemove{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// RemoveIsDisjointWith returns true if the other provided type is disjoint with -// the Remove type. -func RemoveIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// RemoveIsExtendedBy returns true if the other provided type extends from the -// Remove type. Note that it returns false if the types are the same; see the -// "IsOrExtendsRemove" variant instead. -func RemoveIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsRemove) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsRemove) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsRemove) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsRemove) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsRemove) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsRemove) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsRemove) GetTypeName() string { - return "Remove" -} - -// GetUnknownProperties returns the unknown properties for the Remove type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsRemove) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Remove type extends from the other type. -func (this ActivityStreamsRemove) IsExtending(other vocab.Type) bool { - return ActivityStreamsRemoveExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsRemove) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Remove is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsRemove) LessThan(o vocab.ActivityStreamsRemove) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsRemove) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Remove" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Remove" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsRemove) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsRemove) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsRemove) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsRemove) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsRemove) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsRemove) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsRemove) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsRemove) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsRemove) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsRemove) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsRemove) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsRemove) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsRemove) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsRemove) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsRemove) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsRemove) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsRemove) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsRemove) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsRemove) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsRemove) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsRemove) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsRemove) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsRemove) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsRemove) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsRemove) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsRemove) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsRemove) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsRemove) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsRemove) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsRemove) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsRemove) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsRemove) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsRemove) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsRemove) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsRemove) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsRemove) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsRemove) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsRemove) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsRemove) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsRemove) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsRemove) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsRemove) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsRemove) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_service/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_service/gen_doc.go deleted file mode 100644 index 6934f11e8..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_service/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeservice contains the implementation for the Service type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeservice diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_service/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_service/gen_pkg.go deleted file mode 100644 index 1e9d564e2..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_service/gen_pkg.go +++ /dev/null @@ -1,233 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeservice - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDiscoverablePropertyToot returns the deserialization method - // for the "TootDiscoverableProperty" non-functional property in the - // vocabulary "Toot" - DeserializeDiscoverablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootDiscoverableProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeFeaturedPropertyToot returns the deserialization method for - // the "TootFeaturedProperty" non-functional property in the - // vocabulary "Toot" - DeserializeFeaturedPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFeaturedProperty, error) - // DeserializeFollowersPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsFollowersProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowersProperty, error) - // DeserializeFollowingPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsFollowingProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeFollowingPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowingProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInboxPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInboxProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInboxProperty, error) - // DeserializeLikedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikedProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsManuallyApprovesFollowersProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeManuallyApprovesFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOutboxPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOutboxProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOutboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOutboxProperty, error) - // DeserializePreferredUsernamePropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsPreferredUsernameProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializePreferredUsernamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreferredUsernameProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublicKeyPropertyW3IDSecurityV1 returns the deserialization - // method for the "W3IDSecurityV1PublicKeyProperty" non-functional - // property in the vocabulary "W3IDSecurityV1" - DeserializePublicKeyPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKeyProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeStreamsPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStreamsProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStreamsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStreamsProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go deleted file mode 100644 index cc9382eb4..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go +++ /dev/null @@ -1,2193 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeservice - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents a service of any kind. -// -// Example 46 (https://www.w3.org/TR/activitystreams-vocabulary/#ex42-jsonld): -// { -// "name": "Acme Web Service", -// "type": "Service" -// } -type ActivityStreamsService struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - TootDiscoverable vocab.TootDiscoverableProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - TootFeatured vocab.TootFeaturedProperty - ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty - ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInbox vocab.ActivityStreamsInboxProperty - ActivityStreamsLiked vocab.ActivityStreamsLikedProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty - ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsServiceExtends returns true if the Service type extends from the -// other type. -func ActivityStreamsServiceExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeService creates a Service from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeService(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsService, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsService{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Service" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Service", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Service" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Service") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDiscoverablePropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootDiscoverable = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeFeaturedPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootFeatured = p - } - if p, err := mgr.DeserializeFollowersPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsFollowers = p - } - if p, err := mgr.DeserializeFollowingPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsFollowing = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInboxPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInbox = p - } - if p, err := mgr.DeserializeLikedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLiked = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeManuallyApprovesFollowersPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsManuallyApprovesFollowers = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOutboxPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOutbox = p - } - if p, err := mgr.DeserializePreferredUsernamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreferredUsername = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublicKeyPropertyW3IDSecurityV1()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.W3IDSecurityV1PublicKey = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeStreamsPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStreams = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "discoverable" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "featured" { - continue - } else if k == "followers" { - continue - } else if k == "following" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "inbox" { - continue - } else if k == "liked" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "manuallyApprovesFollowers" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "outbox" { - continue - } else if k == "preferredUsername" { - continue - } else if k == "preferredUsernameMap" { - continue - } else if k == "preview" { - continue - } else if k == "publicKey" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "streams" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsService returns true if the other provided type is the Service type -// or extends from the Service type. -func IsOrExtendsService(other vocab.Type) bool { - if other.GetTypeName() == "Service" { - return true - } - return ServiceIsExtendedBy(other) -} - -// NewActivityStreamsService creates a new Service type -func NewActivityStreamsService() *ActivityStreamsService { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Service") - return &ActivityStreamsService{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// ServiceIsDisjointWith returns true if the other provided type is disjoint with -// the Service type. -func ServiceIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// ServiceIsExtendedBy returns true if the other provided type extends from the -// Service type. Note that it returns false if the types are the same; see the -// "IsOrExtendsService" variant instead. -func ServiceIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsFollowers returns the "followers" property if it exists, and -// nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsFollowers() vocab.ActivityStreamsFollowersProperty { - return this.ActivityStreamsFollowers -} - -// GetActivityStreamsFollowing returns the "following" property if it exists, and -// nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsFollowing() vocab.ActivityStreamsFollowingProperty { - return this.ActivityStreamsFollowing -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInbox returns the "inbox" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsInbox() vocab.ActivityStreamsInboxProperty { - return this.ActivityStreamsInbox -} - -// GetActivityStreamsLiked returns the "liked" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsLiked() vocab.ActivityStreamsLikedProperty { - return this.ActivityStreamsLiked -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsManuallyApprovesFollowers returns the -// "manuallyApprovesFollowers" property if it exists, and nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsManuallyApprovesFollowers() vocab.ActivityStreamsManuallyApprovesFollowersProperty { - return this.ActivityStreamsManuallyApprovesFollowers -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOutbox returns the "outbox" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsOutbox() vocab.ActivityStreamsOutboxProperty { - return this.ActivityStreamsOutbox -} - -// GetActivityStreamsPreferredUsername returns the "preferredUsername" property if -// it exists, and nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsPreferredUsername() vocab.ActivityStreamsPreferredUsernameProperty { - return this.ActivityStreamsPreferredUsername -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsStreams returns the "streams" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsStreams() vocab.ActivityStreamsStreamsProperty { - return this.ActivityStreamsStreams -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsService) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsService) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsService) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsService) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsService) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsService) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTootDiscoverable returns the "discoverable" property if it exists, and nil -// otherwise. -func (this ActivityStreamsService) GetTootDiscoverable() vocab.TootDiscoverableProperty { - return this.TootDiscoverable -} - -// GetTootFeatured returns the "featured" property if it exists, and nil otherwise. -func (this ActivityStreamsService) GetTootFeatured() vocab.TootFeaturedProperty { - return this.TootFeatured -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsService) GetTypeName() string { - return "Service" -} - -// GetUnknownProperties returns the unknown properties for the Service type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsService) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// GetW3IDSecurityV1PublicKey returns the "publicKey" property if it exists, and -// nil otherwise. -func (this ActivityStreamsService) GetW3IDSecurityV1PublicKey() vocab.W3IDSecurityV1PublicKeyProperty { - return this.W3IDSecurityV1PublicKey -} - -// IsExtending returns true if the Service type extends from the other type. -func (this ActivityStreamsService) IsExtending(other vocab.Type) bool { - return ActivityStreamsServiceExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsService) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.TootDiscoverable, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.TootFeatured, m) - m = this.helperJSONLDContext(this.ActivityStreamsFollowers, m) - m = this.helperJSONLDContext(this.ActivityStreamsFollowing, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInbox, m) - m = this.helperJSONLDContext(this.ActivityStreamsLiked, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOutbox, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreferredUsername, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKey, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsStreams, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Service is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsService) LessThan(o vocab.ActivityStreamsService) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "discoverable" - if lhs, rhs := this.TootDiscoverable, o.GetTootDiscoverable(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "featured" - if lhs, rhs := this.TootFeatured, o.GetTootFeatured(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "followers" - if lhs, rhs := this.ActivityStreamsFollowers, o.GetActivityStreamsFollowers(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "following" - if lhs, rhs := this.ActivityStreamsFollowing, o.GetActivityStreamsFollowing(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inbox" - if lhs, rhs := this.ActivityStreamsInbox, o.GetActivityStreamsInbox(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "liked" - if lhs, rhs := this.ActivityStreamsLiked, o.GetActivityStreamsLiked(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "manuallyApprovesFollowers" - if lhs, rhs := this.ActivityStreamsManuallyApprovesFollowers, o.GetActivityStreamsManuallyApprovesFollowers(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "outbox" - if lhs, rhs := this.ActivityStreamsOutbox, o.GetActivityStreamsOutbox(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preferredUsername" - if lhs, rhs := this.ActivityStreamsPreferredUsername, o.GetActivityStreamsPreferredUsername(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "publicKey" - if lhs, rhs := this.W3IDSecurityV1PublicKey, o.GetW3IDSecurityV1PublicKey(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "streams" - if lhs, rhs := this.ActivityStreamsStreams, o.GetActivityStreamsStreams(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsService) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Service" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Service" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "discoverable" - if this.TootDiscoverable != nil { - if i, err := this.TootDiscoverable.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootDiscoverable.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "featured" - if this.TootFeatured != nil { - if i, err := this.TootFeatured.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootFeatured.Name()] = i - } - } - // Maybe serialize property "followers" - if this.ActivityStreamsFollowers != nil { - if i, err := this.ActivityStreamsFollowers.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsFollowers.Name()] = i - } - } - // Maybe serialize property "following" - if this.ActivityStreamsFollowing != nil { - if i, err := this.ActivityStreamsFollowing.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsFollowing.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "inbox" - if this.ActivityStreamsInbox != nil { - if i, err := this.ActivityStreamsInbox.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInbox.Name()] = i - } - } - // Maybe serialize property "liked" - if this.ActivityStreamsLiked != nil { - if i, err := this.ActivityStreamsLiked.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLiked.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "manuallyApprovesFollowers" - if this.ActivityStreamsManuallyApprovesFollowers != nil { - if i, err := this.ActivityStreamsManuallyApprovesFollowers.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsManuallyApprovesFollowers.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "outbox" - if this.ActivityStreamsOutbox != nil { - if i, err := this.ActivityStreamsOutbox.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOutbox.Name()] = i - } - } - // Maybe serialize property "preferredUsername" - if this.ActivityStreamsPreferredUsername != nil { - if i, err := this.ActivityStreamsPreferredUsername.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreferredUsername.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "publicKey" - if this.W3IDSecurityV1PublicKey != nil { - if i, err := this.W3IDSecurityV1PublicKey.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.W3IDSecurityV1PublicKey.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "streams" - if this.ActivityStreamsStreams != nil { - if i, err := this.ActivityStreamsStreams.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStreams.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsService) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsService) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsService) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsService) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsService) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsService) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsService) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsService) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsService) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsService) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsService) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsFollowers sets the "followers" property. -func (this *ActivityStreamsService) SetActivityStreamsFollowers(i vocab.ActivityStreamsFollowersProperty) { - this.ActivityStreamsFollowers = i -} - -// SetActivityStreamsFollowing sets the "following" property. -func (this *ActivityStreamsService) SetActivityStreamsFollowing(i vocab.ActivityStreamsFollowingProperty) { - this.ActivityStreamsFollowing = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsService) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsService) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsService) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsService) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInbox sets the "inbox" property. -func (this *ActivityStreamsService) SetActivityStreamsInbox(i vocab.ActivityStreamsInboxProperty) { - this.ActivityStreamsInbox = i -} - -// SetActivityStreamsLiked sets the "liked" property. -func (this *ActivityStreamsService) SetActivityStreamsLiked(i vocab.ActivityStreamsLikedProperty) { - this.ActivityStreamsLiked = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsService) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsService) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsManuallyApprovesFollowers sets the -// "manuallyApprovesFollowers" property. -func (this *ActivityStreamsService) SetActivityStreamsManuallyApprovesFollowers(i vocab.ActivityStreamsManuallyApprovesFollowersProperty) { - this.ActivityStreamsManuallyApprovesFollowers = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsService) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsService) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsService) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOutbox sets the "outbox" property. -func (this *ActivityStreamsService) SetActivityStreamsOutbox(i vocab.ActivityStreamsOutboxProperty) { - this.ActivityStreamsOutbox = i -} - -// SetActivityStreamsPreferredUsername sets the "preferredUsername" property. -func (this *ActivityStreamsService) SetActivityStreamsPreferredUsername(i vocab.ActivityStreamsPreferredUsernameProperty) { - this.ActivityStreamsPreferredUsername = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsService) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsService) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsService) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsService) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsService) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsService) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsStreams sets the "streams" property. -func (this *ActivityStreamsService) SetActivityStreamsStreams(i vocab.ActivityStreamsStreamsProperty) { - this.ActivityStreamsStreams = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsService) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsService) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsService) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsService) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsService) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsService) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsService) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsService) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsService) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsService) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// SetTootDiscoverable sets the "discoverable" property. -func (this *ActivityStreamsService) SetTootDiscoverable(i vocab.TootDiscoverableProperty) { - this.TootDiscoverable = i -} - -// SetTootFeatured sets the "featured" property. -func (this *ActivityStreamsService) SetTootFeatured(i vocab.TootFeaturedProperty) { - this.TootFeatured = i -} - -// SetW3IDSecurityV1PublicKey sets the "publicKey" property. -func (this *ActivityStreamsService) SetW3IDSecurityV1PublicKey(i vocab.W3IDSecurityV1PublicKeyProperty) { - this.W3IDSecurityV1PublicKey = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsService) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsService) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept/gen_doc.go deleted file mode 100644 index 117206aec..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typetentativeaccept contains the implementation for the TentativeAccept -// type. All applications are strongly encouraged to use the interface instead -// of this concrete definition. The interfaces allow applications to consume -// only the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typetentativeaccept diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go deleted file mode 100644 index 546e28c3a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetentativeaccept - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go deleted file mode 100644 index 8836a4079..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept/gen_type_activitystreams_tentativeaccept.go +++ /dev/null @@ -1,1952 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetentativeaccept - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// A specialization of Accept indicating that the acceptance is tentative. -// -// Example 11 (https://www.w3.org/TR/activitystreams-vocabulary/#ex8-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "actor": "http://john.example.org", -// "object": { -// "name": "Going-Away Party for Jim", -// "type": "Event" -// }, -// "type": "Invite" -// }, -// "summary": "Sally tentatively accepted an invitation to a party", -// "type": "TentativeAccept" -// } -type ActivityStreamsTentativeAccept struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsTentativeAcceptExtends returns true if the TentativeAccept type -// extends from the other type. -func ActivityStreamsTentativeAcceptExtends(other vocab.Type) bool { - extensions := []string{"Accept", "Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeTentativeAccept creates a TentativeAccept from a map representation -// that has been unmarshalled from a text or binary format. -func DeserializeTentativeAccept(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsTentativeAccept, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsTentativeAccept{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "TentativeAccept" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "TentativeAccept", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "TentativeAccept" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "TentativeAccept") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsTentativeAccept returns true if the other provided type is the -// TentativeAccept type or extends from the TentativeAccept type. -func IsOrExtendsTentativeAccept(other vocab.Type) bool { - if other.GetTypeName() == "TentativeAccept" { - return true - } - return TentativeAcceptIsExtendedBy(other) -} - -// NewActivityStreamsTentativeAccept creates a new TentativeAccept type -func NewActivityStreamsTentativeAccept() *ActivityStreamsTentativeAccept { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("TentativeAccept") - return &ActivityStreamsTentativeAccept{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// TentativeAcceptIsDisjointWith returns true if the other provided type is -// disjoint with the TentativeAccept type. -func TentativeAcceptIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// TentativeAcceptIsExtendedBy returns true if the other provided type extends -// from the TentativeAccept type. Note that it returns false if the types are -// the same; see the "IsOrExtendsTentativeAccept" variant instead. -func TentativeAcceptIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeAccept) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsTentativeAccept) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsTentativeAccept) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsTentativeAccept) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsTentativeAccept) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsTentativeAccept) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsTentativeAccept) GetTypeName() string { - return "TentativeAccept" -} - -// GetUnknownProperties returns the unknown properties for the TentativeAccept -// type. Note that this should not be used by app developers. It is only used -// to help determine which implementation is LessThan the other. Developers -// who are creating a different implementation of this type's interface can -// use this method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsTentativeAccept) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the TentativeAccept type extends from the other -// type. -func (this ActivityStreamsTentativeAccept) IsExtending(other vocab.Type) bool { - return ActivityStreamsTentativeAcceptExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsTentativeAccept) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this TentativeAccept is lesser, with an arbitrary but -// stable determination. -func (this ActivityStreamsTentativeAccept) LessThan(o vocab.ActivityStreamsTentativeAccept) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsTentativeAccept) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "TentativeAccept" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "TentativeAccept" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsTentativeAccept) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsTentativeAccept) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsTentativeAccept) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsTentativeAccept) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsTentativeAccept) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsTentativeAccept) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsTentativeAccept) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsTentativeAccept) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject/gen_doc.go deleted file mode 100644 index 110d80a32..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typetentativereject contains the implementation for the TentativeReject -// type. All applications are strongly encouraged to use the interface instead -// of this concrete definition. The interfaces allow applications to consume -// only the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typetentativereject diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go deleted file mode 100644 index 4a194a780..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetentativereject - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go deleted file mode 100644 index a1abc0b8b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject/gen_type_activitystreams_tentativereject.go +++ /dev/null @@ -1,1952 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetentativereject - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// A specialization of Reject in which the rejection is considered tentative. -// -// Example 26 (https://www.w3.org/TR/activitystreams-vocabulary/#ex27-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "actor": "http://john.example.org", -// "object": { -// "name": "Going-Away Party for Jim", -// "type": "Event" -// }, -// "type": "Invite" -// }, -// "summary": "Sally tentatively rejected an invitation to a party", -// "type": "TentativeReject" -// } -type ActivityStreamsTentativeReject struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsTentativeRejectExtends returns true if the TentativeReject type -// extends from the other type. -func ActivityStreamsTentativeRejectExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object", "Reject"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeTentativeReject creates a TentativeReject from a map representation -// that has been unmarshalled from a text or binary format. -func DeserializeTentativeReject(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsTentativeReject, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsTentativeReject{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "TentativeReject" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "TentativeReject", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "TentativeReject" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "TentativeReject") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsTentativeReject returns true if the other provided type is the -// TentativeReject type or extends from the TentativeReject type. -func IsOrExtendsTentativeReject(other vocab.Type) bool { - if other.GetTypeName() == "TentativeReject" { - return true - } - return TentativeRejectIsExtendedBy(other) -} - -// NewActivityStreamsTentativeReject creates a new TentativeReject type -func NewActivityStreamsTentativeReject() *ActivityStreamsTentativeReject { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("TentativeReject") - return &ActivityStreamsTentativeReject{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// TentativeRejectIsDisjointWith returns true if the other provided type is -// disjoint with the TentativeReject type. -func TentativeRejectIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// TentativeRejectIsExtendedBy returns true if the other provided type extends -// from the TentativeReject type. Note that it returns false if the types are -// the same; see the "IsOrExtendsTentativeReject" variant instead. -func TentativeRejectIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTentativeReject) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsTentativeReject) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsTentativeReject) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsTentativeReject) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsTentativeReject) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsTentativeReject) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsTentativeReject) GetTypeName() string { - return "TentativeReject" -} - -// GetUnknownProperties returns the unknown properties for the TentativeReject -// type. Note that this should not be used by app developers. It is only used -// to help determine which implementation is LessThan the other. Developers -// who are creating a different implementation of this type's interface can -// use this method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsTentativeReject) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the TentativeReject type extends from the other -// type. -func (this ActivityStreamsTentativeReject) IsExtending(other vocab.Type) bool { - return ActivityStreamsTentativeRejectExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsTentativeReject) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this TentativeReject is lesser, with an arbitrary but -// stable determination. -func (this ActivityStreamsTentativeReject) LessThan(o vocab.ActivityStreamsTentativeReject) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsTentativeReject) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "TentativeReject" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "TentativeReject" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsTentativeReject) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsTentativeReject) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsTentativeReject) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsTentativeReject) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsTentativeReject) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsTentativeReject) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsTentativeReject) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsTentativeReject) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone/gen_doc.go deleted file mode 100644 index 096ae5fa9..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typetombstone contains the implementation for the Tombstone type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typetombstone diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go deleted file mode 100644 index 1b0eb533e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone/gen_pkg.go +++ /dev/null @@ -1,195 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetombstone - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDeletedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDeletedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDeletedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDeletedProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeFormerTypePropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsFormerTypeProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeFormerTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFormerTypeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go deleted file mode 100644 index c561b4bd9..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone/gen_type_activitystreams_tombstone.go +++ /dev/null @@ -1,1832 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetombstone - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// A Tombstone represents a content object that has been deleted. It can be used -// in Collections to signify that there used to be an object at this position, -// but it has been deleted. -// -// Example 60 (https://www.w3.org/TR/activitystreams-vocabulary/#ex184b-jsonld): -// { -// "name": "Vacation photos 2016", -// "orderedItems": [ -// { -// "id": "http://image.example/1", -// "type": "Image" -// }, -// { -// "deleted": "2016-03-17T00:00:00Z", -// "formerType": "/Image", -// "id": "http://image.example/2", -// "type": "Tombstone" -// }, -// { -// "id": "http://image.example/3", -// "type": "Image" -// } -// ], -// "totalItems": 3, -// "type": "OrderedCollection" -// } -type ActivityStreamsTombstone struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDeleted vocab.ActivityStreamsDeletedProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsFormerType vocab.ActivityStreamsFormerTypeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsTombstoneExtends returns true if the Tombstone type extends from -// the other type. -func ActivityStreamsTombstoneExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeTombstone creates a Tombstone from a map representation that has -// been unmarshalled from a text or binary format. -func DeserializeTombstone(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsTombstone, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsTombstone{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Tombstone" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Tombstone", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Tombstone" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Tombstone") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDeletedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDeleted = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeFormerTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsFormerType = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "deleted" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "formerType" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsTombstone returns true if the other provided type is the Tombstone -// type or extends from the Tombstone type. -func IsOrExtendsTombstone(other vocab.Type) bool { - if other.GetTypeName() == "Tombstone" { - return true - } - return TombstoneIsExtendedBy(other) -} - -// NewActivityStreamsTombstone creates a new Tombstone type -func NewActivityStreamsTombstone() *ActivityStreamsTombstone { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Tombstone") - return &ActivityStreamsTombstone{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// TombstoneIsDisjointWith returns true if the other provided type is disjoint -// with the Tombstone type. -func TombstoneIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// TombstoneIsExtendedBy returns true if the other provided type extends from the -// Tombstone type. Note that it returns false if the types are the same; see -// the "IsOrExtendsTombstone" variant instead. -func TombstoneIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDeleted returns the "deleted" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsDeleted() vocab.ActivityStreamsDeletedProperty { - return this.ActivityStreamsDeleted -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsFormerType returns the "formerType" property if it exists, -// and nil otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsFormerType() vocab.ActivityStreamsFormerTypeProperty { - return this.ActivityStreamsFormerType -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTombstone) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsTombstone) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsTombstone) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsTombstone) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsTombstone) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsTombstone) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsTombstone) GetTypeName() string { - return "Tombstone" -} - -// GetUnknownProperties returns the unknown properties for the Tombstone type. -// Note that this should not be used by app developers. It is only used to -// help determine which implementation is LessThan the other. Developers who -// are creating a different implementation of this type's interface can use -// this method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsTombstone) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Tombstone type extends from the other type. -func (this ActivityStreamsTombstone) IsExtending(other vocab.Type) bool { - return ActivityStreamsTombstoneExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsTombstone) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDeleted, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsFormerType, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Tombstone is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsTombstone) LessThan(o vocab.ActivityStreamsTombstone) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "deleted" - if lhs, rhs := this.ActivityStreamsDeleted, o.GetActivityStreamsDeleted(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "formerType" - if lhs, rhs := this.ActivityStreamsFormerType, o.GetActivityStreamsFormerType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsTombstone) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Tombstone" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Tombstone" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "deleted" - if this.ActivityStreamsDeleted != nil { - if i, err := this.ActivityStreamsDeleted.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDeleted.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "formerType" - if this.ActivityStreamsFormerType != nil { - if i, err := this.ActivityStreamsFormerType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsFormerType.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDeleted sets the "deleted" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsDeleted(i vocab.ActivityStreamsDeletedProperty) { - this.ActivityStreamsDeleted = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsFormerType sets the "formerType" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsFormerType(i vocab.ActivityStreamsFormerTypeProperty) { - this.ActivityStreamsFormerType = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsTombstone) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsTombstone) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsTombstone) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsTombstone) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsTombstone) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsTombstone) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsTombstone) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsTombstone) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_travel/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_travel/gen_doc.go deleted file mode 100644 index 40726b064..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_travel/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typetravel contains the implementation for the Travel type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typetravel diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_travel/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_travel/gen_pkg.go deleted file mode 100644 index cae76f278..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_travel/gen_pkg.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetravel - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go deleted file mode 100644 index 691cb3e0d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_travel/gen_type_activitystreams_travel.go +++ /dev/null @@ -1,1911 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typetravel - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor is traveling to target from origin. Travel is an -// IntransitiveActivity whose actor specifies the direct object. If the target -// or origin are not specified, either can be determined by context. -// -// Example 35 (https://www.w3.org/TR/activitystreams-vocabulary/#ex169-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "origin": { -// "name": "Work", -// "type": "Place" -// }, -// "summary": "Sally went home from work", -// "target": { -// "name": "Home", -// "type": "Place" -// }, -// "type": "Travel" -// } -type ActivityStreamsTravel struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsTravelExtends returns true if the Travel type extends from the -// other type. -func ActivityStreamsTravelExtends(other vocab.Type) bool { - extensions := []string{"Activity", "IntransitiveActivity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeTravel creates a Travel from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeTravel(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsTravel, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsTravel{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Travel" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Travel", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Travel" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Travel") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsTravel returns true if the other provided type is the Travel type or -// extends from the Travel type. -func IsOrExtendsTravel(other vocab.Type) bool { - if other.GetTypeName() == "Travel" { - return true - } - return TravelIsExtendedBy(other) -} - -// NewActivityStreamsTravel creates a new Travel type -func NewActivityStreamsTravel() *ActivityStreamsTravel { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Travel") - return &ActivityStreamsTravel{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// TravelIsDisjointWith returns true if the other provided type is disjoint with -// the Travel type. -func TravelIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// TravelIsExtendedBy returns true if the other provided type extends from the -// Travel type. Note that it returns false if the types are the same; see the -// "IsOrExtendsTravel" variant instead. -func TravelIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsTravel) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsTravel) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsTravel) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsTravel) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsTravel) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsTravel) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsTravel) GetTypeName() string { - return "Travel" -} - -// GetUnknownProperties returns the unknown properties for the Travel type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsTravel) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Travel type extends from the other type. -func (this ActivityStreamsTravel) IsExtending(other vocab.Type) bool { - return ActivityStreamsTravelExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsTravel) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Travel is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsTravel) LessThan(o vocab.ActivityStreamsTravel) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsTravel) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Travel" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Travel" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsTravel) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsTravel) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsTravel) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsTravel) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsTravel) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsTravel) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsTravel) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsTravel) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsTravel) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsTravel) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsTravel) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsTravel) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsTravel) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsTravel) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsTravel) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsTravel) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsTravel) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsTravel) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsTravel) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsTravel) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsTravel) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsTravel) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsTravel) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsTravel) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsTravel) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsTravel) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsTravel) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsTravel) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsTravel) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsTravel) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsTravel) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsTravel) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsTravel) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsTravel) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsTravel) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsTravel) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsTravel) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsTravel) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsTravel) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsTravel) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsTravel) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsTravel) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_undo/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_undo/gen_doc.go deleted file mode 100644 index 9c9e327c1..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_undo/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeundo contains the implementation for the Undo type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeundo diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_undo/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_undo/gen_pkg.go deleted file mode 100644 index 8b57d9d5d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_undo/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeundo - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go deleted file mode 100644 index 72d6423ec..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_undo/gen_type_activitystreams_undo.go +++ /dev/null @@ -1,1950 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeundo - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor is undoing the object. In most cases, the object will -// be an Activity describing some previously performed action (for instance, a -// person may have previously "liked" an article but, for whatever reason, -// might choose to undo that like at some later point in time). The target and -// origin typically have no defined meaning. -// -// Example 29 (https://www.w3.org/TR/activitystreams-vocabulary/#ex32-jsonld): -// { -// "actor": "http://sally.example.org", -// "object": { -// "actor": "http://sally.example.org", -// "object": "http://example.org/posts/1", -// "target": "http://john.example.org", -// "type": "Offer" -// }, -// "summary": "Sally retracted her offer to John", -// "type": "Undo" -// } -type ActivityStreamsUndo struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsUndoExtends returns true if the Undo type extends from the other -// type. -func ActivityStreamsUndoExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeUndo creates a Undo from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeUndo(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsUndo, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsUndo{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Undo" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Undo", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Undo" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Undo") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsUndo returns true if the other provided type is the Undo type or -// extends from the Undo type. -func IsOrExtendsUndo(other vocab.Type) bool { - if other.GetTypeName() == "Undo" { - return true - } - return UndoIsExtendedBy(other) -} - -// NewActivityStreamsUndo creates a new Undo type -func NewActivityStreamsUndo() *ActivityStreamsUndo { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Undo") - return &ActivityStreamsUndo{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// UndoIsDisjointWith returns true if the other provided type is disjoint with the -// Undo type. -func UndoIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// UndoIsExtendedBy returns true if the other provided type extends from the Undo -// type. Note that it returns false if the types are the same; see the -// "IsOrExtendsUndo" variant instead. -func UndoIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUndo) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsUndo) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsUndo) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsUndo) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsUndo) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsUndo) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsUndo) GetTypeName() string { - return "Undo" -} - -// GetUnknownProperties returns the unknown properties for the Undo type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsUndo) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Undo type extends from the other type. -func (this ActivityStreamsUndo) IsExtending(other vocab.Type) bool { - return ActivityStreamsUndoExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsUndo) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Undo is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsUndo) LessThan(o vocab.ActivityStreamsUndo) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsUndo) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Undo" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Undo" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsUndo) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsUndo) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsUndo) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsUndo) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsUndo) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsUndo) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsUndo) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsUndo) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsUndo) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsUndo) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsUndo) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsUndo) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsUndo) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsUndo) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsUndo) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsUndo) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsUndo) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsUndo) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsUndo) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsUndo) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsUndo) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsUndo) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsUndo) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsUndo) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsUndo) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsUndo) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsUndo) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsUndo) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsUndo) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsUndo) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsUndo) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsUndo) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsUndo) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsUndo) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsUndo) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsUndo) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsUndo) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsUndo) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsUndo) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsUndo) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsUndo) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsUndo) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsUndo) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_update/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_update/gen_doc.go deleted file mode 100644 index e2a36cca5..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_update/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeupdate contains the implementation for the Update type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeupdate diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_update/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_update/gen_pkg.go deleted file mode 100644 index 1860bdaab..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_update/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeupdate - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go deleted file mode 100644 index 18548261a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_update/gen_type_activitystreams_update.go +++ /dev/null @@ -1,1947 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeupdate - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor has updated the object. Note, however, that this -// vocabulary does not define a mechanism for describing the actual set of -// modifications made to object. The target and origin typically have no -// defined meaning. -// -// Example 30 (https://www.w3.org/TR/activitystreams-vocabulary/#ex33-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/notes/1", -// "summary": "Sally updated her note", -// "type": "Update" -// } -type ActivityStreamsUpdate struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsUpdateExtends returns true if the Update type extends from the -// other type. -func ActivityStreamsUpdateExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeUpdate creates a Update from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeUpdate(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsUpdate, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsUpdate{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Update" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Update", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Update" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Update") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsUpdate returns true if the other provided type is the Update type or -// extends from the Update type. -func IsOrExtendsUpdate(other vocab.Type) bool { - if other.GetTypeName() == "Update" { - return true - } - return UpdateIsExtendedBy(other) -} - -// NewActivityStreamsUpdate creates a new Update type -func NewActivityStreamsUpdate() *ActivityStreamsUpdate { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Update") - return &ActivityStreamsUpdate{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// UpdateIsDisjointWith returns true if the other provided type is disjoint with -// the Update type. -func UpdateIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// UpdateIsExtendedBy returns true if the other provided type extends from the -// Update type. Note that it returns false if the types are the same; see the -// "IsOrExtendsUpdate" variant instead. -func UpdateIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsUpdate) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsUpdate) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsUpdate) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsUpdate) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsUpdate) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsUpdate) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsUpdate) GetTypeName() string { - return "Update" -} - -// GetUnknownProperties returns the unknown properties for the Update type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsUpdate) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Update type extends from the other type. -func (this ActivityStreamsUpdate) IsExtending(other vocab.Type) bool { - return ActivityStreamsUpdateExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsUpdate) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Update is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsUpdate) LessThan(o vocab.ActivityStreamsUpdate) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsUpdate) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Update" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Update" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsUpdate) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsUpdate) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsUpdate) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsUpdate) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsUpdate) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsUpdate) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsUpdate) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsUpdate) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_video/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_video/gen_doc.go deleted file mode 100644 index 7ce17aed1..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_video/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typevideo contains the implementation for the Video type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typevideo diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_video/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_video/gen_pkg.go deleted file mode 100644 index ad26144b2..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_video/gen_pkg.go +++ /dev/null @@ -1,191 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typevideo - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBlurhashPropertyToot returns the deserialization method for - // the "TootBlurhashProperty" non-functional property in the - // vocabulary "Toot" - DeserializeBlurhashPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootBlurhashProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go deleted file mode 100644 index b77dbd9f3..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go +++ /dev/null @@ -1,1772 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typevideo - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents a video document of any kind. -// -// Example 52 (https://www.w3.org/TR/activitystreams-vocabulary/#ex51-jsonld): -// { -// "duration": "PT2H", -// "name": "Puppy Plays With Ball", -// "type": "Video", -// "url": "http://example.org/video.mkv" -// } -type ActivityStreamsVideo struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - TootBlurhash vocab.TootBlurhashProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsVideoExtends returns true if the Video type extends from the -// other type. -func ActivityStreamsVideoExtends(other vocab.Type) bool { - extensions := []string{"Document", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeVideo creates a Video from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeVideo(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsVideo, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsVideo{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Video" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Video", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Video" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Video") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBlurhashPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootBlurhash = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "blurhash" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsVideo returns true if the other provided type is the Video type or -// extends from the Video type. -func IsOrExtendsVideo(other vocab.Type) bool { - if other.GetTypeName() == "Video" { - return true - } - return VideoIsExtendedBy(other) -} - -// NewActivityStreamsVideo creates a new Video type -func NewActivityStreamsVideo() *ActivityStreamsVideo { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Video") - return &ActivityStreamsVideo{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// VideoIsDisjointWith returns true if the other provided type is disjoint with -// the Video type. -func VideoIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// VideoIsExtendedBy returns true if the other provided type extends from the -// Video type. Note that it returns false if the types are the same; see the -// "IsOrExtendsVideo" variant instead. -func VideoIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsVideo) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsVideo) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsVideo) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsVideo) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsVideo) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsVideo) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTootBlurhash returns the "blurhash" property if it exists, and nil otherwise. -func (this ActivityStreamsVideo) GetTootBlurhash() vocab.TootBlurhashProperty { - return this.TootBlurhash -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsVideo) GetTypeName() string { - return "Video" -} - -// GetUnknownProperties returns the unknown properties for the Video type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsVideo) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Video type extends from the other type. -func (this ActivityStreamsVideo) IsExtending(other vocab.Type) bool { - return ActivityStreamsVideoExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsVideo) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.TootBlurhash, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Video is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsVideo) LessThan(o vocab.ActivityStreamsVideo) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "blurhash" - if lhs, rhs := this.TootBlurhash, o.GetTootBlurhash(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsVideo) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Video" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Video" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "blurhash" - if this.TootBlurhash != nil { - if i, err := this.TootBlurhash.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootBlurhash.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsVideo) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsVideo) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsVideo) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsVideo) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsVideo) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsVideo) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsVideo) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsVideo) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsVideo) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsVideo) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsVideo) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsVideo) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsVideo) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsVideo) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsVideo) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsVideo) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsVideo) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsVideo) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsVideo) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsVideo) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsVideo) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsVideo) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsVideo) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsVideo) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsVideo) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsVideo) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsVideo) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsVideo) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsVideo) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsVideo) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsVideo) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsVideo) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsVideo) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsVideo) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsVideo) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsVideo) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// SetTootBlurhash sets the "blurhash" property. -func (this *ActivityStreamsVideo) SetTootBlurhash(i vocab.TootBlurhashProperty) { - this.TootBlurhash = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsVideo) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsVideo) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_view/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_view/gen_doc.go deleted file mode 100644 index ce489bbe9..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_view/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeview contains the implementation for the View type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeview diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_view/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_view/gen_pkg.go deleted file mode 100644 index 8bc275b7d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_view/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeview - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go deleted file mode 100644 index dd80dcc84..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_view/gen_type_activitystreams_view.go +++ /dev/null @@ -1,1947 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeview - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that the actor has viewed the object. -// -// Example 31 (https://www.w3.org/TR/activitystreams-vocabulary/#ex161-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "What You Should Know About Activity Streams", -// "type": "Article" -// }, -// "summary": "Sally read an article", -// "type": "View" -// } -type ActivityStreamsView struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// ActivityStreamsViewExtends returns true if the View type extends from the other -// type. -func ActivityStreamsViewExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// DeserializeView creates a View from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeView(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsView, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ActivityStreamsView{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "View" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "View", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "View" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "View") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsView returns true if the other provided type is the View type or -// extends from the View type. -func IsOrExtendsView(other vocab.Type) bool { - if other.GetTypeName() == "View" { - return true - } - return ViewIsExtendedBy(other) -} - -// NewActivityStreamsView creates a new View type -func NewActivityStreamsView() *ActivityStreamsView { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("View") - return &ActivityStreamsView{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// ViewIsDisjointWith returns true if the other provided type is disjoint with the -// View type. -func ViewIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// ViewIsExtendedBy returns true if the other provided type extends from the View -// type. Note that it returns false if the types are the same; see the -// "IsOrExtendsView" variant instead. -func ViewIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ActivityStreamsView) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ActivityStreamsView) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ActivityStreamsView) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ActivityStreamsView) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ActivityStreamsView) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ActivityStreamsView) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ActivityStreamsView) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ActivityStreamsView) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ActivityStreamsView) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ActivityStreamsView) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ActivityStreamsView) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ActivityStreamsView) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ActivityStreamsView) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ActivityStreamsView) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ActivityStreamsView) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ActivityStreamsView) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ActivityStreamsView) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ActivityStreamsView) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ActivityStreamsView) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ActivityStreamsView) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ActivityStreamsView) GetTypeName() string { - return "View" -} - -// GetUnknownProperties returns the unknown properties for the View type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ActivityStreamsView) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the View type extends from the other type. -func (this ActivityStreamsView) IsExtending(other vocab.Type) bool { - return ActivityStreamsViewExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ActivityStreamsView) JSONLDContext() map[string]string { - m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this View is lesser, with an arbitrary but stable -// determination. -func (this ActivityStreamsView) LessThan(o vocab.ActivityStreamsView) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ActivityStreamsView) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "View" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "View" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ActivityStreamsView) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ActivityStreamsView) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ActivityStreamsView) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ActivityStreamsView) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ActivityStreamsView) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ActivityStreamsView) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ActivityStreamsView) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ActivityStreamsView) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ActivityStreamsView) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ActivityStreamsView) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ActivityStreamsView) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ActivityStreamsView) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ActivityStreamsView) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ActivityStreamsView) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ActivityStreamsView) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ActivityStreamsView) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ActivityStreamsView) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ActivityStreamsView) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ActivityStreamsView) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ActivityStreamsView) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ActivityStreamsView) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ActivityStreamsView) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ActivityStreamsView) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ActivityStreamsView) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ActivityStreamsView) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ActivityStreamsView) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ActivityStreamsView) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ActivityStreamsView) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ActivityStreamsView) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ActivityStreamsView) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ActivityStreamsView) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ActivityStreamsView) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ActivityStreamsView) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ActivityStreamsView) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ActivityStreamsView) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ActivityStreamsView) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ActivityStreamsView) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ActivityStreamsView) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ActivityStreamsView) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ActivityStreamsView) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ActivityStreamsView) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ActivityStreamsView) VocabularyURI() string { - return "https://www.w3.org/ns/activitystreams" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ActivityStreamsView) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_assignedto/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_assignedto/gen_doc.go deleted file mode 100644 index a7d3d3693..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_assignedto/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyassignedto contains the implementation for the assignedTo -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyassignedto diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_assignedto/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_assignedto/gen_pkg.go deleted file mode 100644 index 554417f7a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_assignedto/gen_pkg.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyassignedto - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_assignedto/gen_property_forgefed_assignedTo.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_assignedto/gen_property_forgefed_assignedTo.go deleted file mode 100644 index 0c8a86133..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_assignedto/gen_property_forgefed_assignedTo.go +++ /dev/null @@ -1,224 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyassignedto - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedAssignedToProperty is the functional property "assignedTo". It is -// permitted to be a single nilable value type. -type ForgeFedAssignedToProperty struct { - activitystreamsPersonMember vocab.ActivityStreamsPerson - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeAssignedToProperty creates a "assignedTo" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeAssignedToProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedAssignedToProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "assignedTo" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "assignedTo") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedAssignedToProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedAssignedToProperty{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } - } - this := &ForgeFedAssignedToProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewForgeFedAssignedToProperty creates a new assignedTo property. -func NewForgeFedAssignedToProperty() *ForgeFedAssignedToProperty { - return &ForgeFedAssignedToProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsActivityStreamsPerson -// afterwards will return false. -func (this *ForgeFedAssignedToProperty) Clear() { - this.unknown = nil - this.iri = nil - this.activitystreamsPersonMember = nil -} - -// Get returns the value of this property. When IsActivityStreamsPerson returns -// false, Get will return any arbitrary value. -func (this ForgeFedAssignedToProperty) Get() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ForgeFedAssignedToProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ForgeFedAssignedToProperty) GetType() vocab.Type { - if this.IsActivityStreamsPerson() { - return this.Get() - } - - return nil -} - -// HasAny returns true if the value or IRI is set. -func (this ForgeFedAssignedToProperty) HasAny() bool { - return this.IsActivityStreamsPerson() || this.iri != nil -} - -// IsActivityStreamsPerson returns true if this property is set and not an IRI. -func (this ForgeFedAssignedToProperty) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ForgeFedAssignedToProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedAssignedToProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - if this.IsActivityStreamsPerson() { - child = this.Get().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedAssignedToProperty) KindIndex() int { - if this.IsActivityStreamsPerson() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedAssignedToProperty) LessThan(o vocab.ForgeFedAssignedToProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsActivityStreamsPerson() && !o.IsActivityStreamsPerson() { - // Both are unknowns. - return false - } else if this.IsActivityStreamsPerson() && !o.IsActivityStreamsPerson() { - // Values are always greater than unknown values. - return false - } else if !this.IsActivityStreamsPerson() && o.IsActivityStreamsPerson() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return this.Get().LessThan(o.Get()) - } -} - -// Name returns the name of this property: "assignedTo". -func (this ForgeFedAssignedToProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "assignedTo" - } else { - return "assignedTo" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedAssignedToProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsPerson() { - return this.Get().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsActivityStreamsPerson afterwards -// will return true. -func (this *ForgeFedAssignedToProperty) Set(v vocab.ActivityStreamsPerson) { - this.Clear() - this.activitystreamsPersonMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ForgeFedAssignedToProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ForgeFedAssignedToProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.Set(v) - return nil - } - - return fmt.Errorf("illegal type to set on assignedTo property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committed/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committed/gen_doc.go deleted file mode 100644 index 316ae31b9..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committed/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertycommitted contains the implementation for the committed -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertycommitted diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committed/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committed/gen_pkg.go deleted file mode 100644 index 9aeea0f44..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committed/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycommitted - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committed/gen_property_forgefed_committed.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committed/gen_property_forgefed_committed.go deleted file mode 100644 index c84eddf2f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committed/gen_property_forgefed_committed.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycommitted - -import ( - "fmt" - datetime "github.com/go-fed/activity/streams/values/dateTime" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" - "time" -) - -// ForgeFedCommittedProperty is the functional property "committed". It is -// permitted to be a single default-valued value type. -type ForgeFedCommittedProperty struct { - xmlschemaDateTimeMember time.Time - hasDateTimeMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeCommittedProperty creates a "committed" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeCommittedProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedCommittedProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "committed" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "committed") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedCommittedProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := datetime.DeserializeDateTime(i); err == nil { - this := &ForgeFedCommittedProperty{ - alias: alias, - hasDateTimeMember: true, - xmlschemaDateTimeMember: v, - } - return this, nil - } - this := &ForgeFedCommittedProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewForgeFedCommittedProperty creates a new committed property. -func NewForgeFedCommittedProperty() *ForgeFedCommittedProperty { - return &ForgeFedCommittedProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaDateTime -// afterwards will return false. -func (this *ForgeFedCommittedProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasDateTimeMember = false -} - -// Get returns the value of this property. When IsXMLSchemaDateTime returns false, -// Get will return any arbitrary value. -func (this ForgeFedCommittedProperty) Get() time.Time { - return this.xmlschemaDateTimeMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ForgeFedCommittedProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ForgeFedCommittedProperty) HasAny() bool { - return this.IsXMLSchemaDateTime() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ForgeFedCommittedProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaDateTime returns true if this property is set and not an IRI. -func (this ForgeFedCommittedProperty) IsXMLSchemaDateTime() bool { - return this.hasDateTimeMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedCommittedProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedCommittedProperty) KindIndex() int { - if this.IsXMLSchemaDateTime() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedCommittedProperty) LessThan(o vocab.ForgeFedCommittedProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaDateTime() && o.IsXMLSchemaDateTime() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return datetime.LessDateTime(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "committed". -func (this ForgeFedCommittedProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "committed" - } else { - return "committed" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedCommittedProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaDateTime() { - return datetime.SerializeDateTime(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaDateTime afterwards -// will return true. -func (this *ForgeFedCommittedProperty) Set(v time.Time) { - this.Clear() - this.xmlschemaDateTimeMember = v - this.hasDateTimeMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ForgeFedCommittedProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committedby/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committedby/gen_doc.go deleted file mode 100644 index efbaf083a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committedby/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertycommittedby contains the implementation for the committedBy -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertycommittedby diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committedby/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committedby/gen_pkg.go deleted file mode 100644 index 5a978c51a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committedby/gen_pkg.go +++ /dev/null @@ -1,257 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycommittedby - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committedby/gen_property_forgefed_committedBy.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committedby/gen_property_forgefed_committedBy.go deleted file mode 100644 index bb5c1ee9d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_committedby/gen_property_forgefed_committedBy.go +++ /dev/null @@ -1,2933 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertycommittedby - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedCommittedByProperty is the functional property "committedBy". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ForgeFedCommittedByProperty struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeCommittedByProperty creates a "committedBy" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeCommittedByProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedCommittedByProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "committedBy" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "committedBy") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedCommittedByProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedCommittedByProperty{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ForgeFedCommittedByProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewForgeFedCommittedByProperty creates a new committedBy property. -func NewForgeFedCommittedByProperty() *ForgeFedCommittedByProperty { - return &ForgeFedCommittedByProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ForgeFedCommittedByProperty) Clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ForgeFedCommittedByProperty) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ForgeFedCommittedByProperty) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ForgeFedCommittedByProperty) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ForgeFedCommittedByProperty) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ForgeFedCommittedByProperty) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ForgeFedCommittedByProperty) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ForgeFedCommittedByProperty) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ForgeFedCommittedByProperty) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ForgeFedCommittedByProperty) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ForgeFedCommittedByProperty) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ForgeFedCommittedByProperty) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ForgeFedCommittedByProperty) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ForgeFedCommittedByProperty) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ForgeFedCommittedByProperty) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedCommittedByProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedCommittedByProperty) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsAccept() { - return 1 - } - if this.IsActivityStreamsActivity() { - return 2 - } - if this.IsActivityStreamsAdd() { - return 3 - } - if this.IsActivityStreamsAnnounce() { - return 4 - } - if this.IsActivityStreamsApplication() { - return 5 - } - if this.IsActivityStreamsArrive() { - return 6 - } - if this.IsActivityStreamsArticle() { - return 7 - } - if this.IsActivityStreamsAudio() { - return 8 - } - if this.IsActivityStreamsBlock() { - return 9 - } - if this.IsForgeFedBranch() { - return 10 - } - if this.IsActivityStreamsCollection() { - return 11 - } - if this.IsActivityStreamsCollectionPage() { - return 12 - } - if this.IsForgeFedCommit() { - return 13 - } - if this.IsActivityStreamsCreate() { - return 14 - } - if this.IsActivityStreamsDelete() { - return 15 - } - if this.IsActivityStreamsDislike() { - return 16 - } - if this.IsActivityStreamsDocument() { - return 17 - } - if this.IsTootEmoji() { - return 18 - } - if this.IsActivityStreamsEvent() { - return 19 - } - if this.IsActivityStreamsFlag() { - return 20 - } - if this.IsActivityStreamsFollow() { - return 21 - } - if this.IsActivityStreamsGroup() { - return 22 - } - if this.IsTootIdentityProof() { - return 23 - } - if this.IsActivityStreamsIgnore() { - return 24 - } - if this.IsActivityStreamsImage() { - return 25 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 26 - } - if this.IsActivityStreamsInvite() { - return 27 - } - if this.IsActivityStreamsJoin() { - return 28 - } - if this.IsActivityStreamsLeave() { - return 29 - } - if this.IsActivityStreamsLike() { - return 30 - } - if this.IsActivityStreamsListen() { - return 31 - } - if this.IsActivityStreamsMove() { - return 32 - } - if this.IsActivityStreamsNote() { - return 33 - } - if this.IsActivityStreamsOffer() { - return 34 - } - if this.IsActivityStreamsOrderedCollection() { - return 35 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 36 - } - if this.IsActivityStreamsOrganization() { - return 37 - } - if this.IsActivityStreamsPage() { - return 38 - } - if this.IsActivityStreamsPerson() { - return 39 - } - if this.IsActivityStreamsPlace() { - return 40 - } - if this.IsActivityStreamsProfile() { - return 41 - } - if this.IsForgeFedPush() { - return 42 - } - if this.IsActivityStreamsQuestion() { - return 43 - } - if this.IsActivityStreamsRead() { - return 44 - } - if this.IsActivityStreamsReject() { - return 45 - } - if this.IsActivityStreamsRelationship() { - return 46 - } - if this.IsActivityStreamsRemove() { - return 47 - } - if this.IsForgeFedRepository() { - return 48 - } - if this.IsActivityStreamsService() { - return 49 - } - if this.IsActivityStreamsTentativeAccept() { - return 50 - } - if this.IsActivityStreamsTentativeReject() { - return 51 - } - if this.IsForgeFedTicket() { - return 52 - } - if this.IsForgeFedTicketDependency() { - return 53 - } - if this.IsActivityStreamsTombstone() { - return 54 - } - if this.IsActivityStreamsTravel() { - return 55 - } - if this.IsActivityStreamsUndo() { - return 56 - } - if this.IsActivityStreamsUpdate() { - return 57 - } - if this.IsActivityStreamsVideo() { - return 58 - } - if this.IsActivityStreamsView() { - return 59 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedCommittedByProperty) LessThan(o vocab.ForgeFedCommittedByProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "committedBy". -func (this ForgeFedCommittedByProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "committedBy" - } else { - return "committedBy" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedCommittedByProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.Clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.Clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.Clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.Clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.Clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.Clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.Clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.Clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.Clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.Clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.Clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.Clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.Clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.Clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.Clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.Clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.Clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.Clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.Clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.Clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.Clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.Clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.Clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.Clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.Clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.Clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.Clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.Clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.Clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.Clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.Clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.Clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.Clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.Clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.Clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.Clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.Clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.Clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.Clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.Clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.Clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.Clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.Clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.Clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.Clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.Clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.Clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.Clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.Clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.Clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.Clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetForgeFedPush(v vocab.ForgeFedPush) { - this.Clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.Clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.Clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.Clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ForgeFedCommittedByProperty) SetTootEmoji(v vocab.TootEmoji) { - this.Clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ForgeFedCommittedByProperty) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.Clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ForgeFedCommittedByProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on committedBy property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependants/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependants/gen_doc.go deleted file mode 100644 index 0a1ee6c03..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependants/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertydependants contains the implementation for the dependants -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertydependants diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependants/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependants/gen_pkg.go deleted file mode 100644 index 689ca890d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependants/gen_pkg.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydependants - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependants/gen_property_forgefed_dependants.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependants/gen_property_forgefed_dependants.go deleted file mode 100644 index ba35229c5..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependants/gen_property_forgefed_dependants.go +++ /dev/null @@ -1,268 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydependants - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedDependantsProperty is the functional property "dependants". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ForgeFedDependantsProperty struct { - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeDependantsProperty creates a "dependants" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeDependantsProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedDependantsProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "dependants" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "dependants") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedDependantsProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDependantsProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDependantsProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ForgeFedDependantsProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewForgeFedDependantsProperty creates a new dependants property. -func NewForgeFedDependantsProperty() *ForgeFedDependantsProperty { - return &ForgeFedDependantsProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ForgeFedDependantsProperty) Clear() { - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ForgeFedDependantsProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ForgeFedDependantsProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ForgeFedDependantsProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ForgeFedDependantsProperty) GetType() vocab.Type { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ForgeFedDependantsProperty) HasAny() bool { - return this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ForgeFedDependantsProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ForgeFedDependantsProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ForgeFedDependantsProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedDependantsProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedDependantsProperty) KindIndex() int { - if this.IsActivityStreamsOrderedCollection() { - return 0 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 1 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedDependantsProperty) LessThan(o vocab.ForgeFedDependantsProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "dependants". -func (this ForgeFedDependantsProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "dependants" - } else { - return "dependants" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedDependantsProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ForgeFedDependantsProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ForgeFedDependantsProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ForgeFedDependantsProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ForgeFedDependantsProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on dependants property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependedby/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependedby/gen_doc.go deleted file mode 100644 index d6afd7179..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependedby/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertydependedby contains the implementation for the dependedBy -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertydependedby diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependedby/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependedby/gen_pkg.go deleted file mode 100644 index bcdf09afe..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependedby/gen_pkg.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydependedby - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependedby/gen_property_forgefed_dependedBy.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependedby/gen_property_forgefed_dependedBy.go deleted file mode 100644 index e96386d5b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependedby/gen_property_forgefed_dependedBy.go +++ /dev/null @@ -1,622 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydependedby - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedDependedByPropertyIterator is an iterator for a property. It is -// permitted to be a single nilable value type. -type ForgeFedDependedByPropertyIterator struct { - forgefedTicketMember vocab.ForgeFedTicket - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ForgeFedDependedByProperty -} - -// NewForgeFedDependedByPropertyIterator creates a new ForgeFedDependedBy property. -func NewForgeFedDependedByPropertyIterator() *ForgeFedDependedByPropertyIterator { - return &ForgeFedDependedByPropertyIterator{alias: ""} -} - -// deserializeForgeFedDependedByPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeForgeFedDependedByPropertyIterator(i interface{}, aliasMap map[string]string) (*ForgeFedDependedByPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedDependedByPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedDependedByPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } - } - this := &ForgeFedDependedByPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsForgeFedTicket returns false, -// Get will return any arbitrary value. -func (this ForgeFedDependedByPropertyIterator) Get() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ForgeFedDependedByPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ForgeFedDependedByPropertyIterator) GetType() vocab.Type { - if this.IsForgeFedTicket() { - return this.Get() - } - - return nil -} - -// HasAny returns true if the value or IRI is set. -func (this ForgeFedDependedByPropertyIterator) HasAny() bool { - return this.IsForgeFedTicket() || this.iri != nil -} - -// IsForgeFedTicket returns true if this property is set and not an IRI. -func (this ForgeFedDependedByPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ForgeFedDependedByPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedDependedByPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - if this.IsForgeFedTicket() { - child = this.Get().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedDependedByPropertyIterator) KindIndex() int { - if this.IsForgeFedTicket() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedDependedByPropertyIterator) LessThan(o vocab.ForgeFedDependedByPropertyIterator) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsForgeFedTicket() && !o.IsForgeFedTicket() { - // Both are unknowns. - return false - } else if this.IsForgeFedTicket() && !o.IsForgeFedTicket() { - // Values are always greater than unknown values. - return false - } else if !this.IsForgeFedTicket() && o.IsForgeFedTicket() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return this.Get().LessThan(o.Get()) - } -} - -// Name returns the name of this property: "ForgeFedDependedBy". -func (this ForgeFedDependedByPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ForgeFedDependedBy" - } else { - return "ForgeFedDependedBy" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ForgeFedDependedByPropertyIterator) Next() vocab.ForgeFedDependedByPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ForgeFedDependedByPropertyIterator) Prev() vocab.ForgeFedDependedByPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsForgeFedTicket afterwards will -// return true. -func (this *ForgeFedDependedByPropertyIterator) Set(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ForgeFedDependedByPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ForgeFedDependedByPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.Set(v) - return nil - } - - return fmt.Errorf("illegal type to set on ForgeFedDependedBy property: %T", t) -} - -// clear ensures no value of this property is set. Calling IsForgeFedTicket -// afterwards will return false. -func (this *ForgeFedDependedByPropertyIterator) clear() { - this.unknown = nil - this.iri = nil - this.forgefedTicketMember = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedDependedByPropertyIterator) serialize() (interface{}, error) { - if this.IsForgeFedTicket() { - return this.Get().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ForgeFedDependedByProperty is the non-functional property "dependedBy". It is -// permitted to have one or more values, and of different value types. -type ForgeFedDependedByProperty struct { - properties []*ForgeFedDependedByPropertyIterator - alias string -} - -// DeserializeDependedByProperty creates a "dependedBy" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeDependedByProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDependedByProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "dependedBy" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "dependedBy") - } - i, ok := m[propName] - - if ok { - this := &ForgeFedDependedByProperty{ - alias: alias, - properties: []*ForgeFedDependedByPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeForgeFedDependedByPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeForgeFedDependedByPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewForgeFedDependedByProperty creates a new dependedBy property. -func NewForgeFedDependedByProperty() *ForgeFedDependedByProperty { - return &ForgeFedDependedByProperty{alias: ""} -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "dependedBy". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedDependedByProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ForgeFedDependedByPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "dependedBy" -func (this *ForgeFedDependedByProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ForgeFedDependedByPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "dependedBy". Invalidates iterators that are traversing using -// Prev. Returns an error if the type is not a valid one to set for this -// property. -func (this *ForgeFedDependedByProperty) AppendType(t vocab.Type) error { - n := &ForgeFedDependedByPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ForgeFedDependedByProperty) At(index int) vocab.ForgeFedDependedByPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ForgeFedDependedByProperty) Begin() vocab.ForgeFedDependedByPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ForgeFedDependedByProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ForgeFedDependedByProperty) End() vocab.ForgeFedDependedByPropertyIterator { - return nil -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "dependedBy". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedDependedByProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedDependedByPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "dependedBy". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ForgeFedDependedByProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedDependedByPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "dependedBy". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ForgeFedDependedByProperty) InsertType(idx int, t vocab.Type) error { - n := &ForgeFedDependedByPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedDependedByProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ForgeFedDependedByProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "dependedBy" property. -func (this ForgeFedDependedByProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ForgeFedDependedByProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].Get() - rhs := this.properties[j].Get() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedDependedByProperty) LessThan(o vocab.ForgeFedDependedByProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("dependedBy") with any alias. -func (this ForgeFedDependedByProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "dependedBy" - } else { - return "dependedBy" - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "dependedBy". Invalidates all iterators. -func (this *ForgeFedDependedByProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ForgeFedDependedByPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "dependedBy". -func (this *ForgeFedDependedByProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ForgeFedDependedByPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "dependedBy". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ForgeFedDependedByProperty) PrependType(t vocab.Type) error { - n := &ForgeFedDependedByPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ForgeFedDependedByPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "dependedBy", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedDependedByProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ForgeFedDependedByPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedDependedByProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// Set sets a Ticket value to be at the specified index for the property -// "dependedBy". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ForgeFedDependedByProperty) Set(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedDependedByPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "dependedBy". Panics if the index is out of bounds. -func (this *ForgeFedDependedByProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedDependedByPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "dependedBy". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. Panics if the index is out of -// bounds. -func (this *ForgeFedDependedByProperty) SetType(idx int, t vocab.Type) error { - n := &ForgeFedDependedByPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "dependedBy" property. -func (this ForgeFedDependedByProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependencies/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependencies/gen_doc.go deleted file mode 100644 index 4f4b064a5..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependencies/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertydependencies contains the implementation for the dependencies -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertydependencies diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependencies/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependencies/gen_pkg.go deleted file mode 100644 index a1b4bdac3..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependencies/gen_pkg.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydependencies - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependencies/gen_property_forgefed_dependencies.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependencies/gen_property_forgefed_dependencies.go deleted file mode 100644 index ac8bfb228..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependencies/gen_property_forgefed_dependencies.go +++ /dev/null @@ -1,269 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydependencies - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedDependenciesProperty is the functional property "dependencies". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ForgeFedDependenciesProperty struct { - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeDependenciesProperty creates a "dependencies" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeDependenciesProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedDependenciesProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "dependencies" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "dependencies") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedDependenciesProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDependenciesProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDependenciesProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ForgeFedDependenciesProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewForgeFedDependenciesProperty creates a new dependencies property. -func NewForgeFedDependenciesProperty() *ForgeFedDependenciesProperty { - return &ForgeFedDependenciesProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ForgeFedDependenciesProperty) Clear() { - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ForgeFedDependenciesProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ForgeFedDependenciesProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ForgeFedDependenciesProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ForgeFedDependenciesProperty) GetType() vocab.Type { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ForgeFedDependenciesProperty) HasAny() bool { - return this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ForgeFedDependenciesProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ForgeFedDependenciesProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ForgeFedDependenciesProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedDependenciesProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedDependenciesProperty) KindIndex() int { - if this.IsActivityStreamsOrderedCollection() { - return 0 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 1 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedDependenciesProperty) LessThan(o vocab.ForgeFedDependenciesProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "dependencies". -func (this ForgeFedDependenciesProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "dependencies" - } else { - return "dependencies" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedDependenciesProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ForgeFedDependenciesProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ForgeFedDependenciesProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ForgeFedDependenciesProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ForgeFedDependenciesProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on dependencies property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependson/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependson/gen_doc.go deleted file mode 100644 index 53d2647b0..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependson/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertydependson contains the implementation for the dependsOn -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertydependson diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependson/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependson/gen_pkg.go deleted file mode 100644 index 0998fc106..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependson/gen_pkg.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydependson - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependson/gen_property_forgefed_dependsOn.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependson/gen_property_forgefed_dependsOn.go deleted file mode 100644 index f87a2dca7..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_dependson/gen_property_forgefed_dependsOn.go +++ /dev/null @@ -1,619 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydependson - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedDependsOnPropertyIterator is an iterator for a property. It is -// permitted to be a single nilable value type. -type ForgeFedDependsOnPropertyIterator struct { - forgefedTicketMember vocab.ForgeFedTicket - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ForgeFedDependsOnProperty -} - -// NewForgeFedDependsOnPropertyIterator creates a new ForgeFedDependsOn property. -func NewForgeFedDependsOnPropertyIterator() *ForgeFedDependsOnPropertyIterator { - return &ForgeFedDependsOnPropertyIterator{alias: ""} -} - -// deserializeForgeFedDependsOnPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeForgeFedDependsOnPropertyIterator(i interface{}, aliasMap map[string]string) (*ForgeFedDependsOnPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedDependsOnPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedDependsOnPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } - } - this := &ForgeFedDependsOnPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsForgeFedTicket returns false, -// Get will return any arbitrary value. -func (this ForgeFedDependsOnPropertyIterator) Get() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ForgeFedDependsOnPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ForgeFedDependsOnPropertyIterator) GetType() vocab.Type { - if this.IsForgeFedTicket() { - return this.Get() - } - - return nil -} - -// HasAny returns true if the value or IRI is set. -func (this ForgeFedDependsOnPropertyIterator) HasAny() bool { - return this.IsForgeFedTicket() || this.iri != nil -} - -// IsForgeFedTicket returns true if this property is set and not an IRI. -func (this ForgeFedDependsOnPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ForgeFedDependsOnPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedDependsOnPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - if this.IsForgeFedTicket() { - child = this.Get().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedDependsOnPropertyIterator) KindIndex() int { - if this.IsForgeFedTicket() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedDependsOnPropertyIterator) LessThan(o vocab.ForgeFedDependsOnPropertyIterator) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsForgeFedTicket() && !o.IsForgeFedTicket() { - // Both are unknowns. - return false - } else if this.IsForgeFedTicket() && !o.IsForgeFedTicket() { - // Values are always greater than unknown values. - return false - } else if !this.IsForgeFedTicket() && o.IsForgeFedTicket() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return this.Get().LessThan(o.Get()) - } -} - -// Name returns the name of this property: "ForgeFedDependsOn". -func (this ForgeFedDependsOnPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ForgeFedDependsOn" - } else { - return "ForgeFedDependsOn" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ForgeFedDependsOnPropertyIterator) Next() vocab.ForgeFedDependsOnPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ForgeFedDependsOnPropertyIterator) Prev() vocab.ForgeFedDependsOnPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsForgeFedTicket afterwards will -// return true. -func (this *ForgeFedDependsOnPropertyIterator) Set(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ForgeFedDependsOnPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ForgeFedDependsOnPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.Set(v) - return nil - } - - return fmt.Errorf("illegal type to set on ForgeFedDependsOn property: %T", t) -} - -// clear ensures no value of this property is set. Calling IsForgeFedTicket -// afterwards will return false. -func (this *ForgeFedDependsOnPropertyIterator) clear() { - this.unknown = nil - this.iri = nil - this.forgefedTicketMember = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedDependsOnPropertyIterator) serialize() (interface{}, error) { - if this.IsForgeFedTicket() { - return this.Get().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ForgeFedDependsOnProperty is the non-functional property "dependsOn". It is -// permitted to have one or more values, and of different value types. -type ForgeFedDependsOnProperty struct { - properties []*ForgeFedDependsOnPropertyIterator - alias string -} - -// DeserializeDependsOnProperty creates a "dependsOn" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeDependsOnProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDependsOnProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "dependsOn" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "dependsOn") - } - i, ok := m[propName] - - if ok { - this := &ForgeFedDependsOnProperty{ - alias: alias, - properties: []*ForgeFedDependsOnPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeForgeFedDependsOnPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeForgeFedDependsOnPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewForgeFedDependsOnProperty creates a new dependsOn property. -func NewForgeFedDependsOnProperty() *ForgeFedDependsOnProperty { - return &ForgeFedDependsOnProperty{alias: ""} -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "dependsOn". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedDependsOnProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ForgeFedDependsOnPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property "dependsOn" -func (this *ForgeFedDependsOnProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ForgeFedDependsOnPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "dependsOn". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *ForgeFedDependsOnProperty) AppendType(t vocab.Type) error { - n := &ForgeFedDependsOnPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ForgeFedDependsOnProperty) At(index int) vocab.ForgeFedDependsOnPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ForgeFedDependsOnProperty) Begin() vocab.ForgeFedDependsOnPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ForgeFedDependsOnProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ForgeFedDependsOnProperty) End() vocab.ForgeFedDependsOnPropertyIterator { - return nil -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "dependsOn". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedDependsOnProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedDependsOnPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "dependsOn". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ForgeFedDependsOnProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedDependsOnPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "dependsOn". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ForgeFedDependsOnProperty) InsertType(idx int, t vocab.Type) error { - n := &ForgeFedDependsOnPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedDependsOnProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ForgeFedDependsOnProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "dependsOn" property. -func (this ForgeFedDependsOnProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ForgeFedDependsOnProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].Get() - rhs := this.properties[j].Get() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedDependsOnProperty) LessThan(o vocab.ForgeFedDependsOnProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("dependsOn") with any alias. -func (this ForgeFedDependsOnProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "dependsOn" - } else { - return "dependsOn" - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "dependsOn". Invalidates all iterators. -func (this *ForgeFedDependsOnProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ForgeFedDependsOnPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "dependsOn". -func (this *ForgeFedDependsOnProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ForgeFedDependsOnPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "dependsOn". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ForgeFedDependsOnProperty) PrependType(t vocab.Type) error { - n := &ForgeFedDependsOnPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ForgeFedDependsOnPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "dependsOn", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedDependsOnProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ForgeFedDependsOnPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedDependsOnProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// Set sets a Ticket value to be at the specified index for the property -// "dependsOn". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ForgeFedDependsOnProperty) Set(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedDependsOnPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "dependsOn". Panics if the index is out of bounds. -func (this *ForgeFedDependsOnProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedDependsOnPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "dependsOn". Invalidates all iterators. Returns an error if the type is not -// a valid one to set for this property. Panics if the index is out of bounds. -func (this *ForgeFedDependsOnProperty) SetType(idx int, t vocab.Type) error { - n := &ForgeFedDependsOnPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "dependsOn" property. -func (this ForgeFedDependsOnProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_description/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_description/gen_doc.go deleted file mode 100644 index 664c990f9..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_description/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertydescription contains the implementation for the description -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertydescription diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_description/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_description/gen_pkg.go deleted file mode 100644 index 1502759c2..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_description/gen_pkg.go +++ /dev/null @@ -1,257 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydescription - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_description/gen_property_forgefed_description.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_description/gen_property_forgefed_description.go deleted file mode 100644 index 8e96d6832..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_description/gen_property_forgefed_description.go +++ /dev/null @@ -1,2933 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydescription - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedDescriptionProperty is the functional property "description". It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ForgeFedDescriptionProperty struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeDescriptionProperty creates a "description" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeDescriptionProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedDescriptionProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "description" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "description") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedDescriptionProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedDescriptionProperty{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ForgeFedDescriptionProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewForgeFedDescriptionProperty creates a new description property. -func NewForgeFedDescriptionProperty() *ForgeFedDescriptionProperty { - return &ForgeFedDescriptionProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ForgeFedDescriptionProperty) Clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ForgeFedDescriptionProperty) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ForgeFedDescriptionProperty) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ForgeFedDescriptionProperty) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ForgeFedDescriptionProperty) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ForgeFedDescriptionProperty) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ForgeFedDescriptionProperty) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ForgeFedDescriptionProperty) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ForgeFedDescriptionProperty) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ForgeFedDescriptionProperty) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ForgeFedDescriptionProperty) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ForgeFedDescriptionProperty) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ForgeFedDescriptionProperty) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ForgeFedDescriptionProperty) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ForgeFedDescriptionProperty) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedDescriptionProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedDescriptionProperty) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsAccept() { - return 1 - } - if this.IsActivityStreamsActivity() { - return 2 - } - if this.IsActivityStreamsAdd() { - return 3 - } - if this.IsActivityStreamsAnnounce() { - return 4 - } - if this.IsActivityStreamsApplication() { - return 5 - } - if this.IsActivityStreamsArrive() { - return 6 - } - if this.IsActivityStreamsArticle() { - return 7 - } - if this.IsActivityStreamsAudio() { - return 8 - } - if this.IsActivityStreamsBlock() { - return 9 - } - if this.IsForgeFedBranch() { - return 10 - } - if this.IsActivityStreamsCollection() { - return 11 - } - if this.IsActivityStreamsCollectionPage() { - return 12 - } - if this.IsForgeFedCommit() { - return 13 - } - if this.IsActivityStreamsCreate() { - return 14 - } - if this.IsActivityStreamsDelete() { - return 15 - } - if this.IsActivityStreamsDislike() { - return 16 - } - if this.IsActivityStreamsDocument() { - return 17 - } - if this.IsTootEmoji() { - return 18 - } - if this.IsActivityStreamsEvent() { - return 19 - } - if this.IsActivityStreamsFlag() { - return 20 - } - if this.IsActivityStreamsFollow() { - return 21 - } - if this.IsActivityStreamsGroup() { - return 22 - } - if this.IsTootIdentityProof() { - return 23 - } - if this.IsActivityStreamsIgnore() { - return 24 - } - if this.IsActivityStreamsImage() { - return 25 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 26 - } - if this.IsActivityStreamsInvite() { - return 27 - } - if this.IsActivityStreamsJoin() { - return 28 - } - if this.IsActivityStreamsLeave() { - return 29 - } - if this.IsActivityStreamsLike() { - return 30 - } - if this.IsActivityStreamsListen() { - return 31 - } - if this.IsActivityStreamsMove() { - return 32 - } - if this.IsActivityStreamsNote() { - return 33 - } - if this.IsActivityStreamsOffer() { - return 34 - } - if this.IsActivityStreamsOrderedCollection() { - return 35 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 36 - } - if this.IsActivityStreamsOrganization() { - return 37 - } - if this.IsActivityStreamsPage() { - return 38 - } - if this.IsActivityStreamsPerson() { - return 39 - } - if this.IsActivityStreamsPlace() { - return 40 - } - if this.IsActivityStreamsProfile() { - return 41 - } - if this.IsForgeFedPush() { - return 42 - } - if this.IsActivityStreamsQuestion() { - return 43 - } - if this.IsActivityStreamsRead() { - return 44 - } - if this.IsActivityStreamsReject() { - return 45 - } - if this.IsActivityStreamsRelationship() { - return 46 - } - if this.IsActivityStreamsRemove() { - return 47 - } - if this.IsForgeFedRepository() { - return 48 - } - if this.IsActivityStreamsService() { - return 49 - } - if this.IsActivityStreamsTentativeAccept() { - return 50 - } - if this.IsActivityStreamsTentativeReject() { - return 51 - } - if this.IsForgeFedTicket() { - return 52 - } - if this.IsForgeFedTicketDependency() { - return 53 - } - if this.IsActivityStreamsTombstone() { - return 54 - } - if this.IsActivityStreamsTravel() { - return 55 - } - if this.IsActivityStreamsUndo() { - return 56 - } - if this.IsActivityStreamsUpdate() { - return 57 - } - if this.IsActivityStreamsVideo() { - return 58 - } - if this.IsActivityStreamsView() { - return 59 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedDescriptionProperty) LessThan(o vocab.ForgeFedDescriptionProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "description". -func (this ForgeFedDescriptionProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "description" - } else { - return "description" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedDescriptionProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.Clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.Clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.Clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.Clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.Clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.Clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.Clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.Clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.Clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.Clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.Clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.Clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.Clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.Clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.Clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.Clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.Clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.Clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.Clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.Clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.Clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.Clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.Clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.Clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.Clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.Clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.Clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.Clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.Clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.Clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.Clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.Clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.Clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.Clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.Clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.Clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.Clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.Clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.Clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.Clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.Clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.Clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.Clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.Clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.Clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.Clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.Clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.Clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.Clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.Clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.Clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetForgeFedPush(v vocab.ForgeFedPush) { - this.Clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.Clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.Clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.Clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ForgeFedDescriptionProperty) SetTootEmoji(v vocab.TootEmoji) { - this.Clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ForgeFedDescriptionProperty) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.Clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ForgeFedDescriptionProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on description property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems/gen_doc.go deleted file mode 100644 index 54df4ed1b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyearlyitems contains the implementation for the earlyItems -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyearlyitems diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems/gen_pkg.go deleted file mode 100644 index 7cf49dddf..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems/gen_pkg.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyearlyitems - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeLinkActivityStreams returns the deserialization method for - // the "ActivityStreamsLink" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMentionActivityStreams returns the deserialization method - // for the "ActivityStreamsMention" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems/gen_property_forgefed_earlyItems.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems/gen_property_forgefed_earlyItems.go deleted file mode 100644 index 38e5b0df8..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems/gen_property_forgefed_earlyItems.go +++ /dev/null @@ -1,7046 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyearlyitems - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedEarlyItemsPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ForgeFedEarlyItemsPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsLinkMember vocab.ActivityStreamsLink - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMentionMember vocab.ActivityStreamsMention - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ForgeFedEarlyItemsProperty -} - -// NewForgeFedEarlyItemsPropertyIterator creates a new ForgeFedEarlyItems property. -func NewForgeFedEarlyItemsPropertyIterator() *ForgeFedEarlyItemsPropertyIterator { - return &ForgeFedEarlyItemsPropertyIterator{alias: ""} -} - -// deserializeForgeFedEarlyItemsPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeForgeFedEarlyItemsPropertyIterator(i interface{}, aliasMap map[string]string) (*ForgeFedEarlyItemsPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedEarlyItemsPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsLinkMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsMentionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ForgeFedEarlyItemsPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsLink returns the value of this property. When -// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an -// arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink { - return this.activitystreamsLinkMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMention returns the value of this property. When -// IsActivityStreamsMention returns false, GetActivityStreamsMention will -// return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention { - return this.activitystreamsMentionMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ForgeFedEarlyItemsPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ForgeFedEarlyItemsPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ForgeFedEarlyItemsPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsLink() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMention() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsLink returns true if this property has a type of "Link". When -// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to -// access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsLink() bool { - return this.activitystreamsLinkMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMention returns true if this property has a type of "Mention". -// When true, use the GetActivityStreamsMention and SetActivityStreamsMention -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsMention() bool { - return this.activitystreamsMentionMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ForgeFedEarlyItemsPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ForgeFedEarlyItemsPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ForgeFedEarlyItemsPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedEarlyItemsPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsLink() { - child = this.GetActivityStreamsLink().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMention() { - child = this.GetActivityStreamsMention().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedEarlyItemsPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsLink() { - return 1 - } - if this.IsActivityStreamsAccept() { - return 2 - } - if this.IsActivityStreamsActivity() { - return 3 - } - if this.IsActivityStreamsAdd() { - return 4 - } - if this.IsActivityStreamsAnnounce() { - return 5 - } - if this.IsActivityStreamsApplication() { - return 6 - } - if this.IsActivityStreamsArrive() { - return 7 - } - if this.IsActivityStreamsArticle() { - return 8 - } - if this.IsActivityStreamsAudio() { - return 9 - } - if this.IsActivityStreamsBlock() { - return 10 - } - if this.IsForgeFedBranch() { - return 11 - } - if this.IsActivityStreamsCollection() { - return 12 - } - if this.IsActivityStreamsCollectionPage() { - return 13 - } - if this.IsForgeFedCommit() { - return 14 - } - if this.IsActivityStreamsCreate() { - return 15 - } - if this.IsActivityStreamsDelete() { - return 16 - } - if this.IsActivityStreamsDislike() { - return 17 - } - if this.IsActivityStreamsDocument() { - return 18 - } - if this.IsTootEmoji() { - return 19 - } - if this.IsActivityStreamsEvent() { - return 20 - } - if this.IsActivityStreamsFlag() { - return 21 - } - if this.IsActivityStreamsFollow() { - return 22 - } - if this.IsActivityStreamsGroup() { - return 23 - } - if this.IsTootIdentityProof() { - return 24 - } - if this.IsActivityStreamsIgnore() { - return 25 - } - if this.IsActivityStreamsImage() { - return 26 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 27 - } - if this.IsActivityStreamsInvite() { - return 28 - } - if this.IsActivityStreamsJoin() { - return 29 - } - if this.IsActivityStreamsLeave() { - return 30 - } - if this.IsActivityStreamsLike() { - return 31 - } - if this.IsActivityStreamsListen() { - return 32 - } - if this.IsActivityStreamsMention() { - return 33 - } - if this.IsActivityStreamsMove() { - return 34 - } - if this.IsActivityStreamsNote() { - return 35 - } - if this.IsActivityStreamsOffer() { - return 36 - } - if this.IsActivityStreamsOrderedCollection() { - return 37 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 38 - } - if this.IsActivityStreamsOrganization() { - return 39 - } - if this.IsActivityStreamsPage() { - return 40 - } - if this.IsActivityStreamsPerson() { - return 41 - } - if this.IsActivityStreamsPlace() { - return 42 - } - if this.IsActivityStreamsProfile() { - return 43 - } - if this.IsForgeFedPush() { - return 44 - } - if this.IsActivityStreamsQuestion() { - return 45 - } - if this.IsActivityStreamsRead() { - return 46 - } - if this.IsActivityStreamsReject() { - return 47 - } - if this.IsActivityStreamsRelationship() { - return 48 - } - if this.IsActivityStreamsRemove() { - return 49 - } - if this.IsForgeFedRepository() { - return 50 - } - if this.IsActivityStreamsService() { - return 51 - } - if this.IsActivityStreamsTentativeAccept() { - return 52 - } - if this.IsActivityStreamsTentativeReject() { - return 53 - } - if this.IsForgeFedTicket() { - return 54 - } - if this.IsForgeFedTicketDependency() { - return 55 - } - if this.IsActivityStreamsTombstone() { - return 56 - } - if this.IsActivityStreamsTravel() { - return 57 - } - if this.IsActivityStreamsUndo() { - return 58 - } - if this.IsActivityStreamsUpdate() { - return 59 - } - if this.IsActivityStreamsVideo() { - return 60 - } - if this.IsActivityStreamsView() { - return 61 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedEarlyItemsPropertyIterator) LessThan(o vocab.ForgeFedEarlyItemsPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ForgeFedEarlyItems". -func (this ForgeFedEarlyItemsPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ForgeFedEarlyItems" - } else { - return "ForgeFedEarlyItems" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ForgeFedEarlyItemsPropertyIterator) Next() vocab.ForgeFedEarlyItemsPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ForgeFedEarlyItemsPropertyIterator) Prev() vocab.ForgeFedEarlyItemsPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsLink sets the value of this property. Calling -// IsActivityStreamsLink afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.clear() - this.activitystreamsLinkMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMention sets the value of this property. Calling -// IsActivityStreamsMention afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.clear() - this.activitystreamsMentionMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ForgeFedEarlyItemsPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ForgeFedEarlyItemsPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLink); ok { - this.SetActivityStreamsLink(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMention); ok { - this.SetActivityStreamsMention(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ForgeFedEarlyItems property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ForgeFedEarlyItemsPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsLinkMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMentionMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedEarlyItemsPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsLink() { - return this.GetActivityStreamsLink().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMention() { - return this.GetActivityStreamsMention().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ForgeFedEarlyItemsProperty is the non-functional property "earlyItems". It is -// permitted to have one or more values, and of different value types. -type ForgeFedEarlyItemsProperty struct { - properties []*ForgeFedEarlyItemsPropertyIterator - alias string -} - -// DeserializeEarlyItemsProperty creates a "earlyItems" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeEarlyItemsProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedEarlyItemsProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "earlyItems" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "earlyItems") - } - i, ok := m[propName] - - if ok { - this := &ForgeFedEarlyItemsProperty{ - alias: alias, - properties: []*ForgeFedEarlyItemsPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeForgeFedEarlyItemsPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeForgeFedEarlyItemsPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewForgeFedEarlyItemsProperty creates a new earlyItems property. -func NewForgeFedEarlyItemsProperty() *ForgeFedEarlyItemsProperty { - return &ForgeFedEarlyItemsProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "earlyItems". Invalidates iterators that are traversing using -// Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "earlyItems". Invalidates iterators that are traversing using -// Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "earlyItems". Invalidates iterators that are -// traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "earlyItems". Invalidates iterators that are traversing using -// Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "earlyItems". Invalidates iterators that are -// traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "earlyItems". Invalidates iterators that are -// traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "earlyItems". Invalidates iterators that are traversing using -// Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "earlyItems". Invalidates iterators that are traversing using -// Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "earlyItems". Invalidates iterators -// that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLink appends a Link value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMention appends a Mention value to the back of a list of -// the property "earlyItems". Invalidates iterators that are traversing using -// Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "earlyItems". Invalidates iterators that are -// traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "earlyItems". Invalidates -// iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "earlyItems". Invalidates iterators that are -// traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "earlyItems". Invalidates iterators that are traversing using -// Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "earlyItems". Invalidates iterators that are traversing using -// Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "earlyItems". Invalidates iterators that are -// traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "earlyItems". Invalidates iterators that are traversing using -// Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "earlyItems". Invalidates iterators that are -// traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "earlyItems". Invalidates iterators that are -// traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "earlyItems". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "earlyItems". Invalidates iterators that are traversing using -// Prev. -func (this *ForgeFedEarlyItemsProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "earlyItems". Invalidates iterators that are -// traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "earlyItems" -func (this *ForgeFedEarlyItemsProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "earlyItems". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedEarlyItemsProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "earlyItems". Invalidates iterators that are traversing using -// Prev. -func (this *ForgeFedEarlyItemsProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "earlyItems". Invalidates iterators that are traversing using -// Prev. Returns an error if the type is not a valid one to set for this -// property. -func (this *ForgeFedEarlyItemsProperty) AppendType(t vocab.Type) error { - n := &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ForgeFedEarlyItemsProperty) At(index int) vocab.ForgeFedEarlyItemsPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ForgeFedEarlyItemsProperty) Begin() vocab.ForgeFedEarlyItemsPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ForgeFedEarlyItemsProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ForgeFedEarlyItemsProperty) End() vocab.ForgeFedEarlyItemsPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "earlyItems". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "earlyItems". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "earlyItems". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "earlyItems". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLink inserts a Link value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMention inserts a Mention value at the specified index for -// a property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "earlyItems". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "earlyItems". Existing elements -// at that index and higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "earlyItems". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "earlyItems". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "earlyItems". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "earlyItems". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "earlyItems". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "earlyItems". Existing elements at that -// index and higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property "earlyItems". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "earlyItems". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "earlyItems". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "earlyItems". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ForgeFedEarlyItemsProperty) InsertType(idx int, t vocab.Type) error { - n := &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedEarlyItemsProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ForgeFedEarlyItemsProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "earlyItems" property. -func (this ForgeFedEarlyItemsProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ForgeFedEarlyItemsProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsLink() - rhs := this.properties[j].GetActivityStreamsLink() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsMention() - rhs := this.properties[j].GetActivityStreamsMention() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 60 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 61 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedEarlyItemsProperty) LessThan(o vocab.ForgeFedEarlyItemsProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("earlyItems") with any alias. -func (this ForgeFedEarlyItemsProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "earlyItems" - } else { - return "earlyItems" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "earlyItems". Invalidates all -// iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLink prepends a Link value to the front of a list of the -// property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMention prepends a Mention value to the front of a list -// of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "earlyItems". Invalidates all -// iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "earlyItems". -func (this *ForgeFedEarlyItemsProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "earlyItems". Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "earlyItems". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *ForgeFedEarlyItemsProperty) PrependType(t vocab.Type) error { - n := &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ForgeFedEarlyItemsPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "earlyItems", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ForgeFedEarlyItemsPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedEarlyItemsProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "earlyItems". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "earlyItems". Panics if the index -// is out of bounds. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLink sets a Link value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsLinkMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMention sets a Mention value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsMentionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "earlyItems". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "earlyItems". Panics if the -// index is out of bounds. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "earlyItems". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "earlyItems". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "earlyItems". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ForgeFedEarlyItemsProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "earlyItems". Panics if the index is out of bounds. Invalidates -// all iterators. -func (this *ForgeFedEarlyItemsProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "earlyItems". Panics if the index is out -// of bounds. Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "earlyItems". Panics if the index is out of bounds. -func (this *ForgeFedEarlyItemsProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "earlyItems". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ForgeFedEarlyItemsProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "earlyItems". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedEarlyItemsProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "earlyItems". Invalidates all iterators. Returns an error if the type is -// not a valid one to set for this property. Panics if the index is out of -// bounds. -func (this *ForgeFedEarlyItemsProperty) SetType(idx int, t vocab.Type) error { - n := &ForgeFedEarlyItemsPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "earlyItems" property. -func (this ForgeFedEarlyItemsProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesadded/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesadded/gen_doc.go deleted file mode 100644 index 5edf4dfca..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesadded/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyfilesadded contains the implementation for the filesAdded -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyfilesadded diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesadded/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesadded/gen_pkg.go deleted file mode 100644 index b8295e752..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesadded/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfilesadded - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesadded/gen_property_forgefed_filesAdded.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesadded/gen_property_forgefed_filesAdded.go deleted file mode 100644 index 9aa31f121..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesadded/gen_property_forgefed_filesAdded.go +++ /dev/null @@ -1,531 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfilesadded - -import ( - "fmt" - string1 "github.com/go-fed/activity/streams/values/string" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedFilesAddedPropertyIterator is an iterator for a property. It is -// permitted to be a single default-valued value type. -type ForgeFedFilesAddedPropertyIterator struct { - xmlschemaStringMember string - hasStringMember bool - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ForgeFedFilesAddedProperty -} - -// NewForgeFedFilesAddedPropertyIterator creates a new ForgeFedFilesAdded property. -func NewForgeFedFilesAddedPropertyIterator() *ForgeFedFilesAddedPropertyIterator { - return &ForgeFedFilesAddedPropertyIterator{alias: ""} -} - -// deserializeForgeFedFilesAddedPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeForgeFedFilesAddedPropertyIterator(i interface{}, aliasMap map[string]string) (*ForgeFedFilesAddedPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedFilesAddedPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &ForgeFedFilesAddedPropertyIterator{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } - this := &ForgeFedFilesAddedPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsXMLSchemaString returns false, -// Get will return any arbitrary value. -func (this ForgeFedFilesAddedPropertyIterator) Get() string { - return this.xmlschemaStringMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ForgeFedFilesAddedPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ForgeFedFilesAddedPropertyIterator) HasAny() bool { - return this.IsXMLSchemaString() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ForgeFedFilesAddedPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaString returns true if this property is set and not an IRI. -func (this ForgeFedFilesAddedPropertyIterator) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedFilesAddedPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedFilesAddedPropertyIterator) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedFilesAddedPropertyIterator) LessThan(o vocab.ForgeFedFilesAddedPropertyIterator) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return string1.LessString(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "ForgeFedFilesAdded". -func (this ForgeFedFilesAddedPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ForgeFedFilesAdded" - } else { - return "ForgeFedFilesAdded" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ForgeFedFilesAddedPropertyIterator) Next() vocab.ForgeFedFilesAddedPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ForgeFedFilesAddedPropertyIterator) Prev() vocab.ForgeFedFilesAddedPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsXMLSchemaString afterwards will -// return true. -func (this *ForgeFedFilesAddedPropertyIterator) Set(v string) { - this.clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ForgeFedFilesAddedPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// clear ensures no value of this property is set. Calling IsXMLSchemaString -// afterwards will return false. -func (this *ForgeFedFilesAddedPropertyIterator) clear() { - this.unknown = nil - this.iri = nil - this.hasStringMember = false -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedFilesAddedPropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ForgeFedFilesAddedProperty is the non-functional property "filesAdded". It is -// permitted to have one or more values, and of different value types. -type ForgeFedFilesAddedProperty struct { - properties []*ForgeFedFilesAddedPropertyIterator - alias string -} - -// DeserializeFilesAddedProperty creates a "filesAdded" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeFilesAddedProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedFilesAddedProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "filesAdded" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "filesAdded") - } - i, ok := m[propName] - - if ok { - this := &ForgeFedFilesAddedProperty{ - alias: alias, - properties: []*ForgeFedFilesAddedPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeForgeFedFilesAddedPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeForgeFedFilesAddedPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewForgeFedFilesAddedProperty creates a new filesAdded property. -func NewForgeFedFilesAddedProperty() *ForgeFedFilesAddedProperty { - return &ForgeFedFilesAddedProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "filesAdded" -func (this *ForgeFedFilesAddedProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ForgeFedFilesAddedPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendXMLSchemaString appends a string value to the back of a list of the -// property "filesAdded". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedFilesAddedProperty) AppendXMLSchemaString(v string) { - this.properties = append(this.properties, &ForgeFedFilesAddedPropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: this.Len(), - parent: this, - xmlschemaStringMember: v, - }) -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ForgeFedFilesAddedProperty) At(index int) vocab.ForgeFedFilesAddedPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ForgeFedFilesAddedProperty) Begin() vocab.ForgeFedFilesAddedPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ForgeFedFilesAddedProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ForgeFedFilesAddedProperty) End() vocab.ForgeFedFilesAddedPropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property "filesAdded". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *ForgeFedFilesAddedProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedFilesAddedPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaString inserts a string value at the specified index for a -// property "filesAdded". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedFilesAddedProperty) InsertXMLSchemaString(idx int, v string) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedFilesAddedPropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedFilesAddedProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ForgeFedFilesAddedProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "filesAdded" property. -func (this ForgeFedFilesAddedProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ForgeFedFilesAddedProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].Get() - rhs := this.properties[j].Get() - return string1.LessString(lhs, rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedFilesAddedProperty) LessThan(o vocab.ForgeFedFilesAddedProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("filesAdded") with any alias. -func (this ForgeFedFilesAddedProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "filesAdded" - } else { - return "filesAdded" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "filesAdded". -func (this *ForgeFedFilesAddedProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ForgeFedFilesAddedPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaString prepends a string value to the front of a list of the -// property "filesAdded". Invalidates all iterators. -func (this *ForgeFedFilesAddedProperty) PrependXMLSchemaString(v string) { - this.properties = append([]*ForgeFedFilesAddedPropertyIterator{{ - alias: this.alias, - hasStringMember: true, - myIdx: 0, - parent: this, - xmlschemaStringMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Remove deletes an element at the specified index from a list of the property -// "filesAdded", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedFilesAddedProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ForgeFedFilesAddedPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedFilesAddedProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// Set sets a string value to be at the specified index for the property -// "filesAdded". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ForgeFedFilesAddedProperty) Set(idx int, v string) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedFilesAddedPropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "filesAdded". Panics if the index is out of bounds. -func (this *ForgeFedFilesAddedProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedFilesAddedPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// Swap swaps the location of values at two indices for the "filesAdded" property. -func (this ForgeFedFilesAddedProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified/gen_doc.go deleted file mode 100644 index 1a1e9728b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyfilesmodified contains the implementation for the filesModified -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyfilesmodified diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified/gen_pkg.go deleted file mode 100644 index e8e2adf4d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfilesmodified - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified/gen_property_forgefed_filesModified.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified/gen_property_forgefed_filesModified.go deleted file mode 100644 index a0537d1a6..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified/gen_property_forgefed_filesModified.go +++ /dev/null @@ -1,535 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfilesmodified - -import ( - "fmt" - string1 "github.com/go-fed/activity/streams/values/string" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedFilesModifiedPropertyIterator is an iterator for a property. It is -// permitted to be a single default-valued value type. -type ForgeFedFilesModifiedPropertyIterator struct { - xmlschemaStringMember string - hasStringMember bool - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ForgeFedFilesModifiedProperty -} - -// NewForgeFedFilesModifiedPropertyIterator creates a new ForgeFedFilesModified -// property. -func NewForgeFedFilesModifiedPropertyIterator() *ForgeFedFilesModifiedPropertyIterator { - return &ForgeFedFilesModifiedPropertyIterator{alias: ""} -} - -// deserializeForgeFedFilesModifiedPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeForgeFedFilesModifiedPropertyIterator(i interface{}, aliasMap map[string]string) (*ForgeFedFilesModifiedPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedFilesModifiedPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &ForgeFedFilesModifiedPropertyIterator{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } - this := &ForgeFedFilesModifiedPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsXMLSchemaString returns false, -// Get will return any arbitrary value. -func (this ForgeFedFilesModifiedPropertyIterator) Get() string { - return this.xmlschemaStringMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ForgeFedFilesModifiedPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ForgeFedFilesModifiedPropertyIterator) HasAny() bool { - return this.IsXMLSchemaString() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ForgeFedFilesModifiedPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaString returns true if this property is set and not an IRI. -func (this ForgeFedFilesModifiedPropertyIterator) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedFilesModifiedPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedFilesModifiedPropertyIterator) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedFilesModifiedPropertyIterator) LessThan(o vocab.ForgeFedFilesModifiedPropertyIterator) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return string1.LessString(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "ForgeFedFilesModified". -func (this ForgeFedFilesModifiedPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ForgeFedFilesModified" - } else { - return "ForgeFedFilesModified" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ForgeFedFilesModifiedPropertyIterator) Next() vocab.ForgeFedFilesModifiedPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ForgeFedFilesModifiedPropertyIterator) Prev() vocab.ForgeFedFilesModifiedPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsXMLSchemaString afterwards will -// return true. -func (this *ForgeFedFilesModifiedPropertyIterator) Set(v string) { - this.clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ForgeFedFilesModifiedPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// clear ensures no value of this property is set. Calling IsXMLSchemaString -// afterwards will return false. -func (this *ForgeFedFilesModifiedPropertyIterator) clear() { - this.unknown = nil - this.iri = nil - this.hasStringMember = false -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedFilesModifiedPropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ForgeFedFilesModifiedProperty is the non-functional property "filesModified". -// It is permitted to have one or more values, and of different value types. -type ForgeFedFilesModifiedProperty struct { - properties []*ForgeFedFilesModifiedPropertyIterator - alias string -} - -// DeserializeFilesModifiedProperty creates a "filesModified" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeFilesModifiedProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedFilesModifiedProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "filesModified" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "filesModified") - } - i, ok := m[propName] - - if ok { - this := &ForgeFedFilesModifiedProperty{ - alias: alias, - properties: []*ForgeFedFilesModifiedPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeForgeFedFilesModifiedPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeForgeFedFilesModifiedPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewForgeFedFilesModifiedProperty creates a new filesModified property. -func NewForgeFedFilesModifiedProperty() *ForgeFedFilesModifiedProperty { - return &ForgeFedFilesModifiedProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "filesModified" -func (this *ForgeFedFilesModifiedProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ForgeFedFilesModifiedPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendXMLSchemaString appends a string value to the back of a list of the -// property "filesModified". Invalidates iterators that are traversing using -// Prev. -func (this *ForgeFedFilesModifiedProperty) AppendXMLSchemaString(v string) { - this.properties = append(this.properties, &ForgeFedFilesModifiedPropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: this.Len(), - parent: this, - xmlschemaStringMember: v, - }) -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ForgeFedFilesModifiedProperty) At(index int) vocab.ForgeFedFilesModifiedPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ForgeFedFilesModifiedProperty) Begin() vocab.ForgeFedFilesModifiedPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ForgeFedFilesModifiedProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ForgeFedFilesModifiedProperty) End() vocab.ForgeFedFilesModifiedPropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property -// "filesModified". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ForgeFedFilesModifiedProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedFilesModifiedPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaString inserts a string value at the specified index for a -// property "filesModified". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedFilesModifiedProperty) InsertXMLSchemaString(idx int, v string) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedFilesModifiedPropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedFilesModifiedProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ForgeFedFilesModifiedProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "filesModified" property. -func (this ForgeFedFilesModifiedProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ForgeFedFilesModifiedProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].Get() - rhs := this.properties[j].Get() - return string1.LessString(lhs, rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedFilesModifiedProperty) LessThan(o vocab.ForgeFedFilesModifiedProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("filesModified") with any alias. -func (this ForgeFedFilesModifiedProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "filesModified" - } else { - return "filesModified" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "filesModified". -func (this *ForgeFedFilesModifiedProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ForgeFedFilesModifiedPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaString prepends a string value to the front of a list of the -// property "filesModified". Invalidates all iterators. -func (this *ForgeFedFilesModifiedProperty) PrependXMLSchemaString(v string) { - this.properties = append([]*ForgeFedFilesModifiedPropertyIterator{{ - alias: this.alias, - hasStringMember: true, - myIdx: 0, - parent: this, - xmlschemaStringMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Remove deletes an element at the specified index from a list of the property -// "filesModified", regardless of its type. Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ForgeFedFilesModifiedProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ForgeFedFilesModifiedPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedFilesModifiedProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// Set sets a string value to be at the specified index for the property -// "filesModified". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ForgeFedFilesModifiedProperty) Set(idx int, v string) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedFilesModifiedPropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "filesModified". Panics if the index is out of bounds. -func (this *ForgeFedFilesModifiedProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedFilesModifiedPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// Swap swaps the location of values at two indices for the "filesModified" -// property. -func (this ForgeFedFilesModifiedProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved/gen_doc.go deleted file mode 100644 index b7a0f32fc..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyfilesremoved contains the implementation for the filesRemoved -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyfilesremoved diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved/gen_pkg.go deleted file mode 100644 index c0b64e635..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfilesremoved - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved/gen_property_forgefed_filesRemoved.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved/gen_property_forgefed_filesRemoved.go deleted file mode 100644 index 48478c13a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved/gen_property_forgefed_filesRemoved.go +++ /dev/null @@ -1,535 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfilesremoved - -import ( - "fmt" - string1 "github.com/go-fed/activity/streams/values/string" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedFilesRemovedPropertyIterator is an iterator for a property. It is -// permitted to be a single default-valued value type. -type ForgeFedFilesRemovedPropertyIterator struct { - xmlschemaStringMember string - hasStringMember bool - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ForgeFedFilesRemovedProperty -} - -// NewForgeFedFilesRemovedPropertyIterator creates a new ForgeFedFilesRemoved -// property. -func NewForgeFedFilesRemovedPropertyIterator() *ForgeFedFilesRemovedPropertyIterator { - return &ForgeFedFilesRemovedPropertyIterator{alias: ""} -} - -// deserializeForgeFedFilesRemovedPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeForgeFedFilesRemovedPropertyIterator(i interface{}, aliasMap map[string]string) (*ForgeFedFilesRemovedPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedFilesRemovedPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &ForgeFedFilesRemovedPropertyIterator{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } - this := &ForgeFedFilesRemovedPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsXMLSchemaString returns false, -// Get will return any arbitrary value. -func (this ForgeFedFilesRemovedPropertyIterator) Get() string { - return this.xmlschemaStringMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ForgeFedFilesRemovedPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ForgeFedFilesRemovedPropertyIterator) HasAny() bool { - return this.IsXMLSchemaString() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ForgeFedFilesRemovedPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaString returns true if this property is set and not an IRI. -func (this ForgeFedFilesRemovedPropertyIterator) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedFilesRemovedPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedFilesRemovedPropertyIterator) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedFilesRemovedPropertyIterator) LessThan(o vocab.ForgeFedFilesRemovedPropertyIterator) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return string1.LessString(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "ForgeFedFilesRemoved". -func (this ForgeFedFilesRemovedPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ForgeFedFilesRemoved" - } else { - return "ForgeFedFilesRemoved" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ForgeFedFilesRemovedPropertyIterator) Next() vocab.ForgeFedFilesRemovedPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ForgeFedFilesRemovedPropertyIterator) Prev() vocab.ForgeFedFilesRemovedPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsXMLSchemaString afterwards will -// return true. -func (this *ForgeFedFilesRemovedPropertyIterator) Set(v string) { - this.clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ForgeFedFilesRemovedPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// clear ensures no value of this property is set. Calling IsXMLSchemaString -// afterwards will return false. -func (this *ForgeFedFilesRemovedPropertyIterator) clear() { - this.unknown = nil - this.iri = nil - this.hasStringMember = false -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedFilesRemovedPropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ForgeFedFilesRemovedProperty is the non-functional property "filesRemoved". It -// is permitted to have one or more values, and of different value types. -type ForgeFedFilesRemovedProperty struct { - properties []*ForgeFedFilesRemovedPropertyIterator - alias string -} - -// DeserializeFilesRemovedProperty creates a "filesRemoved" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeFilesRemovedProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedFilesRemovedProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "filesRemoved" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "filesRemoved") - } - i, ok := m[propName] - - if ok { - this := &ForgeFedFilesRemovedProperty{ - alias: alias, - properties: []*ForgeFedFilesRemovedPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeForgeFedFilesRemovedPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeForgeFedFilesRemovedPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewForgeFedFilesRemovedProperty creates a new filesRemoved property. -func NewForgeFedFilesRemovedProperty() *ForgeFedFilesRemovedProperty { - return &ForgeFedFilesRemovedProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "filesRemoved" -func (this *ForgeFedFilesRemovedProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ForgeFedFilesRemovedPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendXMLSchemaString appends a string value to the back of a list of the -// property "filesRemoved". Invalidates iterators that are traversing using -// Prev. -func (this *ForgeFedFilesRemovedProperty) AppendXMLSchemaString(v string) { - this.properties = append(this.properties, &ForgeFedFilesRemovedPropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: this.Len(), - parent: this, - xmlschemaStringMember: v, - }) -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ForgeFedFilesRemovedProperty) At(index int) vocab.ForgeFedFilesRemovedPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ForgeFedFilesRemovedProperty) Begin() vocab.ForgeFedFilesRemovedPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ForgeFedFilesRemovedProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ForgeFedFilesRemovedProperty) End() vocab.ForgeFedFilesRemovedPropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property -// "filesRemoved". Existing elements at that index and higher are shifted back -// once. Invalidates all iterators. -func (this *ForgeFedFilesRemovedProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedFilesRemovedPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaString inserts a string value at the specified index for a -// property "filesRemoved". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedFilesRemovedProperty) InsertXMLSchemaString(idx int, v string) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedFilesRemovedPropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedFilesRemovedProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ForgeFedFilesRemovedProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "filesRemoved" property. -func (this ForgeFedFilesRemovedProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ForgeFedFilesRemovedProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].Get() - rhs := this.properties[j].Get() - return string1.LessString(lhs, rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedFilesRemovedProperty) LessThan(o vocab.ForgeFedFilesRemovedProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("filesRemoved") with any alias. -func (this ForgeFedFilesRemovedProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "filesRemoved" - } else { - return "filesRemoved" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "filesRemoved". -func (this *ForgeFedFilesRemovedProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ForgeFedFilesRemovedPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaString prepends a string value to the front of a list of the -// property "filesRemoved". Invalidates all iterators. -func (this *ForgeFedFilesRemovedProperty) PrependXMLSchemaString(v string) { - this.properties = append([]*ForgeFedFilesRemovedPropertyIterator{{ - alias: this.alias, - hasStringMember: true, - myIdx: 0, - parent: this, - xmlschemaStringMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Remove deletes an element at the specified index from a list of the property -// "filesRemoved", regardless of its type. Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ForgeFedFilesRemovedProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ForgeFedFilesRemovedPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedFilesRemovedProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// Set sets a string value to be at the specified index for the property -// "filesRemoved". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ForgeFedFilesRemovedProperty) Set(idx int, v string) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedFilesRemovedPropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "filesRemoved". Panics if the index is out of bounds. -func (this *ForgeFedFilesRemovedProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedFilesRemovedPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// Swap swaps the location of values at two indices for the "filesRemoved" -// property. -func (this ForgeFedFilesRemovedProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_forks/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_forks/gen_doc.go deleted file mode 100644 index b78bc1dda..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_forks/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyforks contains the implementation for the forks property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyforks diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_forks/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_forks/gen_pkg.go deleted file mode 100644 index dae869a36..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_forks/gen_pkg.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyforks - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_forks/gen_property_forgefed_forks.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_forks/gen_property_forgefed_forks.go deleted file mode 100644 index adc5bcbcc..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_forks/gen_property_forgefed_forks.go +++ /dev/null @@ -1,268 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyforks - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedForksProperty is the functional property "forks". It is permitted to be -// one of multiple value types. At most, one type of value can be present, or -// none at all. Setting a value will clear the other types of values so that -// only one of the 'Is' methods will return true. It is possible to clear all -// values, so that this property is empty. -type ForgeFedForksProperty struct { - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeForksProperty creates a "forks" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeForksProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedForksProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "forks" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "forks") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedForksProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedForksProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedForksProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ForgeFedForksProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewForgeFedForksProperty creates a new forks property. -func NewForgeFedForksProperty() *ForgeFedForksProperty { - return &ForgeFedForksProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ForgeFedForksProperty) Clear() { - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ForgeFedForksProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ForgeFedForksProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ForgeFedForksProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ForgeFedForksProperty) GetType() vocab.Type { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ForgeFedForksProperty) HasAny() bool { - return this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ForgeFedForksProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ForgeFedForksProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ForgeFedForksProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedForksProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedForksProperty) KindIndex() int { - if this.IsActivityStreamsOrderedCollection() { - return 0 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 1 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedForksProperty) LessThan(o vocab.ForgeFedForksProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "forks". -func (this ForgeFedForksProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "forks" - } else { - return "forks" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedForksProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ForgeFedForksProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ForgeFedForksProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ForgeFedForksProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ForgeFedForksProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on forks property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_hash/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_hash/gen_doc.go deleted file mode 100644 index b2b3cf142..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_hash/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyhash contains the implementation for the hash property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyhash diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_hash/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_hash/gen_pkg.go deleted file mode 100644 index b0d3d5e34..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_hash/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyhash - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_hash/gen_property_forgefed_hash.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_hash/gen_property_forgefed_hash.go deleted file mode 100644 index cae2c472a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_hash/gen_property_forgefed_hash.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyhash - -import ( - "fmt" - string1 "github.com/go-fed/activity/streams/values/string" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedHashProperty is the functional property "hash". It is permitted to be a -// single default-valued value type. -type ForgeFedHashProperty struct { - xmlschemaStringMember string - hasStringMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeHashProperty creates a "hash" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeHashProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedHashProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "hash" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "hash") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedHashProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &ForgeFedHashProperty{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } - this := &ForgeFedHashProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewForgeFedHashProperty creates a new hash property. -func NewForgeFedHashProperty() *ForgeFedHashProperty { - return &ForgeFedHashProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaString -// afterwards will return false. -func (this *ForgeFedHashProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasStringMember = false -} - -// Get returns the value of this property. When IsXMLSchemaString returns false, -// Get will return any arbitrary value. -func (this ForgeFedHashProperty) Get() string { - return this.xmlschemaStringMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ForgeFedHashProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ForgeFedHashProperty) HasAny() bool { - return this.IsXMLSchemaString() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ForgeFedHashProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaString returns true if this property is set and not an IRI. -func (this ForgeFedHashProperty) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedHashProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedHashProperty) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedHashProperty) LessThan(o vocab.ForgeFedHashProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return string1.LessString(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "hash". -func (this ForgeFedHashProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "hash" - } else { - return "hash" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedHashProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaString afterwards will -// return true. -func (this *ForgeFedHashProperty) Set(v string) { - this.Clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ForgeFedHashProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_isresolved/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_isresolved/gen_doc.go deleted file mode 100644 index bd88e0052..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_isresolved/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyisresolved contains the implementation for the isResolved -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyisresolved diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_isresolved/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_isresolved/gen_pkg.go deleted file mode 100644 index 33f271d34..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_isresolved/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyisresolved - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_isresolved/gen_property_forgefed_isResolved.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_isresolved/gen_property_forgefed_isResolved.go deleted file mode 100644 index 625fcb9d0..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_isresolved/gen_property_forgefed_isResolved.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyisresolved - -import ( - "fmt" - boolean "github.com/go-fed/activity/streams/values/boolean" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedIsResolvedProperty is the functional property "isResolved". It is -// permitted to be a single default-valued value type. -type ForgeFedIsResolvedProperty struct { - xmlschemaBooleanMember bool - hasBooleanMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeIsResolvedProperty creates a "isResolved" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeIsResolvedProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedIsResolvedProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "isResolved" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "isResolved") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedIsResolvedProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := boolean.DeserializeBoolean(i); err == nil { - this := &ForgeFedIsResolvedProperty{ - alias: alias, - hasBooleanMember: true, - xmlschemaBooleanMember: v, - } - return this, nil - } - this := &ForgeFedIsResolvedProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewForgeFedIsResolvedProperty creates a new isResolved property. -func NewForgeFedIsResolvedProperty() *ForgeFedIsResolvedProperty { - return &ForgeFedIsResolvedProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaBoolean -// afterwards will return false. -func (this *ForgeFedIsResolvedProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasBooleanMember = false -} - -// Get returns the value of this property. When IsXMLSchemaBoolean returns false, -// Get will return any arbitrary value. -func (this ForgeFedIsResolvedProperty) Get() bool { - return this.xmlschemaBooleanMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ForgeFedIsResolvedProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ForgeFedIsResolvedProperty) HasAny() bool { - return this.IsXMLSchemaBoolean() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ForgeFedIsResolvedProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaBoolean returns true if this property is set and not an IRI. -func (this ForgeFedIsResolvedProperty) IsXMLSchemaBoolean() bool { - return this.hasBooleanMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedIsResolvedProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedIsResolvedProperty) KindIndex() int { - if this.IsXMLSchemaBoolean() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedIsResolvedProperty) LessThan(o vocab.ForgeFedIsResolvedProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaBoolean() && o.IsXMLSchemaBoolean() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return boolean.LessBoolean(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "isResolved". -func (this ForgeFedIsResolvedProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "isResolved" - } else { - return "isResolved" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedIsResolvedProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaBoolean() { - return boolean.SerializeBoolean(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaBoolean afterwards will -// return true. -func (this *ForgeFedIsResolvedProperty) Set(v bool) { - this.Clear() - this.xmlschemaBooleanMember = v - this.hasBooleanMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ForgeFedIsResolvedProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ref/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ref/gen_doc.go deleted file mode 100644 index db28dfa5e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ref/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyref contains the implementation for the ref property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyref diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ref/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ref/gen_pkg.go deleted file mode 100644 index 27120c487..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ref/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyref - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ref/gen_property_forgefed_ref.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ref/gen_property_forgefed_ref.go deleted file mode 100644 index 3fe0e50a1..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ref/gen_property_forgefed_ref.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyref - -import ( - "fmt" - string1 "github.com/go-fed/activity/streams/values/string" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedRefProperty is the functional property "ref". It is permitted to be a -// single default-valued value type. -type ForgeFedRefProperty struct { - xmlschemaStringMember string - hasStringMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeRefProperty creates a "ref" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeRefProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedRefProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "ref" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "ref") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedRefProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &ForgeFedRefProperty{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } - this := &ForgeFedRefProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewForgeFedRefProperty creates a new ref property. -func NewForgeFedRefProperty() *ForgeFedRefProperty { - return &ForgeFedRefProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaString -// afterwards will return false. -func (this *ForgeFedRefProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasStringMember = false -} - -// Get returns the value of this property. When IsXMLSchemaString returns false, -// Get will return any arbitrary value. -func (this ForgeFedRefProperty) Get() string { - return this.xmlschemaStringMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this ForgeFedRefProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this ForgeFedRefProperty) HasAny() bool { - return this.IsXMLSchemaString() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this ForgeFedRefProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaString returns true if this property is set and not an IRI. -func (this ForgeFedRefProperty) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedRefProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedRefProperty) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedRefProperty) LessThan(o vocab.ForgeFedRefProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return string1.LessString(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "ref". -func (this ForgeFedRefProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ref" - } else { - return "ref" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedRefProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaString afterwards will -// return true. -func (this *ForgeFedRefProperty) Set(v string) { - this.Clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *ForgeFedRefProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_team/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_team/gen_doc.go deleted file mode 100644 index 7ce672b00..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_team/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyteam contains the implementation for the team property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyteam diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_team/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_team/gen_pkg.go deleted file mode 100644 index 8e1684326..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_team/gen_pkg.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyteam - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_team/gen_property_forgefed_team.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_team/gen_property_forgefed_team.go deleted file mode 100644 index 56670c34d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_team/gen_property_forgefed_team.go +++ /dev/null @@ -1,360 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyteam - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedTeamProperty is the functional property "team". It is permitted to be -// one of multiple value types. At most, one type of value can be present, or -// none at all. Setting a value will clear the other types of values so that -// only one of the 'Is' methods will return true. It is possible to clear all -// values, so that this property is empty. -type ForgeFedTeamProperty struct { - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeTeamProperty creates a "team" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeTeamProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedTeamProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "team" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "team") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedTeamProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTeamProperty{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTeamProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTeamProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTeamProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &ForgeFedTeamProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewForgeFedTeamProperty creates a new team property. -func NewForgeFedTeamProperty() *ForgeFedTeamProperty { - return &ForgeFedTeamProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ForgeFedTeamProperty) Clear() { - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ForgeFedTeamProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ForgeFedTeamProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ForgeFedTeamProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ForgeFedTeamProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ForgeFedTeamProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ForgeFedTeamProperty) GetType() vocab.Type { - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ForgeFedTeamProperty) HasAny() bool { - return this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ForgeFedTeamProperty) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ForgeFedTeamProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ForgeFedTeamProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ForgeFedTeamProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ForgeFedTeamProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedTeamProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedTeamProperty) KindIndex() int { - if this.IsActivityStreamsCollection() { - return 0 - } - if this.IsActivityStreamsCollectionPage() { - return 1 - } - if this.IsActivityStreamsOrderedCollection() { - return 2 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 3 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedTeamProperty) LessThan(o vocab.ForgeFedTeamProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "team". -func (this ForgeFedTeamProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "team" - } else { - return "team" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedTeamProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ForgeFedTeamProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.Clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ForgeFedTeamProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ForgeFedTeamProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ForgeFedTeamProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ForgeFedTeamProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ForgeFedTeamProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on team property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby/gen_doc.go deleted file mode 100644 index c05d81ca3..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyticketstrackedby contains the implementation for the -// ticketsTrackedBy property. All applications are strongly encouraged to use -// the interface instead of this concrete definition. The interfaces allow -// applications to consume only the types and properties needed and be -// independent of the go-fed implementation if another alternative -// implementation is created. This package is code-generated and subject to -// the same license as the go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyticketstrackedby diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby/gen_pkg.go deleted file mode 100644 index b4215e80c..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby/gen_pkg.go +++ /dev/null @@ -1,257 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyticketstrackedby - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby/gen_property_forgefed_ticketsTrackedBy.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby/gen_property_forgefed_ticketsTrackedBy.go deleted file mode 100644 index 9020342b8..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby/gen_property_forgefed_ticketsTrackedBy.go +++ /dev/null @@ -1,2933 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyticketstrackedby - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedTicketsTrackedByProperty is the functional property "ticketsTrackedBy". -// It is permitted to be one of multiple value types. At most, one type of -// value can be present, or none at all. Setting a value will clear the other -// types of values so that only one of the 'Is' methods will return true. It -// is possible to clear all values, so that this property is empty. -type ForgeFedTicketsTrackedByProperty struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeTicketsTrackedByProperty creates a "ticketsTrackedBy" property from -// an interface representation that has been unmarshalled from a text or -// binary format. -func DeserializeTicketsTrackedByProperty(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedTicketsTrackedByProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "ticketsTrackedBy" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "ticketsTrackedBy") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedTicketsTrackedByProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTicketsTrackedByProperty{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ForgeFedTicketsTrackedByProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewForgeFedTicketsTrackedByProperty creates a new ticketsTrackedBy property. -func NewForgeFedTicketsTrackedByProperty() *ForgeFedTicketsTrackedByProperty { - return &ForgeFedTicketsTrackedByProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ForgeFedTicketsTrackedByProperty) Clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ForgeFedTicketsTrackedByProperty) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ForgeFedTicketsTrackedByProperty) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ForgeFedTicketsTrackedByProperty) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ForgeFedTicketsTrackedByProperty) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ForgeFedTicketsTrackedByProperty) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ForgeFedTicketsTrackedByProperty) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ForgeFedTicketsTrackedByProperty) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ForgeFedTicketsTrackedByProperty) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ForgeFedTicketsTrackedByProperty) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedTicketsTrackedByProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedTicketsTrackedByProperty) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsAccept() { - return 1 - } - if this.IsActivityStreamsActivity() { - return 2 - } - if this.IsActivityStreamsAdd() { - return 3 - } - if this.IsActivityStreamsAnnounce() { - return 4 - } - if this.IsActivityStreamsApplication() { - return 5 - } - if this.IsActivityStreamsArrive() { - return 6 - } - if this.IsActivityStreamsArticle() { - return 7 - } - if this.IsActivityStreamsAudio() { - return 8 - } - if this.IsActivityStreamsBlock() { - return 9 - } - if this.IsForgeFedBranch() { - return 10 - } - if this.IsActivityStreamsCollection() { - return 11 - } - if this.IsActivityStreamsCollectionPage() { - return 12 - } - if this.IsForgeFedCommit() { - return 13 - } - if this.IsActivityStreamsCreate() { - return 14 - } - if this.IsActivityStreamsDelete() { - return 15 - } - if this.IsActivityStreamsDislike() { - return 16 - } - if this.IsActivityStreamsDocument() { - return 17 - } - if this.IsTootEmoji() { - return 18 - } - if this.IsActivityStreamsEvent() { - return 19 - } - if this.IsActivityStreamsFlag() { - return 20 - } - if this.IsActivityStreamsFollow() { - return 21 - } - if this.IsActivityStreamsGroup() { - return 22 - } - if this.IsTootIdentityProof() { - return 23 - } - if this.IsActivityStreamsIgnore() { - return 24 - } - if this.IsActivityStreamsImage() { - return 25 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 26 - } - if this.IsActivityStreamsInvite() { - return 27 - } - if this.IsActivityStreamsJoin() { - return 28 - } - if this.IsActivityStreamsLeave() { - return 29 - } - if this.IsActivityStreamsLike() { - return 30 - } - if this.IsActivityStreamsListen() { - return 31 - } - if this.IsActivityStreamsMove() { - return 32 - } - if this.IsActivityStreamsNote() { - return 33 - } - if this.IsActivityStreamsOffer() { - return 34 - } - if this.IsActivityStreamsOrderedCollection() { - return 35 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 36 - } - if this.IsActivityStreamsOrganization() { - return 37 - } - if this.IsActivityStreamsPage() { - return 38 - } - if this.IsActivityStreamsPerson() { - return 39 - } - if this.IsActivityStreamsPlace() { - return 40 - } - if this.IsActivityStreamsProfile() { - return 41 - } - if this.IsForgeFedPush() { - return 42 - } - if this.IsActivityStreamsQuestion() { - return 43 - } - if this.IsActivityStreamsRead() { - return 44 - } - if this.IsActivityStreamsReject() { - return 45 - } - if this.IsActivityStreamsRelationship() { - return 46 - } - if this.IsActivityStreamsRemove() { - return 47 - } - if this.IsForgeFedRepository() { - return 48 - } - if this.IsActivityStreamsService() { - return 49 - } - if this.IsActivityStreamsTentativeAccept() { - return 50 - } - if this.IsActivityStreamsTentativeReject() { - return 51 - } - if this.IsForgeFedTicket() { - return 52 - } - if this.IsForgeFedTicketDependency() { - return 53 - } - if this.IsActivityStreamsTombstone() { - return 54 - } - if this.IsActivityStreamsTravel() { - return 55 - } - if this.IsActivityStreamsUndo() { - return 56 - } - if this.IsActivityStreamsUpdate() { - return 57 - } - if this.IsActivityStreamsVideo() { - return 58 - } - if this.IsActivityStreamsView() { - return 59 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedTicketsTrackedByProperty) LessThan(o vocab.ForgeFedTicketsTrackedByProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ticketsTrackedBy". -func (this ForgeFedTicketsTrackedByProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ticketsTrackedBy" - } else { - return "ticketsTrackedBy" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedTicketsTrackedByProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.Clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.Clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.Clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.Clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.Clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.Clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.Clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.Clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.Clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.Clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.Clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.Clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.Clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.Clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.Clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.Clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.Clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.Clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.Clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.Clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.Clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.Clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.Clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.Clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.Clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.Clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.Clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.Clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.Clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.Clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.Clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.Clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.Clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.Clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.Clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.Clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.Clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.Clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.Clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.Clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.Clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.Clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.Clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.Clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.Clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.Clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.Clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.Clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.Clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.Clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.Clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.Clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetForgeFedPush(v vocab.ForgeFedPush) { - this.Clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.Clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.Clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.Clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetTootEmoji(v vocab.TootEmoji) { - this.Clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ForgeFedTicketsTrackedByProperty) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.Clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ForgeFedTicketsTrackedByProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ticketsTrackedBy property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor/gen_doc.go deleted file mode 100644 index 6b98a7452..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertytracksticketsfor contains the implementation for the -// tracksTicketsFor property. All applications are strongly encouraged to use -// the interface instead of this concrete definition. The interfaces allow -// applications to consume only the types and properties needed and be -// independent of the go-fed implementation if another alternative -// implementation is created. This package is code-generated and subject to -// the same license as the go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertytracksticketsfor diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor/gen_pkg.go deleted file mode 100644 index 7379b9e64..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor/gen_pkg.go +++ /dev/null @@ -1,257 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertytracksticketsfor - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAcceptActivityStreams returns the deserialization method for - // the "ActivityStreamsAccept" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) - // DeserializeActivityActivityStreams returns the deserialization method - // for the "ActivityStreamsActivity" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) - // DeserializeAddActivityStreams returns the deserialization method for - // the "ActivityStreamsAdd" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) - // DeserializeAnnounceActivityStreams returns the deserialization method - // for the "ActivityStreamsAnnounce" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) - // DeserializeApplicationActivityStreams returns the deserialization - // method for the "ActivityStreamsApplication" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) - // DeserializeArriveActivityStreams returns the deserialization method for - // the "ActivityStreamsArrive" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) - // DeserializeArticleActivityStreams returns the deserialization method - // for the "ActivityStreamsArticle" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) - // DeserializeAudioActivityStreams returns the deserialization method for - // the "ActivityStreamsAudio" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) - // DeserializeBlockActivityStreams returns the deserialization method for - // the "ActivityStreamsBlock" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) - // DeserializeBranchForgeFed returns the deserialization method for the - // "ForgeFedBranch" non-functional property in the vocabulary - // "ForgeFed" - DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) - // DeserializeCollectionActivityStreams returns the deserialization method - // for the "ActivityStreamsCollection" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) - // DeserializeCollectionPageActivityStreams returns the deserialization - // method for the "ActivityStreamsCollectionPage" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) - // DeserializeCommitForgeFed returns the deserialization method for the - // "ForgeFedCommit" non-functional property in the vocabulary - // "ForgeFed" - DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) - // DeserializeCreateActivityStreams returns the deserialization method for - // the "ActivityStreamsCreate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) - // DeserializeDeleteActivityStreams returns the deserialization method for - // the "ActivityStreamsDelete" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) - // DeserializeDislikeActivityStreams returns the deserialization method - // for the "ActivityStreamsDislike" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) - // DeserializeDocumentActivityStreams returns the deserialization method - // for the "ActivityStreamsDocument" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) - // DeserializeEmojiToot returns the deserialization method for the - // "TootEmoji" non-functional property in the vocabulary "Toot" - DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) - // DeserializeEventActivityStreams returns the deserialization method for - // the "ActivityStreamsEvent" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) - // DeserializeFlagActivityStreams returns the deserialization method for - // the "ActivityStreamsFlag" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) - // DeserializeFollowActivityStreams returns the deserialization method for - // the "ActivityStreamsFollow" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) - // DeserializeGroupActivityStreams returns the deserialization method for - // the "ActivityStreamsGroup" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) - // DeserializeIdentityProofToot returns the deserialization method for the - // "TootIdentityProof" non-functional property in the vocabulary "Toot" - DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) - // DeserializeIgnoreActivityStreams returns the deserialization method for - // the "ActivityStreamsIgnore" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) - // DeserializeImageActivityStreams returns the deserialization method for - // the "ActivityStreamsImage" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) - // DeserializeIntransitiveActivityActivityStreams returns the - // deserialization method for the - // "ActivityStreamsIntransitiveActivity" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) - // DeserializeInviteActivityStreams returns the deserialization method for - // the "ActivityStreamsInvite" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) - // DeserializeJoinActivityStreams returns the deserialization method for - // the "ActivityStreamsJoin" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) - // DeserializeLeaveActivityStreams returns the deserialization method for - // the "ActivityStreamsLeave" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) - // DeserializeLikeActivityStreams returns the deserialization method for - // the "ActivityStreamsLike" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) - // DeserializeListenActivityStreams returns the deserialization method for - // the "ActivityStreamsListen" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) - // DeserializeMoveActivityStreams returns the deserialization method for - // the "ActivityStreamsMove" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) - // DeserializeNoteActivityStreams returns the deserialization method for - // the "ActivityStreamsNote" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) - // DeserializeObjectActivityStreams returns the deserialization method for - // the "ActivityStreamsObject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) - // DeserializeOfferActivityStreams returns the deserialization method for - // the "ActivityStreamsOffer" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) - // DeserializeOrganizationActivityStreams returns the deserialization - // method for the "ActivityStreamsOrganization" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) - // DeserializePageActivityStreams returns the deserialization method for - // the "ActivityStreamsPage" non-functional property in the vocabulary - // "ActivityStreams" - DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) - // DeserializePersonActivityStreams returns the deserialization method for - // the "ActivityStreamsPerson" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) - // DeserializePlaceActivityStreams returns the deserialization method for - // the "ActivityStreamsPlace" non-functional property in the - // vocabulary "ActivityStreams" - DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) - // DeserializeProfileActivityStreams returns the deserialization method - // for the "ActivityStreamsProfile" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) - // DeserializePushForgeFed returns the deserialization method for the - // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed" - DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) - // DeserializeQuestionActivityStreams returns the deserialization method - // for the "ActivityStreamsQuestion" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) - // DeserializeReadActivityStreams returns the deserialization method for - // the "ActivityStreamsRead" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) - // DeserializeRejectActivityStreams returns the deserialization method for - // the "ActivityStreamsReject" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) - // DeserializeRelationshipActivityStreams returns the deserialization - // method for the "ActivityStreamsRelationship" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) - // DeserializeRemoveActivityStreams returns the deserialization method for - // the "ActivityStreamsRemove" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) - // DeserializeRepositoryForgeFed returns the deserialization method for - // the "ForgeFedRepository" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) - // DeserializeServiceActivityStreams returns the deserialization method - // for the "ActivityStreamsService" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) - // DeserializeTentativeAcceptActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeAccept" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) - // DeserializeTentativeRejectActivityStreams returns the deserialization - // method for the "ActivityStreamsTentativeReject" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) - // DeserializeTicketDependencyForgeFed returns the deserialization method - // for the "ForgeFedTicketDependency" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) - // DeserializeTicketForgeFed returns the deserialization method for the - // "ForgeFedTicket" non-functional property in the vocabulary - // "ForgeFed" - DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) - // DeserializeTombstoneActivityStreams returns the deserialization method - // for the "ActivityStreamsTombstone" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) - // DeserializeTravelActivityStreams returns the deserialization method for - // the "ActivityStreamsTravel" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) - // DeserializeUndoActivityStreams returns the deserialization method for - // the "ActivityStreamsUndo" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) - // DeserializeUpdateActivityStreams returns the deserialization method for - // the "ActivityStreamsUpdate" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) - // DeserializeVideoActivityStreams returns the deserialization method for - // the "ActivityStreamsVideo" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) - // DeserializeViewActivityStreams returns the deserialization method for - // the "ActivityStreamsView" non-functional property in the vocabulary - // "ActivityStreams" - DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor/gen_property_forgefed_tracksTicketsFor.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor/gen_property_forgefed_tracksTicketsFor.go deleted file mode 100644 index 577cdc17f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor/gen_property_forgefed_tracksTicketsFor.go +++ /dev/null @@ -1,6880 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertytracksticketsfor - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// ForgeFedTracksTicketsForPropertyIterator is an iterator for a property. It is -// permitted to be one of multiple value types. At most, one type of value can -// be present, or none at all. Setting a value will clear the other types of -// values so that only one of the 'Is' methods will return true. It is -// possible to clear all values, so that this property is empty. -type ForgeFedTracksTicketsForPropertyIterator struct { - activitystreamsObjectMember vocab.ActivityStreamsObject - activitystreamsAcceptMember vocab.ActivityStreamsAccept - activitystreamsActivityMember vocab.ActivityStreamsActivity - activitystreamsAddMember vocab.ActivityStreamsAdd - activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce - activitystreamsApplicationMember vocab.ActivityStreamsApplication - activitystreamsArriveMember vocab.ActivityStreamsArrive - activitystreamsArticleMember vocab.ActivityStreamsArticle - activitystreamsAudioMember vocab.ActivityStreamsAudio - activitystreamsBlockMember vocab.ActivityStreamsBlock - forgefedBranchMember vocab.ForgeFedBranch - activitystreamsCollectionMember vocab.ActivityStreamsCollection - activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage - forgefedCommitMember vocab.ForgeFedCommit - activitystreamsCreateMember vocab.ActivityStreamsCreate - activitystreamsDeleteMember vocab.ActivityStreamsDelete - activitystreamsDislikeMember vocab.ActivityStreamsDislike - activitystreamsDocumentMember vocab.ActivityStreamsDocument - tootEmojiMember vocab.TootEmoji - activitystreamsEventMember vocab.ActivityStreamsEvent - activitystreamsFlagMember vocab.ActivityStreamsFlag - activitystreamsFollowMember vocab.ActivityStreamsFollow - activitystreamsGroupMember vocab.ActivityStreamsGroup - tootIdentityProofMember vocab.TootIdentityProof - activitystreamsIgnoreMember vocab.ActivityStreamsIgnore - activitystreamsImageMember vocab.ActivityStreamsImage - activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity - activitystreamsInviteMember vocab.ActivityStreamsInvite - activitystreamsJoinMember vocab.ActivityStreamsJoin - activitystreamsLeaveMember vocab.ActivityStreamsLeave - activitystreamsLikeMember vocab.ActivityStreamsLike - activitystreamsListenMember vocab.ActivityStreamsListen - activitystreamsMoveMember vocab.ActivityStreamsMove - activitystreamsNoteMember vocab.ActivityStreamsNote - activitystreamsOfferMember vocab.ActivityStreamsOffer - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - activitystreamsOrganizationMember vocab.ActivityStreamsOrganization - activitystreamsPageMember vocab.ActivityStreamsPage - activitystreamsPersonMember vocab.ActivityStreamsPerson - activitystreamsPlaceMember vocab.ActivityStreamsPlace - activitystreamsProfileMember vocab.ActivityStreamsProfile - forgefedPushMember vocab.ForgeFedPush - activitystreamsQuestionMember vocab.ActivityStreamsQuestion - activitystreamsReadMember vocab.ActivityStreamsRead - activitystreamsRejectMember vocab.ActivityStreamsReject - activitystreamsRelationshipMember vocab.ActivityStreamsRelationship - activitystreamsRemoveMember vocab.ActivityStreamsRemove - forgefedRepositoryMember vocab.ForgeFedRepository - activitystreamsServiceMember vocab.ActivityStreamsService - activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept - activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject - forgefedTicketMember vocab.ForgeFedTicket - forgefedTicketDependencyMember vocab.ForgeFedTicketDependency - activitystreamsTombstoneMember vocab.ActivityStreamsTombstone - activitystreamsTravelMember vocab.ActivityStreamsTravel - activitystreamsUndoMember vocab.ActivityStreamsUndo - activitystreamsUpdateMember vocab.ActivityStreamsUpdate - activitystreamsVideoMember vocab.ActivityStreamsVideo - activitystreamsViewMember vocab.ActivityStreamsView - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.ForgeFedTracksTicketsForProperty -} - -// NewForgeFedTracksTicketsForPropertyIterator creates a new -// ForgeFedTracksTicketsFor property. -func NewForgeFedTracksTicketsForPropertyIterator() *ForgeFedTracksTicketsForPropertyIterator { - return &ForgeFedTracksTicketsForPropertyIterator{alias: ""} -} - -// deserializeForgeFedTracksTicketsForPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeForgeFedTracksTicketsForPropertyIterator(i interface{}, aliasMap map[string]string) (*ForgeFedTracksTicketsForPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &ForgeFedTracksTicketsForPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsObjectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsAddMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsApplicationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsArriveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsArticleMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsAudioMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsBlockMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - alias: alias, - forgefedBranchMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - alias: alias, - forgefedCommitMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsCreateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsDeleteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsDislikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsDocumentMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - alias: alias, - tootEmojiMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsEventMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsFlagMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsFollowMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsGroupMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - alias: alias, - tootIdentityProofMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsImageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsInviteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsJoinMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsLeaveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsLikeMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsListenMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsMoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsNoteMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsOfferMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsPageMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsPersonMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsPlaceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsProfileMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - alias: alias, - forgefedPushMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsQuestionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsReadMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsRemoveMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - alias: alias, - forgefedRepositoryMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsServiceMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - alias: alias, - forgefedTicketMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - alias: alias, - forgefedTicketDependencyMember: v, - } - return this, nil - } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsTravelMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsUndoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsUpdateMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsVideoMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil { - this := &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsViewMember: v, - alias: alias, - } - return this, nil - } - } - this := &ForgeFedTracksTicketsForPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetActivityStreamsAccept returns the value of this property. When -// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept { - return this.activitystreamsAcceptMember -} - -// GetActivityStreamsActivity returns the value of this property. When -// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will -// return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity { - return this.activitystreamsActivityMember -} - -// GetActivityStreamsAdd returns the value of this property. When -// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an -// arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd { - return this.activitystreamsAddMember -} - -// GetActivityStreamsAnnounce returns the value of this property. When -// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will -// return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce { - return this.activitystreamsAnnounceMember -} - -// GetActivityStreamsApplication returns the value of this property. When -// IsActivityStreamsApplication returns false, GetActivityStreamsApplication -// will return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication { - return this.activitystreamsApplicationMember -} - -// GetActivityStreamsArrive returns the value of this property. When -// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive { - return this.activitystreamsArriveMember -} - -// GetActivityStreamsArticle returns the value of this property. When -// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will -// return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle { - return this.activitystreamsArticleMember -} - -// GetActivityStreamsAudio returns the value of this property. When -// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio { - return this.activitystreamsAudioMember -} - -// GetActivityStreamsBlock returns the value of this property. When -// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock { - return this.activitystreamsBlockMember -} - -// GetActivityStreamsCollection returns the value of this property. When -// IsActivityStreamsCollection returns false, GetActivityStreamsCollection -// will return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection { - return this.activitystreamsCollectionMember -} - -// GetActivityStreamsCollectionPage returns the value of this property. When -// IsActivityStreamsCollectionPage returns false, -// GetActivityStreamsCollectionPage will return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage { - return this.activitystreamsCollectionPageMember -} - -// GetActivityStreamsCreate returns the value of this property. When -// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate { - return this.activitystreamsCreateMember -} - -// GetActivityStreamsDelete returns the value of this property. When -// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete { - return this.activitystreamsDeleteMember -} - -// GetActivityStreamsDislike returns the value of this property. When -// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will -// return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike { - return this.activitystreamsDislikeMember -} - -// GetActivityStreamsDocument returns the value of this property. When -// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will -// return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument { - return this.activitystreamsDocumentMember -} - -// GetActivityStreamsEvent returns the value of this property. When -// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent { - return this.activitystreamsEventMember -} - -// GetActivityStreamsFlag returns the value of this property. When -// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an -// arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag { - return this.activitystreamsFlagMember -} - -// GetActivityStreamsFollow returns the value of this property. When -// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow { - return this.activitystreamsFollowMember -} - -// GetActivityStreamsGroup returns the value of this property. When -// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup { - return this.activitystreamsGroupMember -} - -// GetActivityStreamsIgnore returns the value of this property. When -// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore { - return this.activitystreamsIgnoreMember -} - -// GetActivityStreamsImage returns the value of this property. When -// IsActivityStreamsImage returns false, GetActivityStreamsImage will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage { - return this.activitystreamsImageMember -} - -// GetActivityStreamsIntransitiveActivity returns the value of this property. When -// IsActivityStreamsIntransitiveActivity returns false, -// GetActivityStreamsIntransitiveActivity will return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity { - return this.activitystreamsIntransitiveActivityMember -} - -// GetActivityStreamsInvite returns the value of this property. When -// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite { - return this.activitystreamsInviteMember -} - -// GetActivityStreamsJoin returns the value of this property. When -// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an -// arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin { - return this.activitystreamsJoinMember -} - -// GetActivityStreamsLeave returns the value of this property. When -// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave { - return this.activitystreamsLeaveMember -} - -// GetActivityStreamsLike returns the value of this property. When -// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an -// arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike { - return this.activitystreamsLikeMember -} - -// GetActivityStreamsListen returns the value of this property. When -// IsActivityStreamsListen returns false, GetActivityStreamsListen will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen { - return this.activitystreamsListenMember -} - -// GetActivityStreamsMove returns the value of this property. When -// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an -// arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove { - return this.activitystreamsMoveMember -} - -// GetActivityStreamsNote returns the value of this property. When -// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an -// arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote { - return this.activitystreamsNoteMember -} - -// GetActivityStreamsObject returns the value of this property. When -// IsActivityStreamsObject returns false, GetActivityStreamsObject will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject { - return this.activitystreamsObjectMember -} - -// GetActivityStreamsOffer returns the value of this property. When -// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer { - return this.activitystreamsOfferMember -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetActivityStreamsOrganization returns the value of this property. When -// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization -// will return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization { - return this.activitystreamsOrganizationMember -} - -// GetActivityStreamsPage returns the value of this property. When -// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an -// arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage { - return this.activitystreamsPageMember -} - -// GetActivityStreamsPerson returns the value of this property. When -// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson { - return this.activitystreamsPersonMember -} - -// GetActivityStreamsPlace returns the value of this property. When -// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace { - return this.activitystreamsPlaceMember -} - -// GetActivityStreamsProfile returns the value of this property. When -// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will -// return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile { - return this.activitystreamsProfileMember -} - -// GetActivityStreamsQuestion returns the value of this property. When -// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will -// return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion { - return this.activitystreamsQuestionMember -} - -// GetActivityStreamsRead returns the value of this property. When -// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an -// arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead { - return this.activitystreamsReadMember -} - -// GetActivityStreamsReject returns the value of this property. When -// IsActivityStreamsReject returns false, GetActivityStreamsReject will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject { - return this.activitystreamsRejectMember -} - -// GetActivityStreamsRelationship returns the value of this property. When -// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship -// will return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship { - return this.activitystreamsRelationshipMember -} - -// GetActivityStreamsRemove returns the value of this property. When -// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove { - return this.activitystreamsRemoveMember -} - -// GetActivityStreamsService returns the value of this property. When -// IsActivityStreamsService returns false, GetActivityStreamsService will -// return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService { - return this.activitystreamsServiceMember -} - -// GetActivityStreamsTentativeAccept returns the value of this property. When -// IsActivityStreamsTentativeAccept returns false, -// GetActivityStreamsTentativeAccept will return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept { - return this.activitystreamsTentativeAcceptMember -} - -// GetActivityStreamsTentativeReject returns the value of this property. When -// IsActivityStreamsTentativeReject returns false, -// GetActivityStreamsTentativeReject will return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject { - return this.activitystreamsTentativeRejectMember -} - -// GetActivityStreamsTombstone returns the value of this property. When -// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will -// return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone { - return this.activitystreamsTombstoneMember -} - -// GetActivityStreamsTravel returns the value of this property. When -// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel { - return this.activitystreamsTravelMember -} - -// GetActivityStreamsUndo returns the value of this property. When -// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an -// arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo { - return this.activitystreamsUndoMember -} - -// GetActivityStreamsUpdate returns the value of this property. When -// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate { - return this.activitystreamsUpdateMember -} - -// GetActivityStreamsVideo returns the value of this property. When -// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return -// an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo { - return this.activitystreamsVideoMember -} - -// GetActivityStreamsView returns the value of this property. When -// IsActivityStreamsView returns false, GetActivityStreamsView will return an -// arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView { - return this.activitystreamsViewMember -} - -// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch -// returns false, GetForgeFedBranch will return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch { - return this.forgefedBranchMember -} - -// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit -// returns false, GetForgeFedCommit will return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit { - return this.forgefedCommitMember -} - -// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns -// false, GetForgeFedPush will return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush { - return this.forgefedPushMember -} - -// GetForgeFedRepository returns the value of this property. When -// IsForgeFedRepository returns false, GetForgeFedRepository will return an -// arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository { - return this.forgefedRepositoryMember -} - -// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket -// returns false, GetForgeFedTicket will return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket { - return this.forgefedTicketMember -} - -// GetForgeFedTicketDependency returns the value of this property. When -// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will -// return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency { - return this.forgefedTicketDependencyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetTootEmoji returns the value of this property. When IsTootEmoji returns -// false, GetTootEmoji will return an arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetTootEmoji() vocab.TootEmoji { - return this.tootEmojiMember -} - -// GetTootIdentityProof returns the value of this property. When -// IsTootIdentityProof returns false, GetTootIdentityProof will return an -// arbitrary value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof { - return this.tootIdentityProofMember -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this ForgeFedTracksTicketsForPropertyIterator) GetType() vocab.Type { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject() - } - if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept() - } - if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity() - } - if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd() - } - if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce() - } - if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication() - } - if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive() - } - if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle() - } - if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio() - } - if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock() - } - if this.IsForgeFedBranch() { - return this.GetForgeFedBranch() - } - if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection() - } - if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage() - } - if this.IsForgeFedCommit() { - return this.GetForgeFedCommit() - } - if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate() - } - if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete() - } - if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike() - } - if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument() - } - if this.IsTootEmoji() { - return this.GetTootEmoji() - } - if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent() - } - if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag() - } - if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow() - } - if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup() - } - if this.IsTootIdentityProof() { - return this.GetTootIdentityProof() - } - if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore() - } - if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage() - } - if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity() - } - if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite() - } - if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin() - } - if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave() - } - if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike() - } - if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen() - } - if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove() - } - if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote() - } - if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer() - } - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization() - } - if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage() - } - if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson() - } - if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace() - } - if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile() - } - if this.IsForgeFedPush() { - return this.GetForgeFedPush() - } - if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion() - } - if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead() - } - if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject() - } - if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship() - } - if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove() - } - if this.IsForgeFedRepository() { - return this.GetForgeFedRepository() - } - if this.IsActivityStreamsService() { - return this.GetActivityStreamsService() - } - if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept() - } - if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject() - } - if this.IsForgeFedTicket() { - return this.GetForgeFedTicket() - } - if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency() - } - if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone() - } - if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel() - } - if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo() - } - if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate() - } - if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo() - } - if this.IsActivityStreamsView() { - return this.GetActivityStreamsView() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this ForgeFedTracksTicketsForPropertyIterator) HasAny() bool { - return this.IsActivityStreamsObject() || - this.IsActivityStreamsAccept() || - this.IsActivityStreamsActivity() || - this.IsActivityStreamsAdd() || - this.IsActivityStreamsAnnounce() || - this.IsActivityStreamsApplication() || - this.IsActivityStreamsArrive() || - this.IsActivityStreamsArticle() || - this.IsActivityStreamsAudio() || - this.IsActivityStreamsBlock() || - this.IsForgeFedBranch() || - this.IsActivityStreamsCollection() || - this.IsActivityStreamsCollectionPage() || - this.IsForgeFedCommit() || - this.IsActivityStreamsCreate() || - this.IsActivityStreamsDelete() || - this.IsActivityStreamsDislike() || - this.IsActivityStreamsDocument() || - this.IsTootEmoji() || - this.IsActivityStreamsEvent() || - this.IsActivityStreamsFlag() || - this.IsActivityStreamsFollow() || - this.IsActivityStreamsGroup() || - this.IsTootIdentityProof() || - this.IsActivityStreamsIgnore() || - this.IsActivityStreamsImage() || - this.IsActivityStreamsIntransitiveActivity() || - this.IsActivityStreamsInvite() || - this.IsActivityStreamsJoin() || - this.IsActivityStreamsLeave() || - this.IsActivityStreamsLike() || - this.IsActivityStreamsListen() || - this.IsActivityStreamsMove() || - this.IsActivityStreamsNote() || - this.IsActivityStreamsOffer() || - this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.IsActivityStreamsOrganization() || - this.IsActivityStreamsPage() || - this.IsActivityStreamsPerson() || - this.IsActivityStreamsPlace() || - this.IsActivityStreamsProfile() || - this.IsForgeFedPush() || - this.IsActivityStreamsQuestion() || - this.IsActivityStreamsRead() || - this.IsActivityStreamsReject() || - this.IsActivityStreamsRelationship() || - this.IsActivityStreamsRemove() || - this.IsForgeFedRepository() || - this.IsActivityStreamsService() || - this.IsActivityStreamsTentativeAccept() || - this.IsActivityStreamsTentativeReject() || - this.IsForgeFedTicket() || - this.IsForgeFedTicketDependency() || - this.IsActivityStreamsTombstone() || - this.IsActivityStreamsTravel() || - this.IsActivityStreamsUndo() || - this.IsActivityStreamsUpdate() || - this.IsActivityStreamsVideo() || - this.IsActivityStreamsView() || - this.iri != nil -} - -// IsActivityStreamsAccept returns true if this property has a type of "Accept". -// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsAccept() bool { - return this.activitystreamsAcceptMember != nil -} - -// IsActivityStreamsActivity returns true if this property has a type of -// "Activity". When true, use the GetActivityStreamsActivity and -// SetActivityStreamsActivity methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsActivity() bool { - return this.activitystreamsActivityMember != nil -} - -// IsActivityStreamsAdd returns true if this property has a type of "Add". When -// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to -// access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsAdd() bool { - return this.activitystreamsAddMember != nil -} - -// IsActivityStreamsAnnounce returns true if this property has a type of -// "Announce". When true, use the GetActivityStreamsAnnounce and -// SetActivityStreamsAnnounce methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsAnnounce() bool { - return this.activitystreamsAnnounceMember != nil -} - -// IsActivityStreamsApplication returns true if this property has a type of -// "Application". When true, use the GetActivityStreamsApplication and -// SetActivityStreamsApplication methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsApplication() bool { - return this.activitystreamsApplicationMember != nil -} - -// IsActivityStreamsArrive returns true if this property has a type of "Arrive". -// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsArrive() bool { - return this.activitystreamsArriveMember != nil -} - -// IsActivityStreamsArticle returns true if this property has a type of "Article". -// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsArticle() bool { - return this.activitystreamsArticleMember != nil -} - -// IsActivityStreamsAudio returns true if this property has a type of "Audio". -// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsAudio() bool { - return this.activitystreamsAudioMember != nil -} - -// IsActivityStreamsBlock returns true if this property has a type of "Block". -// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsBlock() bool { - return this.activitystreamsBlockMember != nil -} - -// IsActivityStreamsCollection returns true if this property has a type of -// "Collection". When true, use the GetActivityStreamsCollection and -// SetActivityStreamsCollection methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsCollection() bool { - return this.activitystreamsCollectionMember != nil -} - -// IsActivityStreamsCollectionPage returns true if this property has a type of -// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and -// SetActivityStreamsCollectionPage methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsCollectionPage() bool { - return this.activitystreamsCollectionPageMember != nil -} - -// IsActivityStreamsCreate returns true if this property has a type of "Create". -// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsCreate() bool { - return this.activitystreamsCreateMember != nil -} - -// IsActivityStreamsDelete returns true if this property has a type of "Delete". -// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsDelete() bool { - return this.activitystreamsDeleteMember != nil -} - -// IsActivityStreamsDislike returns true if this property has a type of "Dislike". -// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsDislike() bool { - return this.activitystreamsDislikeMember != nil -} - -// IsActivityStreamsDocument returns true if this property has a type of -// "Document". When true, use the GetActivityStreamsDocument and -// SetActivityStreamsDocument methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsDocument() bool { - return this.activitystreamsDocumentMember != nil -} - -// IsActivityStreamsEvent returns true if this property has a type of "Event". -// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsEvent() bool { - return this.activitystreamsEventMember != nil -} - -// IsActivityStreamsFlag returns true if this property has a type of "Flag". When -// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to -// access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsFlag() bool { - return this.activitystreamsFlagMember != nil -} - -// IsActivityStreamsFollow returns true if this property has a type of "Follow". -// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsFollow() bool { - return this.activitystreamsFollowMember != nil -} - -// IsActivityStreamsGroup returns true if this property has a type of "Group". -// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsGroup() bool { - return this.activitystreamsGroupMember != nil -} - -// IsActivityStreamsIgnore returns true if this property has a type of "Ignore". -// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsIgnore() bool { - return this.activitystreamsIgnoreMember != nil -} - -// IsActivityStreamsImage returns true if this property has a type of "Image". -// When true, use the GetActivityStreamsImage and SetActivityStreamsImage -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsImage() bool { - return this.activitystreamsImageMember != nil -} - -// IsActivityStreamsIntransitiveActivity returns true if this property has a type -// of "IntransitiveActivity". When true, use the -// GetActivityStreamsIntransitiveActivity and -// SetActivityStreamsIntransitiveActivity methods to access and set this -// property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsIntransitiveActivity() bool { - return this.activitystreamsIntransitiveActivityMember != nil -} - -// IsActivityStreamsInvite returns true if this property has a type of "Invite". -// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsInvite() bool { - return this.activitystreamsInviteMember != nil -} - -// IsActivityStreamsJoin returns true if this property has a type of "Join". When -// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to -// access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsJoin() bool { - return this.activitystreamsJoinMember != nil -} - -// IsActivityStreamsLeave returns true if this property has a type of "Leave". -// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsLeave() bool { - return this.activitystreamsLeaveMember != nil -} - -// IsActivityStreamsLike returns true if this property has a type of "Like". When -// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to -// access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsLike() bool { - return this.activitystreamsLikeMember != nil -} - -// IsActivityStreamsListen returns true if this property has a type of "Listen". -// When true, use the GetActivityStreamsListen and SetActivityStreamsListen -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsListen() bool { - return this.activitystreamsListenMember != nil -} - -// IsActivityStreamsMove returns true if this property has a type of "Move". When -// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to -// access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsMove() bool { - return this.activitystreamsMoveMember != nil -} - -// IsActivityStreamsNote returns true if this property has a type of "Note". When -// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to -// access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsNote() bool { - return this.activitystreamsNoteMember != nil -} - -// IsActivityStreamsObject returns true if this property has a type of "Object". -// When true, use the GetActivityStreamsObject and SetActivityStreamsObject -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsObject() bool { - return this.activitystreamsObjectMember != nil -} - -// IsActivityStreamsOffer returns true if this property has a type of "Offer". -// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsOffer() bool { - return this.activitystreamsOfferMember != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsActivityStreamsOrganization returns true if this property has a type of -// "Organization". When true, use the GetActivityStreamsOrganization and -// SetActivityStreamsOrganization methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsOrganization() bool { - return this.activitystreamsOrganizationMember != nil -} - -// IsActivityStreamsPage returns true if this property has a type of "Page". When -// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to -// access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsPage() bool { - return this.activitystreamsPageMember != nil -} - -// IsActivityStreamsPerson returns true if this property has a type of "Person". -// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsPerson() bool { - return this.activitystreamsPersonMember != nil -} - -// IsActivityStreamsPlace returns true if this property has a type of "Place". -// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsPlace() bool { - return this.activitystreamsPlaceMember != nil -} - -// IsActivityStreamsProfile returns true if this property has a type of "Profile". -// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsProfile() bool { - return this.activitystreamsProfileMember != nil -} - -// IsActivityStreamsQuestion returns true if this property has a type of -// "Question". When true, use the GetActivityStreamsQuestion and -// SetActivityStreamsQuestion methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsQuestion() bool { - return this.activitystreamsQuestionMember != nil -} - -// IsActivityStreamsRead returns true if this property has a type of "Read". When -// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to -// access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsRead() bool { - return this.activitystreamsReadMember != nil -} - -// IsActivityStreamsReject returns true if this property has a type of "Reject". -// When true, use the GetActivityStreamsReject and SetActivityStreamsReject -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsReject() bool { - return this.activitystreamsRejectMember != nil -} - -// IsActivityStreamsRelationship returns true if this property has a type of -// "Relationship". When true, use the GetActivityStreamsRelationship and -// SetActivityStreamsRelationship methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsRelationship() bool { - return this.activitystreamsRelationshipMember != nil -} - -// IsActivityStreamsRemove returns true if this property has a type of "Remove". -// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsRemove() bool { - return this.activitystreamsRemoveMember != nil -} - -// IsActivityStreamsService returns true if this property has a type of "Service". -// When true, use the GetActivityStreamsService and SetActivityStreamsService -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsService() bool { - return this.activitystreamsServiceMember != nil -} - -// IsActivityStreamsTentativeAccept returns true if this property has a type of -// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and -// SetActivityStreamsTentativeAccept methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsTentativeAccept() bool { - return this.activitystreamsTentativeAcceptMember != nil -} - -// IsActivityStreamsTentativeReject returns true if this property has a type of -// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and -// SetActivityStreamsTentativeReject methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsTentativeReject() bool { - return this.activitystreamsTentativeRejectMember != nil -} - -// IsActivityStreamsTombstone returns true if this property has a type of -// "Tombstone". When true, use the GetActivityStreamsTombstone and -// SetActivityStreamsTombstone methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsTombstone() bool { - return this.activitystreamsTombstoneMember != nil -} - -// IsActivityStreamsTravel returns true if this property has a type of "Travel". -// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsTravel() bool { - return this.activitystreamsTravelMember != nil -} - -// IsActivityStreamsUndo returns true if this property has a type of "Undo". When -// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to -// access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsUndo() bool { - return this.activitystreamsUndoMember != nil -} - -// IsActivityStreamsUpdate returns true if this property has a type of "Update". -// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsUpdate() bool { - return this.activitystreamsUpdateMember != nil -} - -// IsActivityStreamsVideo returns true if this property has a type of "Video". -// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo -// methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsVideo() bool { - return this.activitystreamsVideoMember != nil -} - -// IsActivityStreamsView returns true if this property has a type of "View". When -// true, use the GetActivityStreamsView and SetActivityStreamsView methods to -// access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsActivityStreamsView() bool { - return this.activitystreamsViewMember != nil -} - -// IsForgeFedBranch returns true if this property has a type of "Branch". When -// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and -// set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsForgeFedBranch() bool { - return this.forgefedBranchMember != nil -} - -// IsForgeFedCommit returns true if this property has a type of "Commit". When -// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and -// set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsForgeFedCommit() bool { - return this.forgefedCommitMember != nil -} - -// IsForgeFedPush returns true if this property has a type of "Push". When true, -// use the GetForgeFedPush and SetForgeFedPush methods to access and set this -// property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsForgeFedPush() bool { - return this.forgefedPushMember != nil -} - -// IsForgeFedRepository returns true if this property has a type of "Repository". -// When true, use the GetForgeFedRepository and SetForgeFedRepository methods -// to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsForgeFedRepository() bool { - return this.forgefedRepositoryMember != nil -} - -// IsForgeFedTicket returns true if this property has a type of "Ticket". When -// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and -// set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsForgeFedTicket() bool { - return this.forgefedTicketMember != nil -} - -// IsForgeFedTicketDependency returns true if this property has a type of -// "TicketDependency". When true, use the GetForgeFedTicketDependency and -// SetForgeFedTicketDependency methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsForgeFedTicketDependency() bool { - return this.forgefedTicketDependencyMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this ForgeFedTracksTicketsForPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsTootEmoji returns true if this property has a type of "Emoji". When true, use -// the GetTootEmoji and SetTootEmoji methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsTootEmoji() bool { - return this.tootEmojiMember != nil -} - -// IsTootIdentityProof returns true if this property has a type of -// "IdentityProof". When true, use the GetTootIdentityProof and -// SetTootIdentityProof methods to access and set this property. -func (this ForgeFedTracksTicketsForPropertyIterator) IsTootIdentityProof() bool { - return this.tootIdentityProofMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedTracksTicketsForPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - var child map[string]string - if this.IsActivityStreamsObject() { - child = this.GetActivityStreamsObject().JSONLDContext() - } else if this.IsActivityStreamsAccept() { - child = this.GetActivityStreamsAccept().JSONLDContext() - } else if this.IsActivityStreamsActivity() { - child = this.GetActivityStreamsActivity().JSONLDContext() - } else if this.IsActivityStreamsAdd() { - child = this.GetActivityStreamsAdd().JSONLDContext() - } else if this.IsActivityStreamsAnnounce() { - child = this.GetActivityStreamsAnnounce().JSONLDContext() - } else if this.IsActivityStreamsApplication() { - child = this.GetActivityStreamsApplication().JSONLDContext() - } else if this.IsActivityStreamsArrive() { - child = this.GetActivityStreamsArrive().JSONLDContext() - } else if this.IsActivityStreamsArticle() { - child = this.GetActivityStreamsArticle().JSONLDContext() - } else if this.IsActivityStreamsAudio() { - child = this.GetActivityStreamsAudio().JSONLDContext() - } else if this.IsActivityStreamsBlock() { - child = this.GetActivityStreamsBlock().JSONLDContext() - } else if this.IsForgeFedBranch() { - child = this.GetForgeFedBranch().JSONLDContext() - } else if this.IsActivityStreamsCollection() { - child = this.GetActivityStreamsCollection().JSONLDContext() - } else if this.IsActivityStreamsCollectionPage() { - child = this.GetActivityStreamsCollectionPage().JSONLDContext() - } else if this.IsForgeFedCommit() { - child = this.GetForgeFedCommit().JSONLDContext() - } else if this.IsActivityStreamsCreate() { - child = this.GetActivityStreamsCreate().JSONLDContext() - } else if this.IsActivityStreamsDelete() { - child = this.GetActivityStreamsDelete().JSONLDContext() - } else if this.IsActivityStreamsDislike() { - child = this.GetActivityStreamsDislike().JSONLDContext() - } else if this.IsActivityStreamsDocument() { - child = this.GetActivityStreamsDocument().JSONLDContext() - } else if this.IsTootEmoji() { - child = this.GetTootEmoji().JSONLDContext() - } else if this.IsActivityStreamsEvent() { - child = this.GetActivityStreamsEvent().JSONLDContext() - } else if this.IsActivityStreamsFlag() { - child = this.GetActivityStreamsFlag().JSONLDContext() - } else if this.IsActivityStreamsFollow() { - child = this.GetActivityStreamsFollow().JSONLDContext() - } else if this.IsActivityStreamsGroup() { - child = this.GetActivityStreamsGroup().JSONLDContext() - } else if this.IsTootIdentityProof() { - child = this.GetTootIdentityProof().JSONLDContext() - } else if this.IsActivityStreamsIgnore() { - child = this.GetActivityStreamsIgnore().JSONLDContext() - } else if this.IsActivityStreamsImage() { - child = this.GetActivityStreamsImage().JSONLDContext() - } else if this.IsActivityStreamsIntransitiveActivity() { - child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext() - } else if this.IsActivityStreamsInvite() { - child = this.GetActivityStreamsInvite().JSONLDContext() - } else if this.IsActivityStreamsJoin() { - child = this.GetActivityStreamsJoin().JSONLDContext() - } else if this.IsActivityStreamsLeave() { - child = this.GetActivityStreamsLeave().JSONLDContext() - } else if this.IsActivityStreamsLike() { - child = this.GetActivityStreamsLike().JSONLDContext() - } else if this.IsActivityStreamsListen() { - child = this.GetActivityStreamsListen().JSONLDContext() - } else if this.IsActivityStreamsMove() { - child = this.GetActivityStreamsMove().JSONLDContext() - } else if this.IsActivityStreamsNote() { - child = this.GetActivityStreamsNote().JSONLDContext() - } else if this.IsActivityStreamsOffer() { - child = this.GetActivityStreamsOffer().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } else if this.IsActivityStreamsOrganization() { - child = this.GetActivityStreamsOrganization().JSONLDContext() - } else if this.IsActivityStreamsPage() { - child = this.GetActivityStreamsPage().JSONLDContext() - } else if this.IsActivityStreamsPerson() { - child = this.GetActivityStreamsPerson().JSONLDContext() - } else if this.IsActivityStreamsPlace() { - child = this.GetActivityStreamsPlace().JSONLDContext() - } else if this.IsActivityStreamsProfile() { - child = this.GetActivityStreamsProfile().JSONLDContext() - } else if this.IsForgeFedPush() { - child = this.GetForgeFedPush().JSONLDContext() - } else if this.IsActivityStreamsQuestion() { - child = this.GetActivityStreamsQuestion().JSONLDContext() - } else if this.IsActivityStreamsRead() { - child = this.GetActivityStreamsRead().JSONLDContext() - } else if this.IsActivityStreamsReject() { - child = this.GetActivityStreamsReject().JSONLDContext() - } else if this.IsActivityStreamsRelationship() { - child = this.GetActivityStreamsRelationship().JSONLDContext() - } else if this.IsActivityStreamsRemove() { - child = this.GetActivityStreamsRemove().JSONLDContext() - } else if this.IsForgeFedRepository() { - child = this.GetForgeFedRepository().JSONLDContext() - } else if this.IsActivityStreamsService() { - child = this.GetActivityStreamsService().JSONLDContext() - } else if this.IsActivityStreamsTentativeAccept() { - child = this.GetActivityStreamsTentativeAccept().JSONLDContext() - } else if this.IsActivityStreamsTentativeReject() { - child = this.GetActivityStreamsTentativeReject().JSONLDContext() - } else if this.IsForgeFedTicket() { - child = this.GetForgeFedTicket().JSONLDContext() - } else if this.IsForgeFedTicketDependency() { - child = this.GetForgeFedTicketDependency().JSONLDContext() - } else if this.IsActivityStreamsTombstone() { - child = this.GetActivityStreamsTombstone().JSONLDContext() - } else if this.IsActivityStreamsTravel() { - child = this.GetActivityStreamsTravel().JSONLDContext() - } else if this.IsActivityStreamsUndo() { - child = this.GetActivityStreamsUndo().JSONLDContext() - } else if this.IsActivityStreamsUpdate() { - child = this.GetActivityStreamsUpdate().JSONLDContext() - } else if this.IsActivityStreamsVideo() { - child = this.GetActivityStreamsVideo().JSONLDContext() - } else if this.IsActivityStreamsView() { - child = this.GetActivityStreamsView().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this ForgeFedTracksTicketsForPropertyIterator) KindIndex() int { - if this.IsActivityStreamsObject() { - return 0 - } - if this.IsActivityStreamsAccept() { - return 1 - } - if this.IsActivityStreamsActivity() { - return 2 - } - if this.IsActivityStreamsAdd() { - return 3 - } - if this.IsActivityStreamsAnnounce() { - return 4 - } - if this.IsActivityStreamsApplication() { - return 5 - } - if this.IsActivityStreamsArrive() { - return 6 - } - if this.IsActivityStreamsArticle() { - return 7 - } - if this.IsActivityStreamsAudio() { - return 8 - } - if this.IsActivityStreamsBlock() { - return 9 - } - if this.IsForgeFedBranch() { - return 10 - } - if this.IsActivityStreamsCollection() { - return 11 - } - if this.IsActivityStreamsCollectionPage() { - return 12 - } - if this.IsForgeFedCommit() { - return 13 - } - if this.IsActivityStreamsCreate() { - return 14 - } - if this.IsActivityStreamsDelete() { - return 15 - } - if this.IsActivityStreamsDislike() { - return 16 - } - if this.IsActivityStreamsDocument() { - return 17 - } - if this.IsTootEmoji() { - return 18 - } - if this.IsActivityStreamsEvent() { - return 19 - } - if this.IsActivityStreamsFlag() { - return 20 - } - if this.IsActivityStreamsFollow() { - return 21 - } - if this.IsActivityStreamsGroup() { - return 22 - } - if this.IsTootIdentityProof() { - return 23 - } - if this.IsActivityStreamsIgnore() { - return 24 - } - if this.IsActivityStreamsImage() { - return 25 - } - if this.IsActivityStreamsIntransitiveActivity() { - return 26 - } - if this.IsActivityStreamsInvite() { - return 27 - } - if this.IsActivityStreamsJoin() { - return 28 - } - if this.IsActivityStreamsLeave() { - return 29 - } - if this.IsActivityStreamsLike() { - return 30 - } - if this.IsActivityStreamsListen() { - return 31 - } - if this.IsActivityStreamsMove() { - return 32 - } - if this.IsActivityStreamsNote() { - return 33 - } - if this.IsActivityStreamsOffer() { - return 34 - } - if this.IsActivityStreamsOrderedCollection() { - return 35 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 36 - } - if this.IsActivityStreamsOrganization() { - return 37 - } - if this.IsActivityStreamsPage() { - return 38 - } - if this.IsActivityStreamsPerson() { - return 39 - } - if this.IsActivityStreamsPlace() { - return 40 - } - if this.IsActivityStreamsProfile() { - return 41 - } - if this.IsForgeFedPush() { - return 42 - } - if this.IsActivityStreamsQuestion() { - return 43 - } - if this.IsActivityStreamsRead() { - return 44 - } - if this.IsActivityStreamsReject() { - return 45 - } - if this.IsActivityStreamsRelationship() { - return 46 - } - if this.IsActivityStreamsRemove() { - return 47 - } - if this.IsForgeFedRepository() { - return 48 - } - if this.IsActivityStreamsService() { - return 49 - } - if this.IsActivityStreamsTentativeAccept() { - return 50 - } - if this.IsActivityStreamsTentativeReject() { - return 51 - } - if this.IsForgeFedTicket() { - return 52 - } - if this.IsForgeFedTicketDependency() { - return 53 - } - if this.IsActivityStreamsTombstone() { - return 54 - } - if this.IsActivityStreamsTravel() { - return 55 - } - if this.IsActivityStreamsUndo() { - return 56 - } - if this.IsActivityStreamsUpdate() { - return 57 - } - if this.IsActivityStreamsVideo() { - return 58 - } - if this.IsActivityStreamsView() { - return 59 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedTracksTicketsForPropertyIterator) LessThan(o vocab.ForgeFedTracksTicketsForPropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject()) - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept()) - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock()) - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch()) - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection()) - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage()) - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit()) - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate()) - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete()) - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike()) - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) - } else if this.IsTootEmoji() { - return this.GetTootEmoji().LessThan(o.GetTootEmoji()) - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag()) - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow()) - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup()) - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof()) - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore()) - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage()) - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity()) - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite()) - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove()) - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote()) - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer()) - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization()) - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage()) - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson()) - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace()) - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile()) - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().LessThan(o.GetForgeFedPush()) - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion()) - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead()) - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject()) - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository()) - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept()) - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket()) - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency()) - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo()) - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate()) - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo()) - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "ForgeFedTracksTicketsFor". -func (this ForgeFedTracksTicketsForPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "ForgeFedTracksTicketsFor" - } else { - return "ForgeFedTracksTicketsFor" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this ForgeFedTracksTicketsForPropertyIterator) Next() vocab.ForgeFedTracksTicketsForPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this ForgeFedTracksTicketsForPropertyIterator) Prev() vocab.ForgeFedTracksTicketsForPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetActivityStreamsAccept sets the value of this property. Calling -// IsActivityStreamsAccept afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.clear() - this.activitystreamsAcceptMember = v -} - -// SetActivityStreamsActivity sets the value of this property. Calling -// IsActivityStreamsActivity afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.clear() - this.activitystreamsActivityMember = v -} - -// SetActivityStreamsAdd sets the value of this property. Calling -// IsActivityStreamsAdd afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.clear() - this.activitystreamsAddMember = v -} - -// SetActivityStreamsAnnounce sets the value of this property. Calling -// IsActivityStreamsAnnounce afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.clear() - this.activitystreamsAnnounceMember = v -} - -// SetActivityStreamsApplication sets the value of this property. Calling -// IsActivityStreamsApplication afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.clear() - this.activitystreamsApplicationMember = v -} - -// SetActivityStreamsArrive sets the value of this property. Calling -// IsActivityStreamsArrive afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.clear() - this.activitystreamsArriveMember = v -} - -// SetActivityStreamsArticle sets the value of this property. Calling -// IsActivityStreamsArticle afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.clear() - this.activitystreamsArticleMember = v -} - -// SetActivityStreamsAudio sets the value of this property. Calling -// IsActivityStreamsAudio afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.clear() - this.activitystreamsAudioMember = v -} - -// SetActivityStreamsBlock sets the value of this property. Calling -// IsActivityStreamsBlock afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.clear() - this.activitystreamsBlockMember = v -} - -// SetActivityStreamsCollection sets the value of this property. Calling -// IsActivityStreamsCollection afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.clear() - this.activitystreamsCollectionMember = v -} - -// SetActivityStreamsCollectionPage sets the value of this property. Calling -// IsActivityStreamsCollectionPage afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.clear() - this.activitystreamsCollectionPageMember = v -} - -// SetActivityStreamsCreate sets the value of this property. Calling -// IsActivityStreamsCreate afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.clear() - this.activitystreamsCreateMember = v -} - -// SetActivityStreamsDelete sets the value of this property. Calling -// IsActivityStreamsDelete afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.clear() - this.activitystreamsDeleteMember = v -} - -// SetActivityStreamsDislike sets the value of this property. Calling -// IsActivityStreamsDislike afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.clear() - this.activitystreamsDislikeMember = v -} - -// SetActivityStreamsDocument sets the value of this property. Calling -// IsActivityStreamsDocument afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.clear() - this.activitystreamsDocumentMember = v -} - -// SetActivityStreamsEvent sets the value of this property. Calling -// IsActivityStreamsEvent afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.clear() - this.activitystreamsEventMember = v -} - -// SetActivityStreamsFlag sets the value of this property. Calling -// IsActivityStreamsFlag afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.clear() - this.activitystreamsFlagMember = v -} - -// SetActivityStreamsFollow sets the value of this property. Calling -// IsActivityStreamsFollow afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.clear() - this.activitystreamsFollowMember = v -} - -// SetActivityStreamsGroup sets the value of this property. Calling -// IsActivityStreamsGroup afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.clear() - this.activitystreamsGroupMember = v -} - -// SetActivityStreamsIgnore sets the value of this property. Calling -// IsActivityStreamsIgnore afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.clear() - this.activitystreamsIgnoreMember = v -} - -// SetActivityStreamsImage sets the value of this property. Calling -// IsActivityStreamsImage afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.clear() - this.activitystreamsImageMember = v -} - -// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling -// IsActivityStreamsIntransitiveActivity afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.clear() - this.activitystreamsIntransitiveActivityMember = v -} - -// SetActivityStreamsInvite sets the value of this property. Calling -// IsActivityStreamsInvite afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.clear() - this.activitystreamsInviteMember = v -} - -// SetActivityStreamsJoin sets the value of this property. Calling -// IsActivityStreamsJoin afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.clear() - this.activitystreamsJoinMember = v -} - -// SetActivityStreamsLeave sets the value of this property. Calling -// IsActivityStreamsLeave afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.clear() - this.activitystreamsLeaveMember = v -} - -// SetActivityStreamsLike sets the value of this property. Calling -// IsActivityStreamsLike afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.clear() - this.activitystreamsLikeMember = v -} - -// SetActivityStreamsListen sets the value of this property. Calling -// IsActivityStreamsListen afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.clear() - this.activitystreamsListenMember = v -} - -// SetActivityStreamsMove sets the value of this property. Calling -// IsActivityStreamsMove afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.clear() - this.activitystreamsMoveMember = v -} - -// SetActivityStreamsNote sets the value of this property. Calling -// IsActivityStreamsNote afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.clear() - this.activitystreamsNoteMember = v -} - -// SetActivityStreamsObject sets the value of this property. Calling -// IsActivityStreamsObject afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.clear() - this.activitystreamsObjectMember = v -} - -// SetActivityStreamsOffer sets the value of this property. Calling -// IsActivityStreamsOffer afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.clear() - this.activitystreamsOfferMember = v -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetActivityStreamsOrganization sets the value of this property. Calling -// IsActivityStreamsOrganization afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.clear() - this.activitystreamsOrganizationMember = v -} - -// SetActivityStreamsPage sets the value of this property. Calling -// IsActivityStreamsPage afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.clear() - this.activitystreamsPageMember = v -} - -// SetActivityStreamsPerson sets the value of this property. Calling -// IsActivityStreamsPerson afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.clear() - this.activitystreamsPersonMember = v -} - -// SetActivityStreamsPlace sets the value of this property. Calling -// IsActivityStreamsPlace afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.clear() - this.activitystreamsPlaceMember = v -} - -// SetActivityStreamsProfile sets the value of this property. Calling -// IsActivityStreamsProfile afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.clear() - this.activitystreamsProfileMember = v -} - -// SetActivityStreamsQuestion sets the value of this property. Calling -// IsActivityStreamsQuestion afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.clear() - this.activitystreamsQuestionMember = v -} - -// SetActivityStreamsRead sets the value of this property. Calling -// IsActivityStreamsRead afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.clear() - this.activitystreamsReadMember = v -} - -// SetActivityStreamsReject sets the value of this property. Calling -// IsActivityStreamsReject afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.clear() - this.activitystreamsRejectMember = v -} - -// SetActivityStreamsRelationship sets the value of this property. Calling -// IsActivityStreamsRelationship afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.clear() - this.activitystreamsRelationshipMember = v -} - -// SetActivityStreamsRemove sets the value of this property. Calling -// IsActivityStreamsRemove afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.clear() - this.activitystreamsRemoveMember = v -} - -// SetActivityStreamsService sets the value of this property. Calling -// IsActivityStreamsService afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) { - this.clear() - this.activitystreamsServiceMember = v -} - -// SetActivityStreamsTentativeAccept sets the value of this property. Calling -// IsActivityStreamsTentativeAccept afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.clear() - this.activitystreamsTentativeAcceptMember = v -} - -// SetActivityStreamsTentativeReject sets the value of this property. Calling -// IsActivityStreamsTentativeReject afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.clear() - this.activitystreamsTentativeRejectMember = v -} - -// SetActivityStreamsTombstone sets the value of this property. Calling -// IsActivityStreamsTombstone afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.clear() - this.activitystreamsTombstoneMember = v -} - -// SetActivityStreamsTravel sets the value of this property. Calling -// IsActivityStreamsTravel afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.clear() - this.activitystreamsTravelMember = v -} - -// SetActivityStreamsUndo sets the value of this property. Calling -// IsActivityStreamsUndo afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.clear() - this.activitystreamsUndoMember = v -} - -// SetActivityStreamsUpdate sets the value of this property. Calling -// IsActivityStreamsUpdate afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.clear() - this.activitystreamsUpdateMember = v -} - -// SetActivityStreamsVideo sets the value of this property. Calling -// IsActivityStreamsVideo afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.clear() - this.activitystreamsVideoMember = v -} - -// SetActivityStreamsView sets the value of this property. Calling -// IsActivityStreamsView afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) { - this.clear() - this.activitystreamsViewMember = v -} - -// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch -// afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) { - this.clear() - this.forgefedBranchMember = v -} - -// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit -// afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) { - this.clear() - this.forgefedCommitMember = v -} - -// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush -// afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) { - this.clear() - this.forgefedPushMember = v -} - -// SetForgeFedRepository sets the value of this property. Calling -// IsForgeFedRepository afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) { - this.clear() - this.forgefedRepositoryMember = v -} - -// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket -// afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) { - this.clear() - this.forgefedTicketMember = v -} - -// SetForgeFedTicketDependency sets the value of this property. Calling -// IsForgeFedTicketDependency afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.clear() - this.forgefedTicketDependencyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards -// returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetTootEmoji(v vocab.TootEmoji) { - this.clear() - this.tootEmojiMember = v -} - -// SetTootIdentityProof sets the value of this property. Calling -// IsTootIdentityProof afterwards returns true. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) { - this.clear() - this.tootIdentityProofMember = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *ForgeFedTracksTicketsForPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsObject); ok { - this.SetActivityStreamsObject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAccept); ok { - this.SetActivityStreamsAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsActivity); ok { - this.SetActivityStreamsActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAdd); ok { - this.SetActivityStreamsAdd(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { - this.SetActivityStreamsAnnounce(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsApplication); ok { - this.SetActivityStreamsApplication(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArrive); ok { - this.SetActivityStreamsArrive(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsArticle); ok { - this.SetActivityStreamsArticle(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsAudio); ok { - this.SetActivityStreamsAudio(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsBlock); ok { - this.SetActivityStreamsBlock(v) - return nil - } - if v, ok := t.(vocab.ForgeFedBranch); ok { - this.SetForgeFedBranch(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollection); ok { - this.SetActivityStreamsCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok { - this.SetActivityStreamsCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ForgeFedCommit); ok { - this.SetForgeFedCommit(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsCreate); ok { - this.SetActivityStreamsCreate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDelete); ok { - this.SetActivityStreamsDelete(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDislike); ok { - this.SetActivityStreamsDislike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsDocument); ok { - this.SetActivityStreamsDocument(v) - return nil - } - if v, ok := t.(vocab.TootEmoji); ok { - this.SetTootEmoji(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsEvent); ok { - this.SetActivityStreamsEvent(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFlag); ok { - this.SetActivityStreamsFlag(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsFollow); ok { - this.SetActivityStreamsFollow(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsGroup); ok { - this.SetActivityStreamsGroup(v) - return nil - } - if v, ok := t.(vocab.TootIdentityProof); ok { - this.SetTootIdentityProof(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIgnore); ok { - this.SetActivityStreamsIgnore(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsImage); ok { - this.SetActivityStreamsImage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok { - this.SetActivityStreamsIntransitiveActivity(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsInvite); ok { - this.SetActivityStreamsInvite(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsJoin); ok { - this.SetActivityStreamsJoin(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLeave); ok { - this.SetActivityStreamsLeave(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsLike); ok { - this.SetActivityStreamsLike(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsListen); ok { - this.SetActivityStreamsListen(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsMove); ok { - this.SetActivityStreamsMove(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsNote); ok { - this.SetActivityStreamsNote(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOffer); ok { - this.SetActivityStreamsOffer(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrganization); ok { - this.SetActivityStreamsOrganization(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPage); ok { - this.SetActivityStreamsPage(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPerson); ok { - this.SetActivityStreamsPerson(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsPlace); ok { - this.SetActivityStreamsPlace(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsProfile); ok { - this.SetActivityStreamsProfile(v) - return nil - } - if v, ok := t.(vocab.ForgeFedPush); ok { - this.SetForgeFedPush(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsQuestion); ok { - this.SetActivityStreamsQuestion(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRead); ok { - this.SetActivityStreamsRead(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsReject); ok { - this.SetActivityStreamsReject(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRelationship); ok { - this.SetActivityStreamsRelationship(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsRemove); ok { - this.SetActivityStreamsRemove(v) - return nil - } - if v, ok := t.(vocab.ForgeFedRepository); ok { - this.SetForgeFedRepository(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsService); ok { - this.SetActivityStreamsService(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok { - this.SetActivityStreamsTentativeAccept(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok { - this.SetActivityStreamsTentativeReject(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicket); ok { - this.SetForgeFedTicket(v) - return nil - } - if v, ok := t.(vocab.ForgeFedTicketDependency); ok { - this.SetForgeFedTicketDependency(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTombstone); ok { - this.SetActivityStreamsTombstone(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsTravel); ok { - this.SetActivityStreamsTravel(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUndo); ok { - this.SetActivityStreamsUndo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsUpdate); ok { - this.SetActivityStreamsUpdate(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsVideo); ok { - this.SetActivityStreamsVideo(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsView); ok { - this.SetActivityStreamsView(v) - return nil - } - - return fmt.Errorf("illegal type to set on ForgeFedTracksTicketsFor property: %T", t) -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *ForgeFedTracksTicketsForPropertyIterator) clear() { - this.activitystreamsObjectMember = nil - this.activitystreamsAcceptMember = nil - this.activitystreamsActivityMember = nil - this.activitystreamsAddMember = nil - this.activitystreamsAnnounceMember = nil - this.activitystreamsApplicationMember = nil - this.activitystreamsArriveMember = nil - this.activitystreamsArticleMember = nil - this.activitystreamsAudioMember = nil - this.activitystreamsBlockMember = nil - this.forgefedBranchMember = nil - this.activitystreamsCollectionMember = nil - this.activitystreamsCollectionPageMember = nil - this.forgefedCommitMember = nil - this.activitystreamsCreateMember = nil - this.activitystreamsDeleteMember = nil - this.activitystreamsDislikeMember = nil - this.activitystreamsDocumentMember = nil - this.tootEmojiMember = nil - this.activitystreamsEventMember = nil - this.activitystreamsFlagMember = nil - this.activitystreamsFollowMember = nil - this.activitystreamsGroupMember = nil - this.tootIdentityProofMember = nil - this.activitystreamsIgnoreMember = nil - this.activitystreamsImageMember = nil - this.activitystreamsIntransitiveActivityMember = nil - this.activitystreamsInviteMember = nil - this.activitystreamsJoinMember = nil - this.activitystreamsLeaveMember = nil - this.activitystreamsLikeMember = nil - this.activitystreamsListenMember = nil - this.activitystreamsMoveMember = nil - this.activitystreamsNoteMember = nil - this.activitystreamsOfferMember = nil - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.activitystreamsOrganizationMember = nil - this.activitystreamsPageMember = nil - this.activitystreamsPersonMember = nil - this.activitystreamsPlaceMember = nil - this.activitystreamsProfileMember = nil - this.forgefedPushMember = nil - this.activitystreamsQuestionMember = nil - this.activitystreamsReadMember = nil - this.activitystreamsRejectMember = nil - this.activitystreamsRelationshipMember = nil - this.activitystreamsRemoveMember = nil - this.forgefedRepositoryMember = nil - this.activitystreamsServiceMember = nil - this.activitystreamsTentativeAcceptMember = nil - this.activitystreamsTentativeRejectMember = nil - this.forgefedTicketMember = nil - this.forgefedTicketDependencyMember = nil - this.activitystreamsTombstoneMember = nil - this.activitystreamsTravelMember = nil - this.activitystreamsUndoMember = nil - this.activitystreamsUpdateMember = nil - this.activitystreamsVideoMember = nil - this.activitystreamsViewMember = nil - this.unknown = nil - this.iri = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedTracksTicketsForPropertyIterator) serialize() (interface{}, error) { - if this.IsActivityStreamsObject() { - return this.GetActivityStreamsObject().Serialize() - } else if this.IsActivityStreamsAccept() { - return this.GetActivityStreamsAccept().Serialize() - } else if this.IsActivityStreamsActivity() { - return this.GetActivityStreamsActivity().Serialize() - } else if this.IsActivityStreamsAdd() { - return this.GetActivityStreamsAdd().Serialize() - } else if this.IsActivityStreamsAnnounce() { - return this.GetActivityStreamsAnnounce().Serialize() - } else if this.IsActivityStreamsApplication() { - return this.GetActivityStreamsApplication().Serialize() - } else if this.IsActivityStreamsArrive() { - return this.GetActivityStreamsArrive().Serialize() - } else if this.IsActivityStreamsArticle() { - return this.GetActivityStreamsArticle().Serialize() - } else if this.IsActivityStreamsAudio() { - return this.GetActivityStreamsAudio().Serialize() - } else if this.IsActivityStreamsBlock() { - return this.GetActivityStreamsBlock().Serialize() - } else if this.IsForgeFedBranch() { - return this.GetForgeFedBranch().Serialize() - } else if this.IsActivityStreamsCollection() { - return this.GetActivityStreamsCollection().Serialize() - } else if this.IsActivityStreamsCollectionPage() { - return this.GetActivityStreamsCollectionPage().Serialize() - } else if this.IsForgeFedCommit() { - return this.GetForgeFedCommit().Serialize() - } else if this.IsActivityStreamsCreate() { - return this.GetActivityStreamsCreate().Serialize() - } else if this.IsActivityStreamsDelete() { - return this.GetActivityStreamsDelete().Serialize() - } else if this.IsActivityStreamsDislike() { - return this.GetActivityStreamsDislike().Serialize() - } else if this.IsActivityStreamsDocument() { - return this.GetActivityStreamsDocument().Serialize() - } else if this.IsTootEmoji() { - return this.GetTootEmoji().Serialize() - } else if this.IsActivityStreamsEvent() { - return this.GetActivityStreamsEvent().Serialize() - } else if this.IsActivityStreamsFlag() { - return this.GetActivityStreamsFlag().Serialize() - } else if this.IsActivityStreamsFollow() { - return this.GetActivityStreamsFollow().Serialize() - } else if this.IsActivityStreamsGroup() { - return this.GetActivityStreamsGroup().Serialize() - } else if this.IsTootIdentityProof() { - return this.GetTootIdentityProof().Serialize() - } else if this.IsActivityStreamsIgnore() { - return this.GetActivityStreamsIgnore().Serialize() - } else if this.IsActivityStreamsImage() { - return this.GetActivityStreamsImage().Serialize() - } else if this.IsActivityStreamsIntransitiveActivity() { - return this.GetActivityStreamsIntransitiveActivity().Serialize() - } else if this.IsActivityStreamsInvite() { - return this.GetActivityStreamsInvite().Serialize() - } else if this.IsActivityStreamsJoin() { - return this.GetActivityStreamsJoin().Serialize() - } else if this.IsActivityStreamsLeave() { - return this.GetActivityStreamsLeave().Serialize() - } else if this.IsActivityStreamsLike() { - return this.GetActivityStreamsLike().Serialize() - } else if this.IsActivityStreamsListen() { - return this.GetActivityStreamsListen().Serialize() - } else if this.IsActivityStreamsMove() { - return this.GetActivityStreamsMove().Serialize() - } else if this.IsActivityStreamsNote() { - return this.GetActivityStreamsNote().Serialize() - } else if this.IsActivityStreamsOffer() { - return this.GetActivityStreamsOffer().Serialize() - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsActivityStreamsOrganization() { - return this.GetActivityStreamsOrganization().Serialize() - } else if this.IsActivityStreamsPage() { - return this.GetActivityStreamsPage().Serialize() - } else if this.IsActivityStreamsPerson() { - return this.GetActivityStreamsPerson().Serialize() - } else if this.IsActivityStreamsPlace() { - return this.GetActivityStreamsPlace().Serialize() - } else if this.IsActivityStreamsProfile() { - return this.GetActivityStreamsProfile().Serialize() - } else if this.IsForgeFedPush() { - return this.GetForgeFedPush().Serialize() - } else if this.IsActivityStreamsQuestion() { - return this.GetActivityStreamsQuestion().Serialize() - } else if this.IsActivityStreamsRead() { - return this.GetActivityStreamsRead().Serialize() - } else if this.IsActivityStreamsReject() { - return this.GetActivityStreamsReject().Serialize() - } else if this.IsActivityStreamsRelationship() { - return this.GetActivityStreamsRelationship().Serialize() - } else if this.IsActivityStreamsRemove() { - return this.GetActivityStreamsRemove().Serialize() - } else if this.IsForgeFedRepository() { - return this.GetForgeFedRepository().Serialize() - } else if this.IsActivityStreamsService() { - return this.GetActivityStreamsService().Serialize() - } else if this.IsActivityStreamsTentativeAccept() { - return this.GetActivityStreamsTentativeAccept().Serialize() - } else if this.IsActivityStreamsTentativeReject() { - return this.GetActivityStreamsTentativeReject().Serialize() - } else if this.IsForgeFedTicket() { - return this.GetForgeFedTicket().Serialize() - } else if this.IsForgeFedTicketDependency() { - return this.GetForgeFedTicketDependency().Serialize() - } else if this.IsActivityStreamsTombstone() { - return this.GetActivityStreamsTombstone().Serialize() - } else if this.IsActivityStreamsTravel() { - return this.GetActivityStreamsTravel().Serialize() - } else if this.IsActivityStreamsUndo() { - return this.GetActivityStreamsUndo().Serialize() - } else if this.IsActivityStreamsUpdate() { - return this.GetActivityStreamsUpdate().Serialize() - } else if this.IsActivityStreamsVideo() { - return this.GetActivityStreamsVideo().Serialize() - } else if this.IsActivityStreamsView() { - return this.GetActivityStreamsView().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// ForgeFedTracksTicketsForProperty is the non-functional property -// "tracksTicketsFor". It is permitted to have one or more values, and of -// different value types. -type ForgeFedTracksTicketsForProperty struct { - properties []*ForgeFedTracksTicketsForPropertyIterator - alias string -} - -// DeserializeTracksTicketsForProperty creates a "tracksTicketsFor" property from -// an interface representation that has been unmarshalled from a text or -// binary format. -func DeserializeTracksTicketsForProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) { - alias := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - } - propName := "tracksTicketsFor" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "tracksTicketsFor") - } - i, ok := m[propName] - - if ok { - this := &ForgeFedTracksTicketsForProperty{ - alias: alias, - properties: []*ForgeFedTracksTicketsForPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeForgeFedTracksTicketsForPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeForgeFedTracksTicketsForPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewForgeFedTracksTicketsForProperty creates a new tracksTicketsFor property. -func NewForgeFedTracksTicketsForProperty() *ForgeFedTracksTicketsForProperty { - return &ForgeFedTracksTicketsForProperty{alias: ""} -} - -// AppendActivityStreamsAccept appends a Accept value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsActivity appends a Activity value to the back of a list of -// the property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAdd appends a Add value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of -// the property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsApplication appends a Application value to the back of a -// list of the property "tracksTicketsFor". Invalidates iterators that are -// traversing using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsArticle appends a Article value to the back of a list of -// the property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsAudio appends a Audio value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsBlock appends a Block value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollection appends a Collection value to the back of a -// list of the property "tracksTicketsFor". Invalidates iterators that are -// traversing using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back -// of a list of the property "tracksTicketsFor". Invalidates iterators that -// are traversing using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsCreate appends a Create value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDelete appends a Delete value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDislike appends a Dislike value to the back of a list of -// the property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsDocument appends a Document value to the back of a list of -// the property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsEvent appends a Event value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFlag appends a Flag value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsFollow appends a Follow value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsGroup appends a Group value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsImage appends a Image value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value -// to the back of a list of the property "tracksTicketsFor". Invalidates -// iterators that are traversing using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsInvite appends a Invite value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsJoin appends a Join value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLeave appends a Leave value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsLike appends a Like value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsListen appends a Listen value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsMove appends a Move value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsNote appends a Note value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsObject appends a Object value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOffer appends a Offer value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the -// back of a list of the property "tracksTicketsFor". Invalidates iterators -// that are traversing using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage -// value to the back of a list of the property "tracksTicketsFor". Invalidates -// iterators that are traversing using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsOrganization appends a Organization value to the back of a -// list of the property "tracksTicketsFor". Invalidates iterators that are -// traversing using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPage appends a Page value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPerson appends a Person value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsPlace appends a Place value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsProfile appends a Profile value to the back of a list of -// the property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsQuestion appends a Question value to the back of a list of -// the property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRead appends a Read value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsReject appends a Reject value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRelationship appends a Relationship value to the back of a -// list of the property "tracksTicketsFor". Invalidates iterators that are -// traversing using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsRemove appends a Remove value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsService appends a Service value to the back of a list of -// the property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the -// back of a list of the property "tracksTicketsFor". Invalidates iterators -// that are traversing using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTentativeReject appends a TentativeReject value to the -// back of a list of the property "tracksTicketsFor". Invalidates iterators -// that are traversing using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list -// of the property "tracksTicketsFor". Invalidates iterators that are -// traversing using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsTravel appends a Travel value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUndo appends a Undo value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsUpdate appends a Update value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsVideo appends a Video value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendActivityStreamsView appends a View value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedBranch appends a Branch value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedCommit appends a Commit value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedPush appends a Push value to the back of a list of the property -// "tracksTicketsFor". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedRepository appends a Repository value to the back of a list of -// the property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicket appends a Ticket value to the back of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendForgeFedTicketDependency appends a TicketDependency value to the back of -// a list of the property "tracksTicketsFor". Invalidates iterators that are -// traversing using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendIRI appends an IRI value to the back of a list of the property -// "tracksTicketsFor" -func (this *ForgeFedTracksTicketsForProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// AppendTootEmoji appends a Emoji value to the back of a list of the property -// "tracksTicketsFor". Invalidates iterators that are traversing using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendTootEmoji(v vocab.TootEmoji) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootEmojiMember: v, - }) -} - -// AppendTootIdentityProof appends a IdentityProof value to the back of a list of -// the property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. -func (this *ForgeFedTracksTicketsForProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append(this.properties, &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - tootIdentityProofMember: v, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "tracksTicketsFor". Invalidates iterators that are traversing -// using Prev. Returns an error if the type is not a valid one to set for this -// property. -func (this *ForgeFedTracksTicketsForProperty) AppendType(t vocab.Type) error { - n := &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this ForgeFedTracksTicketsForProperty) At(index int) vocab.ForgeFedTracksTicketsForPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this ForgeFedTracksTicketsForProperty) Begin() vocab.ForgeFedTracksTicketsForPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this ForgeFedTracksTicketsForProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this ForgeFedTracksTicketsForProperty) End() vocab.ForgeFedTracksTicketsForPropertyIterator { - return nil -} - -// InsertActivityStreamsAccept inserts a Accept value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsActivity inserts a Activity value at the specified index -// for a property "tracksTicketsFor". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAdd inserts a Add value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAnnounce inserts a Announce value at the specified index -// for a property "tracksTicketsFor". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsApplication inserts a Application value at the specified -// index for a property "tracksTicketsFor". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsArticle inserts a Article value at the specified index for -// a property "tracksTicketsFor". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsAudio inserts a Audio value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsBlock inserts a Block value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollection inserts a Collection value at the specified -// index for a property "tracksTicketsFor". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the -// specified index for a property "tracksTicketsFor". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsCreate inserts a Create value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDelete inserts a Delete value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDislike inserts a Dislike value at the specified index for -// a property "tracksTicketsFor". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsDocument inserts a Document value at the specified index -// for a property "tracksTicketsFor". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsEvent inserts a Event value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFlag inserts a Flag value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsFollow inserts a Follow value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsGroup inserts a Group value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsImage inserts a Image value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value -// at the specified index for a property "tracksTicketsFor". Existing elements -// at that index and higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsInvite inserts a Invite value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsJoin inserts a Join value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLeave inserts a Leave value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsLike inserts a Like value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsListen inserts a Listen value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsMove inserts a Move value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsNote inserts a Note value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsObject inserts a Object value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOffer inserts a Offer value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the -// specified index for a property "tracksTicketsFor". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage -// value at the specified index for a property "tracksTicketsFor". Existing -// elements at that index and higher are shifted back once. Invalidates all -// iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsOrganization inserts a Organization value at the specified -// index for a property "tracksTicketsFor". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPage inserts a Page value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPerson inserts a Person value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsPlace inserts a Place value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsProfile inserts a Profile value at the specified index for -// a property "tracksTicketsFor". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsQuestion inserts a Question value at the specified index -// for a property "tracksTicketsFor". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRead inserts a Read value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsReject inserts a Reject value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRelationship inserts a Relationship value at the specified -// index for a property "tracksTicketsFor". Existing elements at that index -// and higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsRemove inserts a Remove value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsService inserts a Service value at the specified index for -// a property "tracksTicketsFor". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the -// specified index for a property "tracksTicketsFor". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the -// specified index for a property "tracksTicketsFor". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index -// for a property "tracksTicketsFor". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsTravel inserts a Travel value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUndo inserts a Undo value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsUpdate inserts a Update value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsVideo inserts a Video value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertActivityStreamsView inserts a View value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedBranch inserts a Branch value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedCommit inserts a Commit value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedPush inserts a Push value at the specified index for a property -// "tracksTicketsFor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedRepository inserts a Repository value at the specified index for -// a property "tracksTicketsFor". Existing elements at that index and higher -// are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicket inserts a Ticket value at the specified index for a -// property "tracksTicketsFor". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertForgeFedTicketDependency inserts a TicketDependency value at the -// specified index for a property "tracksTicketsFor". Existing elements at -// that index and higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Insert inserts an IRI value at the specified index for a property -// "tracksTicketsFor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootEmoji inserts a Emoji value at the specified index for a property -// "tracksTicketsFor". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertTootIdentityProof inserts a IdentityProof value at the specified index -// for a property "tracksTicketsFor". Existing elements at that index and -// higher are shifted back once. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "tracksTicketsFor". Invalidates all iterators. Returns an error if -// the type is not a valid one to set for this property. -func (this *ForgeFedTracksTicketsForProperty) InsertType(idx int, t vocab.Type) error { - n := &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this ForgeFedTracksTicketsForProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this ForgeFedTracksTicketsForProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "tracksTicketsFor" property. -func (this ForgeFedTracksTicketsForProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this ForgeFedTracksTicketsForProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetActivityStreamsObject() - rhs := this.properties[j].GetActivityStreamsObject() - return lhs.LessThan(rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetActivityStreamsAccept() - rhs := this.properties[j].GetActivityStreamsAccept() - return lhs.LessThan(rhs) - } else if idx1 == 2 { - lhs := this.properties[i].GetActivityStreamsActivity() - rhs := this.properties[j].GetActivityStreamsActivity() - return lhs.LessThan(rhs) - } else if idx1 == 3 { - lhs := this.properties[i].GetActivityStreamsAdd() - rhs := this.properties[j].GetActivityStreamsAdd() - return lhs.LessThan(rhs) - } else if idx1 == 4 { - lhs := this.properties[i].GetActivityStreamsAnnounce() - rhs := this.properties[j].GetActivityStreamsAnnounce() - return lhs.LessThan(rhs) - } else if idx1 == 5 { - lhs := this.properties[i].GetActivityStreamsApplication() - rhs := this.properties[j].GetActivityStreamsApplication() - return lhs.LessThan(rhs) - } else if idx1 == 6 { - lhs := this.properties[i].GetActivityStreamsArrive() - rhs := this.properties[j].GetActivityStreamsArrive() - return lhs.LessThan(rhs) - } else if idx1 == 7 { - lhs := this.properties[i].GetActivityStreamsArticle() - rhs := this.properties[j].GetActivityStreamsArticle() - return lhs.LessThan(rhs) - } else if idx1 == 8 { - lhs := this.properties[i].GetActivityStreamsAudio() - rhs := this.properties[j].GetActivityStreamsAudio() - return lhs.LessThan(rhs) - } else if idx1 == 9 { - lhs := this.properties[i].GetActivityStreamsBlock() - rhs := this.properties[j].GetActivityStreamsBlock() - return lhs.LessThan(rhs) - } else if idx1 == 10 { - lhs := this.properties[i].GetForgeFedBranch() - rhs := this.properties[j].GetForgeFedBranch() - return lhs.LessThan(rhs) - } else if idx1 == 11 { - lhs := this.properties[i].GetActivityStreamsCollection() - rhs := this.properties[j].GetActivityStreamsCollection() - return lhs.LessThan(rhs) - } else if idx1 == 12 { - lhs := this.properties[i].GetActivityStreamsCollectionPage() - rhs := this.properties[j].GetActivityStreamsCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 13 { - lhs := this.properties[i].GetForgeFedCommit() - rhs := this.properties[j].GetForgeFedCommit() - return lhs.LessThan(rhs) - } else if idx1 == 14 { - lhs := this.properties[i].GetActivityStreamsCreate() - rhs := this.properties[j].GetActivityStreamsCreate() - return lhs.LessThan(rhs) - } else if idx1 == 15 { - lhs := this.properties[i].GetActivityStreamsDelete() - rhs := this.properties[j].GetActivityStreamsDelete() - return lhs.LessThan(rhs) - } else if idx1 == 16 { - lhs := this.properties[i].GetActivityStreamsDislike() - rhs := this.properties[j].GetActivityStreamsDislike() - return lhs.LessThan(rhs) - } else if idx1 == 17 { - lhs := this.properties[i].GetActivityStreamsDocument() - rhs := this.properties[j].GetActivityStreamsDocument() - return lhs.LessThan(rhs) - } else if idx1 == 18 { - lhs := this.properties[i].GetTootEmoji() - rhs := this.properties[j].GetTootEmoji() - return lhs.LessThan(rhs) - } else if idx1 == 19 { - lhs := this.properties[i].GetActivityStreamsEvent() - rhs := this.properties[j].GetActivityStreamsEvent() - return lhs.LessThan(rhs) - } else if idx1 == 20 { - lhs := this.properties[i].GetActivityStreamsFlag() - rhs := this.properties[j].GetActivityStreamsFlag() - return lhs.LessThan(rhs) - } else if idx1 == 21 { - lhs := this.properties[i].GetActivityStreamsFollow() - rhs := this.properties[j].GetActivityStreamsFollow() - return lhs.LessThan(rhs) - } else if idx1 == 22 { - lhs := this.properties[i].GetActivityStreamsGroup() - rhs := this.properties[j].GetActivityStreamsGroup() - return lhs.LessThan(rhs) - } else if idx1 == 23 { - lhs := this.properties[i].GetTootIdentityProof() - rhs := this.properties[j].GetTootIdentityProof() - return lhs.LessThan(rhs) - } else if idx1 == 24 { - lhs := this.properties[i].GetActivityStreamsIgnore() - rhs := this.properties[j].GetActivityStreamsIgnore() - return lhs.LessThan(rhs) - } else if idx1 == 25 { - lhs := this.properties[i].GetActivityStreamsImage() - rhs := this.properties[j].GetActivityStreamsImage() - return lhs.LessThan(rhs) - } else if idx1 == 26 { - lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() - rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() - return lhs.LessThan(rhs) - } else if idx1 == 27 { - lhs := this.properties[i].GetActivityStreamsInvite() - rhs := this.properties[j].GetActivityStreamsInvite() - return lhs.LessThan(rhs) - } else if idx1 == 28 { - lhs := this.properties[i].GetActivityStreamsJoin() - rhs := this.properties[j].GetActivityStreamsJoin() - return lhs.LessThan(rhs) - } else if idx1 == 29 { - lhs := this.properties[i].GetActivityStreamsLeave() - rhs := this.properties[j].GetActivityStreamsLeave() - return lhs.LessThan(rhs) - } else if idx1 == 30 { - lhs := this.properties[i].GetActivityStreamsLike() - rhs := this.properties[j].GetActivityStreamsLike() - return lhs.LessThan(rhs) - } else if idx1 == 31 { - lhs := this.properties[i].GetActivityStreamsListen() - rhs := this.properties[j].GetActivityStreamsListen() - return lhs.LessThan(rhs) - } else if idx1 == 32 { - lhs := this.properties[i].GetActivityStreamsMove() - rhs := this.properties[j].GetActivityStreamsMove() - return lhs.LessThan(rhs) - } else if idx1 == 33 { - lhs := this.properties[i].GetActivityStreamsNote() - rhs := this.properties[j].GetActivityStreamsNote() - return lhs.LessThan(rhs) - } else if idx1 == 34 { - lhs := this.properties[i].GetActivityStreamsOffer() - rhs := this.properties[j].GetActivityStreamsOffer() - return lhs.LessThan(rhs) - } else if idx1 == 35 { - lhs := this.properties[i].GetActivityStreamsOrderedCollection() - rhs := this.properties[j].GetActivityStreamsOrderedCollection() - return lhs.LessThan(rhs) - } else if idx1 == 36 { - lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() - rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() - return lhs.LessThan(rhs) - } else if idx1 == 37 { - lhs := this.properties[i].GetActivityStreamsOrganization() - rhs := this.properties[j].GetActivityStreamsOrganization() - return lhs.LessThan(rhs) - } else if idx1 == 38 { - lhs := this.properties[i].GetActivityStreamsPage() - rhs := this.properties[j].GetActivityStreamsPage() - return lhs.LessThan(rhs) - } else if idx1 == 39 { - lhs := this.properties[i].GetActivityStreamsPerson() - rhs := this.properties[j].GetActivityStreamsPerson() - return lhs.LessThan(rhs) - } else if idx1 == 40 { - lhs := this.properties[i].GetActivityStreamsPlace() - rhs := this.properties[j].GetActivityStreamsPlace() - return lhs.LessThan(rhs) - } else if idx1 == 41 { - lhs := this.properties[i].GetActivityStreamsProfile() - rhs := this.properties[j].GetActivityStreamsProfile() - return lhs.LessThan(rhs) - } else if idx1 == 42 { - lhs := this.properties[i].GetForgeFedPush() - rhs := this.properties[j].GetForgeFedPush() - return lhs.LessThan(rhs) - } else if idx1 == 43 { - lhs := this.properties[i].GetActivityStreamsQuestion() - rhs := this.properties[j].GetActivityStreamsQuestion() - return lhs.LessThan(rhs) - } else if idx1 == 44 { - lhs := this.properties[i].GetActivityStreamsRead() - rhs := this.properties[j].GetActivityStreamsRead() - return lhs.LessThan(rhs) - } else if idx1 == 45 { - lhs := this.properties[i].GetActivityStreamsReject() - rhs := this.properties[j].GetActivityStreamsReject() - return lhs.LessThan(rhs) - } else if idx1 == 46 { - lhs := this.properties[i].GetActivityStreamsRelationship() - rhs := this.properties[j].GetActivityStreamsRelationship() - return lhs.LessThan(rhs) - } else if idx1 == 47 { - lhs := this.properties[i].GetActivityStreamsRemove() - rhs := this.properties[j].GetActivityStreamsRemove() - return lhs.LessThan(rhs) - } else if idx1 == 48 { - lhs := this.properties[i].GetForgeFedRepository() - rhs := this.properties[j].GetForgeFedRepository() - return lhs.LessThan(rhs) - } else if idx1 == 49 { - lhs := this.properties[i].GetActivityStreamsService() - rhs := this.properties[j].GetActivityStreamsService() - return lhs.LessThan(rhs) - } else if idx1 == 50 { - lhs := this.properties[i].GetActivityStreamsTentativeAccept() - rhs := this.properties[j].GetActivityStreamsTentativeAccept() - return lhs.LessThan(rhs) - } else if idx1 == 51 { - lhs := this.properties[i].GetActivityStreamsTentativeReject() - rhs := this.properties[j].GetActivityStreamsTentativeReject() - return lhs.LessThan(rhs) - } else if idx1 == 52 { - lhs := this.properties[i].GetForgeFedTicket() - rhs := this.properties[j].GetForgeFedTicket() - return lhs.LessThan(rhs) - } else if idx1 == 53 { - lhs := this.properties[i].GetForgeFedTicketDependency() - rhs := this.properties[j].GetForgeFedTicketDependency() - return lhs.LessThan(rhs) - } else if idx1 == 54 { - lhs := this.properties[i].GetActivityStreamsTombstone() - rhs := this.properties[j].GetActivityStreamsTombstone() - return lhs.LessThan(rhs) - } else if idx1 == 55 { - lhs := this.properties[i].GetActivityStreamsTravel() - rhs := this.properties[j].GetActivityStreamsTravel() - return lhs.LessThan(rhs) - } else if idx1 == 56 { - lhs := this.properties[i].GetActivityStreamsUndo() - rhs := this.properties[j].GetActivityStreamsUndo() - return lhs.LessThan(rhs) - } else if idx1 == 57 { - lhs := this.properties[i].GetActivityStreamsUpdate() - rhs := this.properties[j].GetActivityStreamsUpdate() - return lhs.LessThan(rhs) - } else if idx1 == 58 { - lhs := this.properties[i].GetActivityStreamsVideo() - rhs := this.properties[j].GetActivityStreamsVideo() - return lhs.LessThan(rhs) - } else if idx1 == 59 { - lhs := this.properties[i].GetActivityStreamsView() - rhs := this.properties[j].GetActivityStreamsView() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this ForgeFedTracksTicketsForProperty) LessThan(o vocab.ForgeFedTracksTicketsForProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("tracksTicketsFor") with any alias. -func (this ForgeFedTracksTicketsForProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "tracksTicketsFor" - } else { - return "tracksTicketsFor" - } -} - -// PrependActivityStreamsAccept prepends a Accept value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsActivity prepends a Activity value to the front of a list -// of the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAdd prepends a Add value to the front of a list of the -// property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list -// of the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsApplication prepends a Application value to the front of -// a list of the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsArticle prepends a Article value to the front of a list -// of the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsAudio prepends a Audio value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsBlock prepends a Block value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollection prepends a Collection value to the front of a -// list of the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the -// front of a list of the property "tracksTicketsFor". Invalidates all -// iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsCreate prepends a Create value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDelete prepends a Delete value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDislike prepends a Dislike value to the front of a list -// of the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsDocument prepends a Document value to the front of a list -// of the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsEvent prepends a Event value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the -// property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsFollow prepends a Follow value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsGroup prepends a Group value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsImage prepends a Image value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity -// value to the front of a list of the property "tracksTicketsFor". -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsInvite prepends a Invite value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsJoin prepends a Join value to the front of a list of the -// property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLeave prepends a Leave value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsLike prepends a Like value to the front of a list of the -// property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsListen prepends a Listen value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsMove prepends a Move value to the front of a list of the -// property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsNote prepends a Note value to the front of a list of the -// property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsObject prepends a Object value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOffer prepends a Offer value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to -// the front of a list of the property "tracksTicketsFor". Invalidates all -// iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage -// value to the front of a list of the property "tracksTicketsFor". -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsOrganization prepends a Organization value to the front -// of a list of the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPage prepends a Page value to the front of a list of the -// property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPerson prepends a Person value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsPlace prepends a Place value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsProfile prepends a Profile value to the front of a list -// of the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsQuestion prepends a Question value to the front of a list -// of the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRead prepends a Read value to the front of a list of the -// property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsReject prepends a Reject value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRelationship prepends a Relationship value to the front -// of a list of the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsRemove prepends a Remove value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsService prepends a Service value to the front of a list -// of the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the -// front of a list of the property "tracksTicketsFor". Invalidates all -// iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the -// front of a list of the property "tracksTicketsFor". Invalidates all -// iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a -// list of the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsTravel prepends a Travel value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the -// property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsUpdate prepends a Update value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsVideo prepends a Video value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependActivityStreamsView prepends a View value to the front of a list of the -// property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedBranch prepends a Branch value to the front of a list of the -// property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedCommit prepends a Commit value to the front of a list of the -// property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedPush prepends a Push value to the front of a list of the -// property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependForgeFedPush(v vocab.ForgeFedPush) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - alias: this.alias, - forgefedPushMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedRepository prepends a Repository value to the front of a list of -// the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicket prepends a Ticket value to the front of a list of the -// property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependForgeFedTicketDependency prepends a TicketDependency value to the front -// of a list of the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "tracksTicketsFor". -func (this *ForgeFedTracksTicketsForProperty) PrependIRI(v *url.URL) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootEmoji prepends a Emoji value to the front of a list of the property -// "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependTootEmoji(v vocab.TootEmoji) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootEmojiMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependTootIdentityProof prepends a IdentityProof value to the front of a list -// of the property "tracksTicketsFor". Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) { - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - tootIdentityProofMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "tracksTicketsFor". Invalidates all iterators. Returns an error if -// the type is not a valid one to set for this property. -func (this *ForgeFedTracksTicketsForProperty) PrependType(t vocab.Type) error { - n := &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*ForgeFedTracksTicketsForPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// Remove deletes an element at the specified index from a list of the property -// "tracksTicketsFor", regardless of its type. Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &ForgeFedTracksTicketsForPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this ForgeFedTracksTicketsForProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetActivityStreamsAccept sets a Accept value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsActivity sets a Activity value to be at the specified index -// for the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAdd sets a Add value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsAddMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAnnounce sets a Announce value to be at the specified index -// for the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsAnnounceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsApplication sets a Application value to be at the specified -// index for the property "tracksTicketsFor". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsApplicationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArrive sets a Arrive value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsArriveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsArticle sets a Article value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsArticleMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsAudio sets a Audio value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsAudioMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsBlock sets a Block value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsBlockMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollection sets a Collection value to be at the specified -// index for the property "tracksTicketsFor". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the -// specified index for the property "tracksTicketsFor". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsCreate sets a Create value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsCreateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDelete sets a Delete value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsDeleteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDislike sets a Dislike value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsDislikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsDocument sets a Document value to be at the specified index -// for the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsDocumentMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsEvent sets a Event value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsEventMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFlag sets a Flag value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsFlagMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsFollow sets a Follow value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsFollowMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsGroup sets a Group value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsGroupMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsIgnoreMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsImage sets a Image value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsImageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be -// at the specified index for the property "tracksTicketsFor". Panics if the -// index is out of bounds. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsIntransitiveActivityMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsInvite sets a Invite value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsInviteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsJoin sets a Join value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsJoinMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLeave sets a Leave value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsLeaveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsLike sets a Like value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsLikeMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsListen sets a Listen value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsListenMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsMove sets a Move value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsMoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsNote sets a Note value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsNoteMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsObject sets a Object value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsObjectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOffer sets a Offer value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsOfferMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the -// specified index for the property "tracksTicketsFor". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsOrderedCollectionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to -// be at the specified index for the property "tracksTicketsFor". Panics if -// the index is out of bounds. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsOrderedCollectionPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsOrganization sets a Organization value to be at the specified -// index for the property "tracksTicketsFor". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsOrganizationMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPage sets a Page value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsPageMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPerson sets a Person value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsPersonMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsPlace sets a Place value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsPlaceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsProfile sets a Profile value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsProfileMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsQuestion sets a Question value to be at the specified index -// for the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsQuestionMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRead sets a Read value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsReadMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsReject sets a Reject value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRelationship sets a Relationship value to be at the specified -// index for the property "tracksTicketsFor". Panics if the index is out of -// bounds. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsRelationshipMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsRemove sets a Remove value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsRemoveMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsService sets a Service value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsServiceMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the -// specified index for the property "tracksTicketsFor". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsTentativeAcceptMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the -// specified index for the property "tracksTicketsFor". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsTentativeRejectMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index -// for the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsTombstoneMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsTravel sets a Travel value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsTravelMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUndo sets a Undo value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsUndoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsUpdate sets a Update value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsUpdateMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsVideo sets a Video value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsVideoMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetActivityStreamsView sets a View value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - activitystreamsViewMember: v, - alias: this.alias, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedBranch sets a Branch value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedBranchMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedCommit sets a Commit value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedCommitMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedPush sets a Push value to be at the specified index for the property -// "tracksTicketsFor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ForgeFedTracksTicketsForProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedPushMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedRepository sets a Repository value to be at the specified index for -// the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedRepositoryMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicket sets a Ticket value to be at the specified index for the -// property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedTicketMember: v, - myIdx: idx, - parent: this, - } -} - -// SetForgeFedTicketDependency sets a TicketDependency value to be at the -// specified index for the property "tracksTicketsFor". Panics if the index is -// out of bounds. Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - forgefedTicketDependencyMember: v, - myIdx: idx, - parent: this, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "tracksTicketsFor". Panics if the index is out of bounds. -func (this *ForgeFedTracksTicketsForProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetTootEmoji sets a Emoji value to be at the specified index for the property -// "tracksTicketsFor". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *ForgeFedTracksTicketsForProperty) SetTootEmoji(idx int, v vocab.TootEmoji) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootEmojiMember: v, - } -} - -// SetTootIdentityProof sets a IdentityProof value to be at the specified index -// for the property "tracksTicketsFor". Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *ForgeFedTracksTicketsForProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - tootIdentityProofMember: v, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "tracksTicketsFor". Invalidates all iterators. Returns an error if the type -// is not a valid one to set for this property. Panics if the index is out of -// bounds. -func (this *ForgeFedTracksTicketsForProperty) SetType(idx int, t vocab.Type) error { - n := &ForgeFedTracksTicketsForPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "tracksTicketsFor" -// property. -func (this ForgeFedTracksTicketsForProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_branch/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_branch/gen_doc.go deleted file mode 100644 index c6836a19d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_branch/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typebranch contains the implementation for the Branch type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typebranch diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_branch/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_branch/gen_pkg.go deleted file mode 100644 index c96a877ad..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_branch/gen_pkg.go +++ /dev/null @@ -1,191 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typebranch - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRefPropertyForgeFed returns the deserialization method for - // the "ForgeFedRefProperty" non-functional property in the vocabulary - // "ForgeFed" - DeserializeRefPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRefProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_branch/gen_type_forgefed_branch.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_branch/gen_type_forgefed_branch.go deleted file mode 100644 index 81a683c2a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_branch/gen_type_forgefed_branch.go +++ /dev/null @@ -1,1778 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typebranch - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents a named variable reference to a version of the Repository, typically -// used for committing changes in parallel to other development, and usually -// eventually merging the changes into the main history line. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://forgefed.peers.community/ns" -// ], -// "context": "https://example.org/luke/myrepo", -// "id": "https://example.org/luke/myrepo/branches/master", -// "name": "master", -// "ref": "refs/heads/master", -// "type": "Branch" -// } -type ForgeFedBranch struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ForgeFedRef vocab.ForgeFedRefProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// BranchIsDisjointWith returns true if the other provided type is disjoint with -// the Branch type. -func BranchIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// BranchIsExtendedBy returns true if the other provided type extends from the -// Branch type. Note that it returns false if the types are the same; see the -// "IsOrExtendsBranch" variant instead. -func BranchIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeBranch creates a Branch from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeBranch(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedBranch, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ForgeFedBranch{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Branch" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Branch", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Branch" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Branch") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRefPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedRef = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "ref" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// ForgeFedBranchExtends returns true if the Branch type extends from the other -// type. -func ForgeFedBranchExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsBranch returns true if the other provided type is the Branch type or -// extends from the Branch type. -func IsOrExtendsBranch(other vocab.Type) bool { - if other.GetTypeName() == "Branch" { - return true - } - return BranchIsExtendedBy(other) -} - -// NewForgeFedBranch creates a new Branch type -func NewForgeFedBranch() *ForgeFedBranch { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Branch") - return &ForgeFedBranch{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ForgeFedBranch) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ForgeFedBranch) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ForgeFedBranch) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ForgeFedBranch) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ForgeFedBranch) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ForgeFedBranch) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ForgeFedBranch) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ForgeFedBranch) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ForgeFedBranch) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ForgeFedBranch) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ForgeFedBranch) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ForgeFedBranch) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ForgeFedBranch) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ForgeFedBranch) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedRef returns the "ref" property if it exists, and nil otherwise. -func (this ForgeFedBranch) GetForgeFedRef() vocab.ForgeFedRefProperty { - return this.ForgeFedRef -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ForgeFedBranch) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ForgeFedBranch) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ForgeFedBranch) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ForgeFedBranch) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ForgeFedBranch) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ForgeFedBranch) GetTypeName() string { - return "Branch" -} - -// GetUnknownProperties returns the unknown properties for the Branch type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ForgeFedBranch) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Branch type extends from the other type. -func (this ForgeFedBranch) IsExtending(other vocab.Type) bool { - return ForgeFedBranchExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ForgeFedBranch) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ForgeFedRef, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Branch is lesser, with an arbitrary but stable -// determination. -func (this ForgeFedBranch) LessThan(o vocab.ForgeFedBranch) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ref" - if lhs, rhs := this.ForgeFedRef, o.GetForgeFedRef(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ForgeFedBranch) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Branch" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Branch" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "ref" - if this.ForgeFedRef != nil { - if i, err := this.ForgeFedRef.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedRef.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ForgeFedBranch) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ForgeFedBranch) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ForgeFedBranch) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ForgeFedBranch) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ForgeFedBranch) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ForgeFedBranch) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ForgeFedBranch) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ForgeFedBranch) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ForgeFedBranch) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ForgeFedBranch) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ForgeFedBranch) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ForgeFedBranch) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ForgeFedBranch) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ForgeFedBranch) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ForgeFedBranch) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ForgeFedBranch) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ForgeFedBranch) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ForgeFedBranch) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ForgeFedBranch) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ForgeFedBranch) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ForgeFedBranch) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ForgeFedBranch) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ForgeFedBranch) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ForgeFedBranch) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ForgeFedBranch) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ForgeFedBranch) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ForgeFedBranch) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ForgeFedBranch) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ForgeFedBranch) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ForgeFedBranch) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ForgeFedBranch) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedRef sets the "ref" property. -func (this *ForgeFedBranch) SetForgeFedRef(i vocab.ForgeFedRefProperty) { - this.ForgeFedRef = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ForgeFedBranch) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ForgeFedBranch) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ForgeFedBranch) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ForgeFedBranch) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ForgeFedBranch) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ForgeFedBranch) VocabularyURI() string { - return "https://forgefed.peers.community/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ForgeFedBranch) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_commit/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_commit/gen_doc.go deleted file mode 100644 index d9954fc19..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_commit/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typecommit contains the implementation for the Commit type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typecommit diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_commit/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_commit/gen_pkg.go deleted file mode 100644 index 59844de7b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_commit/gen_pkg.go +++ /dev/null @@ -1,215 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecommit - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeCommittedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedCommittedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeCommittedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommittedByProperty, error) - // DeserializeCommittedPropertyForgeFed returns the deserialization method - // for the "ForgeFedCommittedProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeCommittedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommittedProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDescriptionPropertyForgeFed returns the deserialization - // method for the "ForgeFedDescriptionProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeDescriptionPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDescriptionProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeFilesAddedPropertyForgeFed returns the deserialization - // method for the "ForgeFedFilesAddedProperty" non-functional property - // in the vocabulary "ForgeFed" - DeserializeFilesAddedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedFilesAddedProperty, error) - // DeserializeFilesModifiedPropertyForgeFed returns the deserialization - // method for the "ForgeFedFilesModifiedProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeFilesModifiedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedFilesModifiedProperty, error) - // DeserializeFilesRemovedPropertyForgeFed returns the deserialization - // method for the "ForgeFedFilesRemovedProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeFilesRemovedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedFilesRemovedProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeHashPropertyForgeFed returns the deserialization method for - // the "ForgeFedHashProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeHashPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedHashProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_commit/gen_type_forgefed_commit.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_commit/gen_type_forgefed_commit.go deleted file mode 100644 index 5144ee50e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_commit/gen_type_forgefed_commit.go +++ /dev/null @@ -1,2040 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typecommit - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents a named set of changes in the history of a Repository. This is -// called "commit" in Git, Mercurial and Monotone; "patch" in Darcs; sometimes -// called "change set". Note that Commit is a set of changes that already -// exists in a repo’s history, while a Patch is a separate proposed change -// set, that could be applied and pushed to a repo, resulting with a Commit. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://forgefed.peers.community/ns" -// ], -// "attributedTo": "https://example.org/bob", -// "committed": "2019-07-26T23:45:01Z", -// "committedBy": "https://example.org/alice", -// "context": "https://example.org/alice/myrepo", -// "created": "2019-07-11T12:34:56Z", -// "description": { -// "content": "It's about time people can install on their computers!", -// "mediaType": "text/plain" -// }, -// "hash": "109ec9a09c7df7fec775d2ba0b9d466e5643ec8c", -// "id": "https://example.org/alice/myrepo/commits/109ec9a09c7df7fec775d2ba0b9d466e5643ec8c", -// "summary": "Add an installation script, fixes issue #89", -// "type": "Commit" -// } -type ForgeFedCommit struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ForgeFedCommitted vocab.ForgeFedCommittedProperty - ForgeFedCommittedBy vocab.ForgeFedCommittedByProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ForgeFedDescription vocab.ForgeFedDescriptionProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ForgeFedFilesAdded vocab.ForgeFedFilesAddedProperty - ForgeFedFilesModified vocab.ForgeFedFilesModifiedProperty - ForgeFedFilesRemoved vocab.ForgeFedFilesRemovedProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ForgeFedHash vocab.ForgeFedHashProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// CommitIsDisjointWith returns true if the other provided type is disjoint with -// the Commit type. -func CommitIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// CommitIsExtendedBy returns true if the other provided type extends from the -// Commit type. Note that it returns false if the types are the same; see the -// "IsOrExtendsCommit" variant instead. -func CommitIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// DeserializeCommit creates a Commit from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeCommit(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedCommit, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ForgeFedCommit{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Commit" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Commit", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Commit" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Commit") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeCommittedPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedCommitted = p - } - if p, err := mgr.DeserializeCommittedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedCommittedBy = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDescriptionPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedDescription = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeFilesAddedPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedFilesAdded = p - } - if p, err := mgr.DeserializeFilesModifiedPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedFilesModified = p - } - if p, err := mgr.DeserializeFilesRemovedPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedFilesRemoved = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeHashPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedHash = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "committed" { - continue - } else if k == "committedBy" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "description" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "filesAdded" { - continue - } else if k == "filesModified" { - continue - } else if k == "filesRemoved" { - continue - } else if k == "generator" { - continue - } else if k == "hash" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// ForgeFedCommitExtends returns true if the Commit type extends from the other -// type. -func ForgeFedCommitExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsCommit returns true if the other provided type is the Commit type or -// extends from the Commit type. -func IsOrExtendsCommit(other vocab.Type) bool { - if other.GetTypeName() == "Commit" { - return true - } - return CommitIsExtendedBy(other) -} - -// NewForgeFedCommit creates a new Commit type -func NewForgeFedCommit() *ForgeFedCommit { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Commit") - return &ForgeFedCommit{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ForgeFedCommit) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ForgeFedCommit) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ForgeFedCommit) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ForgeFedCommit) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ForgeFedCommit) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ForgeFedCommit) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ForgeFedCommit) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ForgeFedCommit) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ForgeFedCommit) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ForgeFedCommit) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ForgeFedCommit) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ForgeFedCommit) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ForgeFedCommit) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedCommitted returns the "committed" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetForgeFedCommitted() vocab.ForgeFedCommittedProperty { - return this.ForgeFedCommitted -} - -// GetForgeFedCommittedBy returns the "committedBy" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetForgeFedCommittedBy() vocab.ForgeFedCommittedByProperty { - return this.ForgeFedCommittedBy -} - -// GetForgeFedDescription returns the "description" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetForgeFedDescription() vocab.ForgeFedDescriptionProperty { - return this.ForgeFedDescription -} - -// GetForgeFedFilesAdded returns the "filesAdded" property if it exists, and nil -// otherwise. -func (this ForgeFedCommit) GetForgeFedFilesAdded() vocab.ForgeFedFilesAddedProperty { - return this.ForgeFedFilesAdded -} - -// GetForgeFedFilesModified returns the "filesModified" property if it exists, and -// nil otherwise. -func (this ForgeFedCommit) GetForgeFedFilesModified() vocab.ForgeFedFilesModifiedProperty { - return this.ForgeFedFilesModified -} - -// GetForgeFedFilesRemoved returns the "filesRemoved" property if it exists, and -// nil otherwise. -func (this ForgeFedCommit) GetForgeFedFilesRemoved() vocab.ForgeFedFilesRemovedProperty { - return this.ForgeFedFilesRemoved -} - -// GetForgeFedHash returns the "hash" property if it exists, and nil otherwise. -func (this ForgeFedCommit) GetForgeFedHash() vocab.ForgeFedHashProperty { - return this.ForgeFedHash -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ForgeFedCommit) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ForgeFedCommit) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ForgeFedCommit) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ForgeFedCommit) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ForgeFedCommit) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ForgeFedCommit) GetTypeName() string { - return "Commit" -} - -// GetUnknownProperties returns the unknown properties for the Commit type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ForgeFedCommit) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Commit type extends from the other type. -func (this ForgeFedCommit) IsExtending(other vocab.Type) bool { - return ForgeFedCommitExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ForgeFedCommit) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ForgeFedCommitted, m) - m = this.helperJSONLDContext(this.ForgeFedCommittedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ForgeFedDescription, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ForgeFedFilesAdded, m) - m = this.helperJSONLDContext(this.ForgeFedFilesModified, m) - m = this.helperJSONLDContext(this.ForgeFedFilesRemoved, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ForgeFedHash, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Commit is lesser, with an arbitrary but stable -// determination. -func (this ForgeFedCommit) LessThan(o vocab.ForgeFedCommit) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "committed" - if lhs, rhs := this.ForgeFedCommitted, o.GetForgeFedCommitted(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "committedBy" - if lhs, rhs := this.ForgeFedCommittedBy, o.GetForgeFedCommittedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "description" - if lhs, rhs := this.ForgeFedDescription, o.GetForgeFedDescription(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "filesAdded" - if lhs, rhs := this.ForgeFedFilesAdded, o.GetForgeFedFilesAdded(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "filesModified" - if lhs, rhs := this.ForgeFedFilesModified, o.GetForgeFedFilesModified(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "filesRemoved" - if lhs, rhs := this.ForgeFedFilesRemoved, o.GetForgeFedFilesRemoved(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "hash" - if lhs, rhs := this.ForgeFedHash, o.GetForgeFedHash(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ForgeFedCommit) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Commit" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Commit" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "committed" - if this.ForgeFedCommitted != nil { - if i, err := this.ForgeFedCommitted.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedCommitted.Name()] = i - } - } - // Maybe serialize property "committedBy" - if this.ForgeFedCommittedBy != nil { - if i, err := this.ForgeFedCommittedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedCommittedBy.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "description" - if this.ForgeFedDescription != nil { - if i, err := this.ForgeFedDescription.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedDescription.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "filesAdded" - if this.ForgeFedFilesAdded != nil { - if i, err := this.ForgeFedFilesAdded.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedFilesAdded.Name()] = i - } - } - // Maybe serialize property "filesModified" - if this.ForgeFedFilesModified != nil { - if i, err := this.ForgeFedFilesModified.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedFilesModified.Name()] = i - } - } - // Maybe serialize property "filesRemoved" - if this.ForgeFedFilesRemoved != nil { - if i, err := this.ForgeFedFilesRemoved.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedFilesRemoved.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "hash" - if this.ForgeFedHash != nil { - if i, err := this.ForgeFedHash.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedHash.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ForgeFedCommit) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ForgeFedCommit) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ForgeFedCommit) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ForgeFedCommit) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ForgeFedCommit) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ForgeFedCommit) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ForgeFedCommit) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ForgeFedCommit) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ForgeFedCommit) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ForgeFedCommit) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ForgeFedCommit) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ForgeFedCommit) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ForgeFedCommit) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ForgeFedCommit) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ForgeFedCommit) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ForgeFedCommit) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ForgeFedCommit) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ForgeFedCommit) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ForgeFedCommit) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ForgeFedCommit) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ForgeFedCommit) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ForgeFedCommit) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ForgeFedCommit) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ForgeFedCommit) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ForgeFedCommit) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ForgeFedCommit) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ForgeFedCommit) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ForgeFedCommit) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ForgeFedCommit) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ForgeFedCommit) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ForgeFedCommit) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedCommitted sets the "committed" property. -func (this *ForgeFedCommit) SetForgeFedCommitted(i vocab.ForgeFedCommittedProperty) { - this.ForgeFedCommitted = i -} - -// SetForgeFedCommittedBy sets the "committedBy" property. -func (this *ForgeFedCommit) SetForgeFedCommittedBy(i vocab.ForgeFedCommittedByProperty) { - this.ForgeFedCommittedBy = i -} - -// SetForgeFedDescription sets the "description" property. -func (this *ForgeFedCommit) SetForgeFedDescription(i vocab.ForgeFedDescriptionProperty) { - this.ForgeFedDescription = i -} - -// SetForgeFedFilesAdded sets the "filesAdded" property. -func (this *ForgeFedCommit) SetForgeFedFilesAdded(i vocab.ForgeFedFilesAddedProperty) { - this.ForgeFedFilesAdded = i -} - -// SetForgeFedFilesModified sets the "filesModified" property. -func (this *ForgeFedCommit) SetForgeFedFilesModified(i vocab.ForgeFedFilesModifiedProperty) { - this.ForgeFedFilesModified = i -} - -// SetForgeFedFilesRemoved sets the "filesRemoved" property. -func (this *ForgeFedCommit) SetForgeFedFilesRemoved(i vocab.ForgeFedFilesRemovedProperty) { - this.ForgeFedFilesRemoved = i -} - -// SetForgeFedHash sets the "hash" property. -func (this *ForgeFedCommit) SetForgeFedHash(i vocab.ForgeFedHashProperty) { - this.ForgeFedHash = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ForgeFedCommit) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ForgeFedCommit) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ForgeFedCommit) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ForgeFedCommit) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ForgeFedCommit) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ForgeFedCommit) VocabularyURI() string { - return "https://forgefed.peers.community/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ForgeFedCommit) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_push/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_push/gen_doc.go deleted file mode 100644 index f9a39c3ef..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_push/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typepush contains the implementation for the Push type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typepush diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_push/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_push/gen_pkg.go deleted file mode 100644 index f81e3ac8a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_push/gen_pkg.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typepush - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeActorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsActorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeInstrumentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsInstrumentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializeOriginPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsOriginProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeResultPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsResultProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTargetPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTargetProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_push/gen_type_forgefed_push.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_push/gen_type_forgefed_push.go deleted file mode 100644 index 5159e0f28..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_push/gen_type_forgefed_push.go +++ /dev/null @@ -1,1967 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typepush - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Indicates that new content has been pushed to the Repository. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://forgefed.peers.community/ns" -// ], -// "actor": "https://example.org/aviva", -// "context": "https://example.org/aviva/myproject", -// "id": "https://example.org/aviva/outbox/reBGo", -// "object": { -// "items": [ -// { -// "attributedTo": "https://example.org/aviva", -// "context": "https://example.org/aviva/myproject", -// "created": "2019-11-03T13:43:59Z", -// "hash": "d96596230322716bd6f87a232a648ca9822a1c20", -// "id": "https://example.org/aviva/myproject/commits/d96596230322716bd6f87a232a648ca9822a1c20", -// "summary": "Provide hints in sign-up form fields", -// "type": "Commit" -// } -// ], -// "totalItems": 1, -// "type": "OrderedCollection" -// }, -// "summary": "\u003cp\u003eAviva pushed a commit to -// myproject\u003c/p\u003e", -// "target": "https://example.org/aviva/myproject/branches/master", -// "to": [ -// "https://example.org/aviva/followers", -// "https://example.org/aviva/myproject", -// "https://example.org/aviva/myproject/team", -// "https://example.org/aviva/myproject/followers" -// ], -// "type": "Push" -// } -type ForgeFedPush struct { - ActivityStreamsActor vocab.ActivityStreamsActorProperty - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsResult vocab.ActivityStreamsResultProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ActivityStreamsTarget vocab.ActivityStreamsTargetProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// DeserializePush creates a Push from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializePush(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedPush, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ForgeFedPush{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Push" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Push", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Push" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Push") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsActor = p - } - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInstrument = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsOrigin = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsResult = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTarget = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "actor" { - continue - } else if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "instrument" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "origin" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "result" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "target" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// ForgeFedPushExtends returns true if the Push type extends from the other type. -func ForgeFedPushExtends(other vocab.Type) bool { - extensions := []string{"Activity", "Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsPush returns true if the other provided type is the Push type or -// extends from the Push type. -func IsOrExtendsPush(other vocab.Type) bool { - if other.GetTypeName() == "Push" { - return true - } - return PushIsExtendedBy(other) -} - -// NewForgeFedPush creates a new Push type -func NewForgeFedPush() *ForgeFedPush { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Push") - return &ForgeFedPush{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// PushIsDisjointWith returns true if the other provided type is disjoint with the -// Push type. -func PushIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// PushIsExtendedBy returns true if the other provided type extends from the Push -// type. Note that it returns false if the types are the same; see the -// "IsOrExtendsPush" variant instead. -func PushIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsActor returns the "actor" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { - return this.ActivityStreamsActor -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ForgeFedPush) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ForgeFedPush) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ForgeFedPush) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ForgeFedPush) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ForgeFedPush) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ForgeFedPush) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ForgeFedPush) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ForgeFedPush) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsInstrument returns the "instrument" property if it exists, -// and nil otherwise. -func (this ForgeFedPush) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { - return this.ActivityStreamsInstrument -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ForgeFedPush) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ForgeFedPush) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { - return this.ActivityStreamsOrigin -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ForgeFedPush) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsResult returns the "result" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { - return this.ActivityStreamsResult -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ForgeFedPush) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTarget returns the "target" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { - return this.ActivityStreamsTarget -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ForgeFedPush) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ForgeFedPush) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ForgeFedPush) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ForgeFedPush) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ForgeFedPush) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ForgeFedPush) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ForgeFedPush) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ForgeFedPush) GetTypeName() string { - return "Push" -} - -// GetUnknownProperties returns the unknown properties for the Push type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ForgeFedPush) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Push type extends from the other type. -func (this ForgeFedPush) IsExtending(other vocab.Type) bool { - return ForgeFedPushExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ForgeFedPush) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsActor, m) - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsResult, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ActivityStreamsTarget, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Push is lesser, with an arbitrary but stable -// determination. -func (this ForgeFedPush) LessThan(o vocab.ForgeFedPush) bool { - // Begin: Compare known properties - // Compare property "actor" - if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "instrument" - if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "origin" - if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "result" - if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "target" - if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ForgeFedPush) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Push" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Push" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "actor" - if this.ActivityStreamsActor != nil { - if i, err := this.ActivityStreamsActor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsActor.Name()] = i - } - } - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "instrument" - if this.ActivityStreamsInstrument != nil { - if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInstrument.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "origin" - if this.ActivityStreamsOrigin != nil { - if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsOrigin.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "result" - if this.ActivityStreamsResult != nil { - if i, err := this.ActivityStreamsResult.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsResult.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "target" - if this.ActivityStreamsTarget != nil { - if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTarget.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsActor sets the "actor" property. -func (this *ForgeFedPush) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { - this.ActivityStreamsActor = i -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ForgeFedPush) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ForgeFedPush) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ForgeFedPush) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ForgeFedPush) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ForgeFedPush) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ForgeFedPush) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ForgeFedPush) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ForgeFedPush) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ForgeFedPush) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ForgeFedPush) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ForgeFedPush) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ForgeFedPush) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ForgeFedPush) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ForgeFedPush) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ForgeFedPush) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsInstrument sets the "instrument" property. -func (this *ForgeFedPush) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { - this.ActivityStreamsInstrument = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ForgeFedPush) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ForgeFedPush) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ForgeFedPush) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ForgeFedPush) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ForgeFedPush) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsOrigin sets the "origin" property. -func (this *ForgeFedPush) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { - this.ActivityStreamsOrigin = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ForgeFedPush) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ForgeFedPush) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ForgeFedPush) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsResult sets the "result" property. -func (this *ForgeFedPush) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { - this.ActivityStreamsResult = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ForgeFedPush) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ForgeFedPush) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ForgeFedPush) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ForgeFedPush) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ForgeFedPush) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTarget sets the "target" property. -func (this *ForgeFedPush) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { - this.ActivityStreamsTarget = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ForgeFedPush) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ForgeFedPush) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ForgeFedPush) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ForgeFedPush) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ForgeFedPush) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ForgeFedPush) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ForgeFedPush) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ForgeFedPush) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ForgeFedPush) VocabularyURI() string { - return "https://forgefed.peers.community/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ForgeFedPush) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_repository/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_repository/gen_doc.go deleted file mode 100644 index 194a0adfb..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_repository/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typerepository contains the implementation for the Repository type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typerepository diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_repository/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_repository/gen_pkg.go deleted file mode 100644 index 95985e754..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_repository/gen_pkg.go +++ /dev/null @@ -1,191 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typerepository - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeForksPropertyForgeFed returns the deserialization method for - // the "ForgeFedForksProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeForksPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedForksProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_repository/gen_type_forgefed_repository.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_repository/gen_type_forgefed_repository.go deleted file mode 100644 index 819e5a2c4..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_repository/gen_type_forgefed_repository.go +++ /dev/null @@ -1,1786 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typerepository - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents a version control system repository. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://w3id.org/security/v1", -// "https://forgefed.peers.community/ns" -// ], -// "followers": "https://dev.example/aviva/treesim/followers", -// "id": "https://dev.example/aviva/treesim", -// "inbox": "https://dev.example/aviva/treesim/inbox", -// "name": "Tree Growth 3D Simulation", -// "outbox": "https://dev.example/aviva/treesim/outbox", -// "publicKey": { -// "id": "https://dev.example/aviva/treesim#main-key", -// "owner": "https://dev.example/aviva/treesim", -// "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhki....." -// }, -// "summary": "\u003cp\u003eTree growth 3D simulator for my nature -// exploration game\u003c/p\u003e", -// "team": "https://dev.example/aviva/treesim/team", -// "type": "Repository" -// } -type ForgeFedRepository struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ForgeFedForks vocab.ForgeFedForksProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// DeserializeRepository creates a Repository from a map representation that has -// been unmarshalled from a text or binary format. -func DeserializeRepository(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedRepository, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ForgeFedRepository{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Repository" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Repository", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Repository" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Repository") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeForksPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedForks = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "forks" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// ForgeFedRepositoryExtends returns true if the Repository type extends from the -// other type. -func ForgeFedRepositoryExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsRepository returns true if the other provided type is the Repository -// type or extends from the Repository type. -func IsOrExtendsRepository(other vocab.Type) bool { - if other.GetTypeName() == "Repository" { - return true - } - return RepositoryIsExtendedBy(other) -} - -// NewForgeFedRepository creates a new Repository type -func NewForgeFedRepository() *ForgeFedRepository { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Repository") - return &ForgeFedRepository{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// RepositoryIsDisjointWith returns true if the other provided type is disjoint -// with the Repository type. -func RepositoryIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// RepositoryIsExtendedBy returns true if the other provided type extends from the -// Repository type. Note that it returns false if the types are the same; see -// the "IsOrExtendsRepository" variant instead. -func RepositoryIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ForgeFedRepository) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ForgeFedRepository) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ForgeFedRepository) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ForgeFedRepository) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ForgeFedRepository) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ForgeFedRepository) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ForgeFedRepository) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ForgeFedRepository) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ForgeFedRepository) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ForgeFedRepository) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ForgeFedRepository) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ForgeFedRepository) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ForgeFedRepository) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ForgeFedRepository) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedForks returns the "forks" property if it exists, and nil otherwise. -func (this ForgeFedRepository) GetForgeFedForks() vocab.ForgeFedForksProperty { - return this.ForgeFedForks -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ForgeFedRepository) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ForgeFedRepository) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ForgeFedRepository) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ForgeFedRepository) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ForgeFedRepository) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ForgeFedRepository) GetTypeName() string { - return "Repository" -} - -// GetUnknownProperties returns the unknown properties for the Repository type. -// Note that this should not be used by app developers. It is only used to -// help determine which implementation is LessThan the other. Developers who -// are creating a different implementation of this type's interface can use -// this method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ForgeFedRepository) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Repository type extends from the other type. -func (this ForgeFedRepository) IsExtending(other vocab.Type) bool { - return ForgeFedRepositoryExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ForgeFedRepository) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ForgeFedForks, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Repository is lesser, with an arbitrary but stable -// determination. -func (this ForgeFedRepository) LessThan(o vocab.ForgeFedRepository) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "forks" - if lhs, rhs := this.ForgeFedForks, o.GetForgeFedForks(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ForgeFedRepository) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Repository" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Repository" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "forks" - if this.ForgeFedForks != nil { - if i, err := this.ForgeFedForks.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedForks.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ForgeFedRepository) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ForgeFedRepository) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ForgeFedRepository) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ForgeFedRepository) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ForgeFedRepository) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ForgeFedRepository) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ForgeFedRepository) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ForgeFedRepository) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ForgeFedRepository) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ForgeFedRepository) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ForgeFedRepository) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ForgeFedRepository) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ForgeFedRepository) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ForgeFedRepository) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ForgeFedRepository) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ForgeFedRepository) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ForgeFedRepository) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ForgeFedRepository) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ForgeFedRepository) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ForgeFedRepository) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ForgeFedRepository) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ForgeFedRepository) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ForgeFedRepository) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ForgeFedRepository) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ForgeFedRepository) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ForgeFedRepository) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ForgeFedRepository) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ForgeFedRepository) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ForgeFedRepository) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ForgeFedRepository) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ForgeFedRepository) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedForks sets the "forks" property. -func (this *ForgeFedRepository) SetForgeFedForks(i vocab.ForgeFedForksProperty) { - this.ForgeFedForks = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ForgeFedRepository) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ForgeFedRepository) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ForgeFedRepository) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ForgeFedRepository) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ForgeFedRepository) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ForgeFedRepository) VocabularyURI() string { - return "https://forgefed.peers.community/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ForgeFedRepository) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticket/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticket/gen_doc.go deleted file mode 100644 index 3268d6d09..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticket/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeticket contains the implementation for the Ticket type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeticket diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticket/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticket/gen_pkg.go deleted file mode 100644 index 1c57f8bde..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticket/gen_pkg.go +++ /dev/null @@ -1,211 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeticket - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAssignedToPropertyForgeFed returns the deserialization - // method for the "ForgeFedAssignedToProperty" non-functional property - // in the vocabulary "ForgeFed" - DeserializeAssignedToPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedAssignedToProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDependantsPropertyForgeFed returns the deserialization - // method for the "ForgeFedDependantsProperty" non-functional property - // in the vocabulary "ForgeFed" - DeserializeDependantsPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependantsProperty, error) - // DeserializeDependedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedDependedByProperty" non-functional property - // in the vocabulary "ForgeFed" - DeserializeDependedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependedByProperty, error) - // DeserializeDependenciesPropertyForgeFed returns the deserialization - // method for the "ForgeFedDependenciesProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeDependenciesPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependenciesProperty, error) - // DeserializeDependsOnPropertyForgeFed returns the deserialization method - // for the "ForgeFedDependsOnProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeDependsOnPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependsOnProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeIsResolvedPropertyForgeFed returns the deserialization - // method for the "ForgeFedIsResolvedProperty" non-functional property - // in the vocabulary "ForgeFed" - DeserializeIsResolvedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedIsResolvedProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticket/gen_type_forgefed_ticket.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticket/gen_type_forgefed_ticket.go deleted file mode 100644 index 2ccceda38..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticket/gen_type_forgefed_ticket.go +++ /dev/null @@ -1,1998 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeticket - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents an item that requires work or attention. Tickets exist in the -// context of a project (which may or may not be a version-control -// repository), and are used to track ideas, proposals, tasks, bugs and more. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://forgefed.peers.community/ns" -// ], -// "assignedTo": "https://example.org/alice", -// "attributedTo": "https://example.com/bob", -// "content": "\u003cp\u003ePlease fix. -// \u003ci\u003eEverything\u003c/i\u003e is broken!\u003c/p\u003e", -// "context": "https://example.org/alice/myrepo", -// "id": "https://example.org/alice/myrepo/issues/42", -// "isResolved": false, -// "mediaType": "text/html", -// "source": { -// "content": "Please fix. *Everything* is broken!", -// "mediaType": "text/markdown; variant=CommonMark" -// }, -// "summary": "Nothing works!", -// "type": "Ticket" -// } -type ForgeFedTicket struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ForgeFedAssignedTo vocab.ForgeFedAssignedToProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ForgeFedDependants vocab.ForgeFedDependantsProperty - ForgeFedDependedBy vocab.ForgeFedDependedByProperty - ForgeFedDependencies vocab.ForgeFedDependenciesProperty - ForgeFedDependsOn vocab.ForgeFedDependsOnProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ForgeFedIsResolved vocab.ForgeFedIsResolvedProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// DeserializeTicket creates a Ticket from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeTicket(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedTicket, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ForgeFedTicket{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Ticket" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Ticket", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Ticket" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Ticket") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAssignedToPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedAssignedTo = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDependantsPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedDependants = p - } - if p, err := mgr.DeserializeDependedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedDependedBy = p - } - if p, err := mgr.DeserializeDependenciesPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedDependencies = p - } - if p, err := mgr.DeserializeDependsOnPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedDependsOn = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeIsResolvedPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedIsResolved = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "assignedTo" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "dependants" { - continue - } else if k == "dependedBy" { - continue - } else if k == "dependencies" { - continue - } else if k == "dependsOn" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "isResolved" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// ForgeFedTicketExtends returns true if the Ticket type extends from the other -// type. -func ForgeFedTicketExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsTicket returns true if the other provided type is the Ticket type or -// extends from the Ticket type. -func IsOrExtendsTicket(other vocab.Type) bool { - if other.GetTypeName() == "Ticket" { - return true - } - return TicketIsExtendedBy(other) -} - -// NewForgeFedTicket creates a new Ticket type -func NewForgeFedTicket() *ForgeFedTicket { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Ticket") - return &ForgeFedTicket{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// TicketIsDisjointWith returns true if the other provided type is disjoint with -// the Ticket type. -func TicketIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// TicketIsExtendedBy returns true if the other provided type extends from the -// Ticket type. Note that it returns false if the types are the same; see the -// "IsOrExtendsTicket" variant instead. -func TicketIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ForgeFedTicket) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ForgeFedTicket) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ForgeFedTicket) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ForgeFedTicket) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ForgeFedTicket) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ForgeFedTicket) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ForgeFedTicket) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ForgeFedTicket) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ForgeFedTicket) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ForgeFedTicket) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ForgeFedTicket) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ForgeFedTicket) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ForgeFedTicket) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedAssignedTo returns the "assignedTo" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetForgeFedAssignedTo() vocab.ForgeFedAssignedToProperty { - return this.ForgeFedAssignedTo -} - -// GetForgeFedDependants returns the "dependants" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetForgeFedDependants() vocab.ForgeFedDependantsProperty { - return this.ForgeFedDependants -} - -// GetForgeFedDependedBy returns the "dependedBy" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetForgeFedDependedBy() vocab.ForgeFedDependedByProperty { - return this.ForgeFedDependedBy -} - -// GetForgeFedDependencies returns the "dependencies" property if it exists, and -// nil otherwise. -func (this ForgeFedTicket) GetForgeFedDependencies() vocab.ForgeFedDependenciesProperty { - return this.ForgeFedDependencies -} - -// GetForgeFedDependsOn returns the "dependsOn" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetForgeFedDependsOn() vocab.ForgeFedDependsOnProperty { - return this.ForgeFedDependsOn -} - -// GetForgeFedIsResolved returns the "isResolved" property if it exists, and nil -// otherwise. -func (this ForgeFedTicket) GetForgeFedIsResolved() vocab.ForgeFedIsResolvedProperty { - return this.ForgeFedIsResolved -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ForgeFedTicket) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ForgeFedTicket) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ForgeFedTicket) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ForgeFedTicket) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ForgeFedTicket) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ForgeFedTicket) GetTypeName() string { - return "Ticket" -} - -// GetUnknownProperties returns the unknown properties for the Ticket type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ForgeFedTicket) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Ticket type extends from the other type. -func (this ForgeFedTicket) IsExtending(other vocab.Type) bool { - return ForgeFedTicketExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ForgeFedTicket) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ForgeFedAssignedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ForgeFedDependants, m) - m = this.helperJSONLDContext(this.ForgeFedDependedBy, m) - m = this.helperJSONLDContext(this.ForgeFedDependencies, m) - m = this.helperJSONLDContext(this.ForgeFedDependsOn, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ForgeFedIsResolved, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Ticket is lesser, with an arbitrary but stable -// determination. -func (this ForgeFedTicket) LessThan(o vocab.ForgeFedTicket) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "assignedTo" - if lhs, rhs := this.ForgeFedAssignedTo, o.GetForgeFedAssignedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "dependants" - if lhs, rhs := this.ForgeFedDependants, o.GetForgeFedDependants(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "dependedBy" - if lhs, rhs := this.ForgeFedDependedBy, o.GetForgeFedDependedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "dependencies" - if lhs, rhs := this.ForgeFedDependencies, o.GetForgeFedDependencies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "dependsOn" - if lhs, rhs := this.ForgeFedDependsOn, o.GetForgeFedDependsOn(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "isResolved" - if lhs, rhs := this.ForgeFedIsResolved, o.GetForgeFedIsResolved(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ForgeFedTicket) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Ticket" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Ticket" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "assignedTo" - if this.ForgeFedAssignedTo != nil { - if i, err := this.ForgeFedAssignedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedAssignedTo.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "dependants" - if this.ForgeFedDependants != nil { - if i, err := this.ForgeFedDependants.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedDependants.Name()] = i - } - } - // Maybe serialize property "dependedBy" - if this.ForgeFedDependedBy != nil { - if i, err := this.ForgeFedDependedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedDependedBy.Name()] = i - } - } - // Maybe serialize property "dependencies" - if this.ForgeFedDependencies != nil { - if i, err := this.ForgeFedDependencies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedDependencies.Name()] = i - } - } - // Maybe serialize property "dependsOn" - if this.ForgeFedDependsOn != nil { - if i, err := this.ForgeFedDependsOn.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedDependsOn.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "isResolved" - if this.ForgeFedIsResolved != nil { - if i, err := this.ForgeFedIsResolved.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedIsResolved.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ForgeFedTicket) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ForgeFedTicket) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ForgeFedTicket) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ForgeFedTicket) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ForgeFedTicket) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ForgeFedTicket) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ForgeFedTicket) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ForgeFedTicket) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ForgeFedTicket) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ForgeFedTicket) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ForgeFedTicket) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ForgeFedTicket) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ForgeFedTicket) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ForgeFedTicket) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ForgeFedTicket) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ForgeFedTicket) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ForgeFedTicket) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ForgeFedTicket) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ForgeFedTicket) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ForgeFedTicket) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ForgeFedTicket) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ForgeFedTicket) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ForgeFedTicket) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ForgeFedTicket) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ForgeFedTicket) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ForgeFedTicket) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ForgeFedTicket) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ForgeFedTicket) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ForgeFedTicket) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ForgeFedTicket) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ForgeFedTicket) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedAssignedTo sets the "assignedTo" property. -func (this *ForgeFedTicket) SetForgeFedAssignedTo(i vocab.ForgeFedAssignedToProperty) { - this.ForgeFedAssignedTo = i -} - -// SetForgeFedDependants sets the "dependants" property. -func (this *ForgeFedTicket) SetForgeFedDependants(i vocab.ForgeFedDependantsProperty) { - this.ForgeFedDependants = i -} - -// SetForgeFedDependedBy sets the "dependedBy" property. -func (this *ForgeFedTicket) SetForgeFedDependedBy(i vocab.ForgeFedDependedByProperty) { - this.ForgeFedDependedBy = i -} - -// SetForgeFedDependencies sets the "dependencies" property. -func (this *ForgeFedTicket) SetForgeFedDependencies(i vocab.ForgeFedDependenciesProperty) { - this.ForgeFedDependencies = i -} - -// SetForgeFedDependsOn sets the "dependsOn" property. -func (this *ForgeFedTicket) SetForgeFedDependsOn(i vocab.ForgeFedDependsOnProperty) { - this.ForgeFedDependsOn = i -} - -// SetForgeFedIsResolved sets the "isResolved" property. -func (this *ForgeFedTicket) SetForgeFedIsResolved(i vocab.ForgeFedIsResolvedProperty) { - this.ForgeFedIsResolved = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ForgeFedTicket) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ForgeFedTicket) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ForgeFedTicket) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ForgeFedTicket) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ForgeFedTicket) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ForgeFedTicket) VocabularyURI() string { - return "https://forgefed.peers.community/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ForgeFedTicket) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency/gen_doc.go deleted file mode 100644 index 90610f71b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeticketdependency contains the implementation for the -// TicketDependency type. All applications are strongly encouraged to use the -// interface instead of this concrete definition. The interfaces allow -// applications to consume only the types and properties needed and be -// independent of the go-fed implementation if another alternative -// implementation is created. This package is code-generated and subject to -// the same license as the go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeticketdependency diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency/gen_pkg.go deleted file mode 100644 index f3f8ba68c..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency/gen_pkg.go +++ /dev/null @@ -1,196 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeticketdependency - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRelationshipPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsRelationshipProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeRelationshipPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationshipProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSubjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSubjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSubjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSubjectProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency/gen_type_forgefed_ticketdependency.go b/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency/gen_type_forgefed_ticketdependency.go deleted file mode 100644 index c6d77c9ed..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency/gen_type_forgefed_ticketdependency.go +++ /dev/null @@ -1,1829 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeticketdependency - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// Represents a relationship between 2 Tickets, in which the resolution of one -// ticket requires the other ticket to be resolved too. It MUST specify the -// subject, object and relationship properties, and the relationship property -// MUST be dependsOn. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://forgefed.peers.community/ns" -// ], -// "attributedTo": "https://example.org/alice", -// "id": "https://example.org/ticket-deps/2342593", -// "object": "https://example.com/bob/coolproj/issues/85", -// "published": "2019-07-11T12:34:56Z", -// "relationship": "dependsOn", -// "subject": "https://example.org/alice/myproj/issues/42", -// "summary": "Alice's ticket depends on Bob's ticket", -// "type": [ -// "Relationship", -// "TicketDependency" -// ] -// } -type ForgeFedTicketDependency struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsRelationship vocab.ActivityStreamsRelationshipProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSubject vocab.ActivityStreamsSubjectProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// DeserializeTicketDependency creates a TicketDependency from a map -// representation that has been unmarshalled from a text or binary format. -func DeserializeTicketDependency(m map[string]interface{}, aliasMap map[string]string) (*ForgeFedTicketDependency, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["https://forgefed.peers.community/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &ForgeFedTicketDependency{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "TicketDependency" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "TicketDependency", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "TicketDependency" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "TicketDependency") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRelationshipPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsRelationship = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSubjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSubject = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "relationship" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "subject" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// ForgeFedTicketDependencyExtends returns true if the TicketDependency type -// extends from the other type. -func ForgeFedTicketDependencyExtends(other vocab.Type) bool { - extensions := []string{"Object", "Relationship"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// IsOrExtendsTicketDependency returns true if the other provided type is the -// TicketDependency type or extends from the TicketDependency type. -func IsOrExtendsTicketDependency(other vocab.Type) bool { - if other.GetTypeName() == "TicketDependency" { - return true - } - return TicketDependencyIsExtendedBy(other) -} - -// NewForgeFedTicketDependency creates a new TicketDependency type -func NewForgeFedTicketDependency() *ForgeFedTicketDependency { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("TicketDependency") - return &ForgeFedTicketDependency{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// TicketDependencyIsDisjointWith returns true if the other provided type is -// disjoint with the TicketDependency type. -func TicketDependencyIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// TicketDependencyIsExtendedBy returns true if the other provided type extends -// from the TicketDependency type. Note that it returns false if the types are -// the same; see the "IsOrExtendsTicketDependency" variant instead. -func TicketDependencyIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsRelationship returns the "relationship" property if it -// exists, and nil otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationshipProperty { - return this.ActivityStreamsRelationship -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSubject returns the "subject" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsSubject() vocab.ActivityStreamsSubjectProperty { - return this.ActivityStreamsSubject -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this ForgeFedTicketDependency) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this ForgeFedTicketDependency) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this ForgeFedTicketDependency) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this ForgeFedTicketDependency) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this ForgeFedTicketDependency) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this ForgeFedTicketDependency) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this ForgeFedTicketDependency) GetTypeName() string { - return "TicketDependency" -} - -// GetUnknownProperties returns the unknown properties for the TicketDependency -// type. Note that this should not be used by app developers. It is only used -// to help determine which implementation is LessThan the other. Developers -// who are creating a different implementation of this type's interface can -// use this method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this ForgeFedTicketDependency) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the TicketDependency type extends from the other -// type. -func (this ForgeFedTicketDependency) IsExtending(other vocab.Type) bool { - return ForgeFedTicketDependencyExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this ForgeFedTicketDependency) JSONLDContext() map[string]string { - m := map[string]string{"https://forgefed.peers.community/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsRelationship, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSubject, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this TicketDependency is lesser, with an arbitrary but -// stable determination. -func (this ForgeFedTicketDependency) LessThan(o vocab.ForgeFedTicketDependency) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "relationship" - if lhs, rhs := this.ActivityStreamsRelationship, o.GetActivityStreamsRelationship(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "subject" - if lhs, rhs := this.ActivityStreamsSubject, o.GetActivityStreamsSubject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this ForgeFedTicketDependency) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "TicketDependency" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "TicketDependency" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "relationship" - if this.ActivityStreamsRelationship != nil { - if i, err := this.ActivityStreamsRelationship.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsRelationship.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "subject" - if this.ActivityStreamsSubject != nil { - if i, err := this.ActivityStreamsSubject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSubject.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsRelationship sets the "relationship" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsRelationship(i vocab.ActivityStreamsRelationshipProperty) { - this.ActivityStreamsRelationship = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSubject sets the "subject" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsSubject(i vocab.ActivityStreamsSubjectProperty) { - this.ActivityStreamsSubject = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *ForgeFedTicketDependency) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *ForgeFedTicketDependency) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *ForgeFedTicketDependency) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *ForgeFedTicketDependency) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *ForgeFedTicketDependency) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *ForgeFedTicketDependency) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this ForgeFedTicketDependency) VocabularyURI() string { - return "https://forgefed.peers.community/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this ForgeFedTicketDependency) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_id/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_id/gen_doc.go deleted file mode 100644 index cbf49e1ed..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_id/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyid contains the implementation for the id property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyid diff --git a/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_id/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_id/gen_pkg.go deleted file mode 100644 index 9ced09401..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_id/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyid - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go b/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go deleted file mode 100644 index 067c42ae6..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_id/gen_property_jsonld_id.go +++ /dev/null @@ -1,179 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyid - -import ( - "fmt" - anyuri "github.com/go-fed/activity/streams/values/anyURI" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// JSONLDIdProperty is the functional property "id". It is permitted to be a -// single nilable value type. -type JSONLDIdProperty struct { - xmlschemaAnyURIMember *url.URL - unknown interface{} - alias string -} - -// DeserializeIdProperty creates a "id" property from an interface representation -// that has been unmarshalled from a text or binary format. -func DeserializeIdProperty(m map[string]interface{}, aliasMap map[string]string) (*JSONLDIdProperty, error) { - alias := "" - - propName := "id" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "id") - } - i, ok := m[propName] - - if ok { - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &JSONLDIdProperty{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } - this := &JSONLDIdProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewJSONLDIdProperty creates a new id property. -func NewJSONLDIdProperty() *JSONLDIdProperty { - return &JSONLDIdProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI -// afterwards will return false. -func (this *JSONLDIdProperty) Clear() { - this.unknown = nil - this.xmlschemaAnyURIMember = nil -} - -// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, -// Get will return any arbitrary value. -func (this JSONLDIdProperty) Get() *url.URL { - return this.xmlschemaAnyURIMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this JSONLDIdProperty) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// HasAny returns true if the value or IRI is set. -func (this JSONLDIdProperty) HasAny() bool { - return this.IsXMLSchemaAnyURI() -} - -// IsIRI returns true if this property is an IRI. -func (this JSONLDIdProperty) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. -func (this JSONLDIdProperty) IsXMLSchemaAnyURI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this JSONLDIdProperty) JSONLDContext() map[string]string { - var m map[string]string - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this JSONLDIdProperty) KindIndex() int { - if this.IsXMLSchemaAnyURI() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this JSONLDIdProperty) LessThan(o vocab.JSONLDIdProperty) bool { - if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaAnyURI() && o.IsXMLSchemaAnyURI() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return anyuri.LessAnyURI(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "id". -func (this JSONLDIdProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "id" - } else { - return "id" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this JSONLDIdProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaAnyURI() { - return anyuri.SerializeAnyURI(this.Get()) - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will -// return true. -func (this *JSONLDIdProperty) Set(v *url.URL) { - this.Clear() - this.xmlschemaAnyURIMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *JSONLDIdProperty) SetIRI(v *url.URL) { - this.Clear() - this.Set(v) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_type/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_type/gen_doc.go deleted file mode 100644 index 64bb97ac5..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_type/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertytype contains the implementation for the type property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertytype diff --git a/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_type/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_type/gen_pkg.go deleted file mode 100644 index 2dd73489a..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_type/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertytype - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go b/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go deleted file mode 100644 index 480d26a88..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/jsonld/property_type/gen_property_jsonld_type.go +++ /dev/null @@ -1,596 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertytype - -import ( - "fmt" - anyuri "github.com/go-fed/activity/streams/values/anyURI" - string1 "github.com/go-fed/activity/streams/values/string" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// JSONLDTypePropertyIterator is an iterator for a property. It is permitted to be -// one of multiple value types. At most, one type of value can be present, or -// none at all. Setting a value will clear the other types of values so that -// only one of the 'Is' methods will return true. It is possible to clear all -// values, so that this property is empty. -type JSONLDTypePropertyIterator struct { - xmlschemaAnyURIMember *url.URL - xmlschemaStringMember string - hasStringMember bool - unknown interface{} - alias string - myIdx int - parent vocab.JSONLDTypeProperty -} - -// NewJSONLDTypePropertyIterator creates a new JSONLDType property. -func NewJSONLDTypePropertyIterator() *JSONLDTypePropertyIterator { - return &JSONLDTypePropertyIterator{alias: ""} -} - -// deserializeJSONLDTypePropertyIterator creates an iterator from an element that -// has been unmarshalled from a text or binary format. -func deserializeJSONLDTypePropertyIterator(i interface{}, aliasMap map[string]string) (*JSONLDTypePropertyIterator, error) { - alias := "" - - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &JSONLDTypePropertyIterator{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } else if v, err := string1.DeserializeString(i); err == nil { - this := &JSONLDTypePropertyIterator{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } - this := &JSONLDTypePropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this JSONLDTypePropertyIterator) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// GetXMLSchemaAnyURI returns the value of this property. When IsXMLSchemaAnyURI -// returns false, GetXMLSchemaAnyURI will return an arbitrary value. -func (this JSONLDTypePropertyIterator) GetXMLSchemaAnyURI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// GetXMLSchemaString returns the value of this property. When IsXMLSchemaString -// returns false, GetXMLSchemaString will return an arbitrary value. -func (this JSONLDTypePropertyIterator) GetXMLSchemaString() string { - return this.xmlschemaStringMember -} - -// HasAny returns true if any of the different values is set. -func (this JSONLDTypePropertyIterator) HasAny() bool { - return this.IsXMLSchemaAnyURI() || - this.IsXMLSchemaString() -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this JSONLDTypePropertyIterator) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property has a type of "anyURI". When -// true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI methods to access -// and set this property. -func (this JSONLDTypePropertyIterator) IsXMLSchemaAnyURI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaString returns true if this property has a type of "string". When -// true, use the GetXMLSchemaString and SetXMLSchemaString methods to access -// and set this property. -func (this JSONLDTypePropertyIterator) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this JSONLDTypePropertyIterator) JSONLDContext() map[string]string { - var m map[string]string - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this JSONLDTypePropertyIterator) KindIndex() int { - if this.IsXMLSchemaAnyURI() { - return 0 - } - if this.IsXMLSchemaString() { - return 1 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this JSONLDTypePropertyIterator) LessThan(o vocab.JSONLDTypePropertyIterator) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsXMLSchemaAnyURI() { - return anyuri.LessAnyURI(this.GetXMLSchemaAnyURI(), o.GetXMLSchemaAnyURI()) - } else if this.IsXMLSchemaString() { - return string1.LessString(this.GetXMLSchemaString(), o.GetXMLSchemaString()) - } - return false -} - -// Name returns the name of this property: "JSONLDType". -func (this JSONLDTypePropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "JSONLDType" - } else { - return "JSONLDType" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this JSONLDTypePropertyIterator) Next() vocab.JSONLDTypePropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this JSONLDTypePropertyIterator) Prev() vocab.JSONLDTypePropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *JSONLDTypePropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.SetXMLSchemaAnyURI(v) -} - -// SetXMLSchemaAnyURI sets the value of this property. Calling IsXMLSchemaAnyURI -// afterwards returns true. -func (this *JSONLDTypePropertyIterator) SetXMLSchemaAnyURI(v *url.URL) { - this.clear() - this.xmlschemaAnyURIMember = v -} - -// SetXMLSchemaString sets the value of this property. Calling IsXMLSchemaString -// afterwards returns true. -func (this *JSONLDTypePropertyIterator) SetXMLSchemaString(v string) { - this.clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *JSONLDTypePropertyIterator) clear() { - this.xmlschemaAnyURIMember = nil - this.hasStringMember = false - this.unknown = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this JSONLDTypePropertyIterator) serialize() (interface{}, error) { - if this.IsXMLSchemaAnyURI() { - return anyuri.SerializeAnyURI(this.GetXMLSchemaAnyURI()) - } else if this.IsXMLSchemaString() { - return string1.SerializeString(this.GetXMLSchemaString()) - } - return this.unknown, nil -} - -// JSONLDTypeProperty is the non-functional property "type". It is permitted to -// have one or more values, and of different value types. -type JSONLDTypeProperty struct { - properties []*JSONLDTypePropertyIterator - alias string -} - -// DeserializeTypeProperty creates a "type" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeTypeProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.JSONLDTypeProperty, error) { - alias := "" - - propName := "type" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "type") - } - i, ok := m[propName] - - if ok { - this := &JSONLDTypeProperty{ - alias: alias, - properties: []*JSONLDTypePropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeJSONLDTypePropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeJSONLDTypePropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewJSONLDTypeProperty creates a new type property. -func NewJSONLDTypeProperty() *JSONLDTypeProperty { - return &JSONLDTypeProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property "type" -func (this *JSONLDTypeProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &JSONLDTypePropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - xmlschemaAnyURIMember: v, - }) -} - -// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the -// property "type". Invalidates iterators that are traversing using Prev. -func (this *JSONLDTypeProperty) AppendXMLSchemaAnyURI(v *url.URL) { - this.properties = append(this.properties, &JSONLDTypePropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - xmlschemaAnyURIMember: v, - }) -} - -// AppendXMLSchemaString appends a string value to the back of a list of the -// property "type". Invalidates iterators that are traversing using Prev. -func (this *JSONLDTypeProperty) AppendXMLSchemaString(v string) { - this.properties = append(this.properties, &JSONLDTypePropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: this.Len(), - parent: this, - xmlschemaStringMember: v, - }) -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this JSONLDTypeProperty) At(index int) vocab.JSONLDTypePropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this JSONLDTypeProperty) Begin() vocab.JSONLDTypePropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this JSONLDTypeProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this JSONLDTypeProperty) End() vocab.JSONLDTypePropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property "type". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *JSONLDTypeProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &JSONLDTypePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a -// property "type". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *JSONLDTypeProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &JSONLDTypePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// InsertXMLSchemaString inserts a string value at the specified index for a -// property "type". Existing elements at that index and higher are shifted -// back once. Invalidates all iterators. -func (this *JSONLDTypeProperty) InsertXMLSchemaString(idx int, v string) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &JSONLDTypePropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this JSONLDTypeProperty) JSONLDContext() map[string]string { - var m map[string]string - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this JSONLDTypeProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "type" property. -func (this JSONLDTypeProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this JSONLDTypeProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].GetXMLSchemaAnyURI() - rhs := this.properties[j].GetXMLSchemaAnyURI() - return anyuri.LessAnyURI(lhs, rhs) - } else if idx1 == 1 { - lhs := this.properties[i].GetXMLSchemaString() - rhs := this.properties[j].GetXMLSchemaString() - return string1.LessString(lhs, rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this JSONLDTypeProperty) LessThan(o vocab.JSONLDTypeProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("type") with any alias. -func (this JSONLDTypeProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "type" - } else { - return "type" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property "type". -func (this *JSONLDTypeProperty) PrependIRI(v *url.URL) { - this.properties = append([]*JSONLDTypePropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - xmlschemaAnyURIMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the -// property "type". Invalidates all iterators. -func (this *JSONLDTypeProperty) PrependXMLSchemaAnyURI(v *url.URL) { - this.properties = append([]*JSONLDTypePropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - xmlschemaAnyURIMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependXMLSchemaString prepends a string value to the front of a list of the -// property "type". Invalidates all iterators. -func (this *JSONLDTypeProperty) PrependXMLSchemaString(v string) { - this.properties = append([]*JSONLDTypePropertyIterator{{ - alias: this.alias, - hasStringMember: true, - myIdx: 0, - parent: this, - xmlschemaStringMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Remove deletes an element at the specified index from a list of the property -// "type", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *JSONLDTypeProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &JSONLDTypePropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this JSONLDTypeProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// SetIRI sets an IRI value to be at the specified index for the property "type". -// Panics if the index is out of bounds. -func (this *JSONLDTypeProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &JSONLDTypePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// SetXMLSchemaAnyURI sets a anyURI value to be at the specified index for the -// property "type". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *JSONLDTypeProperty) SetXMLSchemaAnyURI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &JSONLDTypePropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - xmlschemaAnyURIMember: v, - } -} - -// SetXMLSchemaString sets a string value to be at the specified index for the -// property "type". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *JSONLDTypeProperty) SetXMLSchemaString(idx int, v string) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &JSONLDTypePropertyIterator{ - alias: this.alias, - hasStringMember: true, - myIdx: idx, - parent: this, - xmlschemaStringMember: v, - } -} - -// Swap swaps the location of values at two indices for the "type" property. -func (this JSONLDTypeProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_doc.go deleted file mode 100644 index bb9d0432c..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyblurhash contains the implementation for the blurhash property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyblurhash diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_pkg.go deleted file mode 100644 index 1eac1c4e8..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyblurhash - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go deleted file mode 100644 index 58293a889..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_blurhash/gen_property_toot_blurhash.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyblurhash - -import ( - "fmt" - string1 "github.com/go-fed/activity/streams/values/string" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// TootBlurhashProperty is the functional property "blurhash". It is permitted to -// be a single default-valued value type. -type TootBlurhashProperty struct { - xmlschemaStringMember string - hasStringMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeBlurhashProperty creates a "blurhash" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeBlurhashProperty(m map[string]interface{}, aliasMap map[string]string) (*TootBlurhashProperty, error) { - alias := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - } - propName := "blurhash" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "blurhash") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &TootBlurhashProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &TootBlurhashProperty{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } - this := &TootBlurhashProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewTootBlurhashProperty creates a new blurhash property. -func NewTootBlurhashProperty() *TootBlurhashProperty { - return &TootBlurhashProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaString -// afterwards will return false. -func (this *TootBlurhashProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasStringMember = false -} - -// Get returns the value of this property. When IsXMLSchemaString returns false, -// Get will return any arbitrary value. -func (this TootBlurhashProperty) Get() string { - return this.xmlschemaStringMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this TootBlurhashProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this TootBlurhashProperty) HasAny() bool { - return this.IsXMLSchemaString() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this TootBlurhashProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaString returns true if this property is set and not an IRI. -func (this TootBlurhashProperty) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this TootBlurhashProperty) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this TootBlurhashProperty) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this TootBlurhashProperty) LessThan(o vocab.TootBlurhashProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return string1.LessString(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "blurhash". -func (this TootBlurhashProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "blurhash" - } else { - return "blurhash" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this TootBlurhashProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaString afterwards will -// return true. -func (this *TootBlurhashProperty) Set(v string) { - this.Clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *TootBlurhashProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_doc.go deleted file mode 100644 index 768104ece..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertydiscoverable contains the implementation for the discoverable -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertydiscoverable diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_pkg.go deleted file mode 100644 index bb9361723..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydiscoverable - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go deleted file mode 100644 index da66e6e21..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_discoverable/gen_property_toot_discoverable.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertydiscoverable - -import ( - "fmt" - boolean "github.com/go-fed/activity/streams/values/boolean" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// TootDiscoverableProperty is the functional property "discoverable". It is -// permitted to be a single default-valued value type. -type TootDiscoverableProperty struct { - xmlschemaBooleanMember bool - hasBooleanMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeDiscoverableProperty creates a "discoverable" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeDiscoverableProperty(m map[string]interface{}, aliasMap map[string]string) (*TootDiscoverableProperty, error) { - alias := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - } - propName := "discoverable" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "discoverable") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &TootDiscoverableProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := boolean.DeserializeBoolean(i); err == nil { - this := &TootDiscoverableProperty{ - alias: alias, - hasBooleanMember: true, - xmlschemaBooleanMember: v, - } - return this, nil - } - this := &TootDiscoverableProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewTootDiscoverableProperty creates a new discoverable property. -func NewTootDiscoverableProperty() *TootDiscoverableProperty { - return &TootDiscoverableProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaBoolean -// afterwards will return false. -func (this *TootDiscoverableProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasBooleanMember = false -} - -// Get returns the value of this property. When IsXMLSchemaBoolean returns false, -// Get will return any arbitrary value. -func (this TootDiscoverableProperty) Get() bool { - return this.xmlschemaBooleanMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this TootDiscoverableProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this TootDiscoverableProperty) HasAny() bool { - return this.IsXMLSchemaBoolean() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this TootDiscoverableProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaBoolean returns true if this property is set and not an IRI. -func (this TootDiscoverableProperty) IsXMLSchemaBoolean() bool { - return this.hasBooleanMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this TootDiscoverableProperty) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this TootDiscoverableProperty) KindIndex() int { - if this.IsXMLSchemaBoolean() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this TootDiscoverableProperty) LessThan(o vocab.TootDiscoverableProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaBoolean() && o.IsXMLSchemaBoolean() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return boolean.LessBoolean(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "discoverable". -func (this TootDiscoverableProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "discoverable" - } else { - return "discoverable" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this TootDiscoverableProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaBoolean() { - return boolean.SerializeBoolean(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaBoolean afterwards will -// return true. -func (this *TootDiscoverableProperty) Set(v bool) { - this.Clear() - this.xmlschemaBooleanMember = v - this.hasBooleanMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *TootDiscoverableProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_doc.go deleted file mode 100644 index a1465f0c9..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyfeatured contains the implementation for the featured property. -// All applications are strongly encouraged to use the interface instead of -// this concrete definition. The interfaces allow applications to consume only -// the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyfeatured diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_pkg.go deleted file mode 100644 index 3cfcaa446..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_pkg.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfeatured - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeOrderedCollectionActivityStreams returns the deserialization - // method for the "ActivityStreamsOrderedCollection" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) - // DeserializeOrderedCollectionPageActivityStreams returns the - // deserialization method for the - // "ActivityStreamsOrderedCollectionPage" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go deleted file mode 100644 index dd1ea6011..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_featured/gen_property_toot_featured.go +++ /dev/null @@ -1,268 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyfeatured - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// TootFeaturedProperty is the functional property "featured". It is permitted to -// be one of multiple value types. At most, one type of value can be present, -// or none at all. Setting a value will clear the other types of values so -// that only one of the 'Is' methods will return true. It is possible to clear -// all values, so that this property is empty. -type TootFeaturedProperty struct { - activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection - activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeFeaturedProperty creates a "featured" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeFeaturedProperty(m map[string]interface{}, aliasMap map[string]string) (*TootFeaturedProperty, error) { - alias := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - } - propName := "featured" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "featured") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &TootFeaturedProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil { - this := &TootFeaturedProperty{ - activitystreamsOrderedCollectionMember: v, - alias: alias, - } - return this, nil - } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil { - this := &TootFeaturedProperty{ - activitystreamsOrderedCollectionPageMember: v, - alias: alias, - } - return this, nil - } - } - this := &TootFeaturedProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewTootFeaturedProperty creates a new featured property. -func NewTootFeaturedProperty() *TootFeaturedProperty { - return &TootFeaturedProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling HasAny or any of the -// 'Is' methods afterwards will return false. -func (this *TootFeaturedProperty) Clear() { - this.activitystreamsOrderedCollectionMember = nil - this.activitystreamsOrderedCollectionPageMember = nil - this.unknown = nil - this.iri = nil -} - -// GetActivityStreamsOrderedCollection returns the value of this property. When -// IsActivityStreamsOrderedCollection returns false, -// GetActivityStreamsOrderedCollection will return an arbitrary value. -func (this TootFeaturedProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection { - return this.activitystreamsOrderedCollectionMember -} - -// GetActivityStreamsOrderedCollectionPage returns the value of this property. -// When IsActivityStreamsOrderedCollectionPage returns false, -// GetActivityStreamsOrderedCollectionPage will return an arbitrary value. -func (this TootFeaturedProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage { - return this.activitystreamsOrderedCollectionPageMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return an arbitrary value. -func (this TootFeaturedProperty) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this TootFeaturedProperty) GetType() vocab.Type { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection() - } - if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage() - } - - return nil -} - -// HasAny returns true if any of the different values is set. -func (this TootFeaturedProperty) HasAny() bool { - return this.IsActivityStreamsOrderedCollection() || - this.IsActivityStreamsOrderedCollectionPage() || - this.iri != nil -} - -// IsActivityStreamsOrderedCollection returns true if this property has a type of -// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection -// and SetActivityStreamsOrderedCollection methods to access and set this -// property. -func (this TootFeaturedProperty) IsActivityStreamsOrderedCollection() bool { - return this.activitystreamsOrderedCollectionMember != nil -} - -// IsActivityStreamsOrderedCollectionPage returns true if this property has a type -// of "OrderedCollectionPage". When true, use the -// GetActivityStreamsOrderedCollectionPage and -// SetActivityStreamsOrderedCollectionPage methods to access and set this -// property. -func (this TootFeaturedProperty) IsActivityStreamsOrderedCollectionPage() bool { - return this.activitystreamsOrderedCollectionPageMember != nil -} - -// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI -// to access and set this property -func (this TootFeaturedProperty) IsIRI() bool { - return this.iri != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this TootFeaturedProperty) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - var child map[string]string - if this.IsActivityStreamsOrderedCollection() { - child = this.GetActivityStreamsOrderedCollection().JSONLDContext() - } else if this.IsActivityStreamsOrderedCollectionPage() { - child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this TootFeaturedProperty) KindIndex() int { - if this.IsActivityStreamsOrderedCollection() { - return 0 - } - if this.IsActivityStreamsOrderedCollectionPage() { - return 1 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this TootFeaturedProperty) LessThan(o vocab.TootFeaturedProperty) bool { - idx1 := this.KindIndex() - idx2 := o.KindIndex() - if idx1 < idx2 { - return true - } else if idx1 > idx2 { - return false - } else if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection()) - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage()) - } else if this.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } - return false -} - -// Name returns the name of this property: "featured". -func (this TootFeaturedProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "featured" - } else { - return "featured" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this TootFeaturedProperty) Serialize() (interface{}, error) { - if this.IsActivityStreamsOrderedCollection() { - return this.GetActivityStreamsOrderedCollection().Serialize() - } else if this.IsActivityStreamsOrderedCollectionPage() { - return this.GetActivityStreamsOrderedCollectionPage().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// SetActivityStreamsOrderedCollection sets the value of this property. Calling -// IsActivityStreamsOrderedCollection afterwards returns true. -func (this *TootFeaturedProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) { - this.Clear() - this.activitystreamsOrderedCollectionMember = v -} - -// SetActivityStreamsOrderedCollectionPage sets the value of this property. -// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true. -func (this *TootFeaturedProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) { - this.Clear() - this.activitystreamsOrderedCollectionPageMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards returns true. -func (this *TootFeaturedProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *TootFeaturedProperty) SetType(t vocab.Type) error { - if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok { - this.SetActivityStreamsOrderedCollection(v) - return nil - } - if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok { - this.SetActivityStreamsOrderedCollectionPage(v) - return nil - } - - return fmt.Errorf("illegal type to set on featured property: %T", t) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go deleted file mode 100644 index d2293a47e..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertysignaturealgorithm contains the implementation for the -// signatureAlgorithm property. All applications are strongly encouraged to -// use the interface instead of this concrete definition. The interfaces allow -// applications to consume only the types and properties needed and be -// independent of the go-fed implementation if another alternative -// implementation is created. This package is code-generated and subject to -// the same license as the go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertysignaturealgorithm diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go deleted file mode 100644 index 2ed0e281b..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysignaturealgorithm - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go deleted file mode 100644 index cf01533f0..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm/gen_property_toot_signatureAlgorithm.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysignaturealgorithm - -import ( - "fmt" - string1 "github.com/go-fed/activity/streams/values/string" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// TootSignatureAlgorithmProperty is the functional property "signatureAlgorithm". -// It is permitted to be a single default-valued value type. -type TootSignatureAlgorithmProperty struct { - xmlschemaStringMember string - hasStringMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeSignatureAlgorithmProperty creates a "signatureAlgorithm" property -// from an interface representation that has been unmarshalled from a text or -// binary format. -func DeserializeSignatureAlgorithmProperty(m map[string]interface{}, aliasMap map[string]string) (*TootSignatureAlgorithmProperty, error) { - alias := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - } - propName := "signatureAlgorithm" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "signatureAlgorithm") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &TootSignatureAlgorithmProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &TootSignatureAlgorithmProperty{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } - this := &TootSignatureAlgorithmProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewTootSignatureAlgorithmProperty creates a new signatureAlgorithm property. -func NewTootSignatureAlgorithmProperty() *TootSignatureAlgorithmProperty { - return &TootSignatureAlgorithmProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaString -// afterwards will return false. -func (this *TootSignatureAlgorithmProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasStringMember = false -} - -// Get returns the value of this property. When IsXMLSchemaString returns false, -// Get will return any arbitrary value. -func (this TootSignatureAlgorithmProperty) Get() string { - return this.xmlschemaStringMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this TootSignatureAlgorithmProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this TootSignatureAlgorithmProperty) HasAny() bool { - return this.IsXMLSchemaString() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this TootSignatureAlgorithmProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaString returns true if this property is set and not an IRI. -func (this TootSignatureAlgorithmProperty) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this TootSignatureAlgorithmProperty) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this TootSignatureAlgorithmProperty) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this TootSignatureAlgorithmProperty) LessThan(o vocab.TootSignatureAlgorithmProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return string1.LessString(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "signatureAlgorithm". -func (this TootSignatureAlgorithmProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "signatureAlgorithm" - } else { - return "signatureAlgorithm" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this TootSignatureAlgorithmProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaString afterwards will -// return true. -func (this *TootSignatureAlgorithmProperty) Set(v string) { - this.Clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *TootSignatureAlgorithmProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_doc.go deleted file mode 100644 index 668c4e8f3..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertysignaturevalue contains the implementation for the -// signatureValue property. All applications are strongly encouraged to use -// the interface instead of this concrete definition. The interfaces allow -// applications to consume only the types and properties needed and be -// independent of the go-fed implementation if another alternative -// implementation is created. This package is code-generated and subject to -// the same license as the go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertysignaturevalue diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go deleted file mode 100644 index 540b6f1aa..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysignaturevalue - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go deleted file mode 100644 index 5810d60d0..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_signaturevalue/gen_property_toot_signatureValue.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertysignaturevalue - -import ( - "fmt" - string1 "github.com/go-fed/activity/streams/values/string" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// TootSignatureValueProperty is the functional property "signatureValue". It is -// permitted to be a single default-valued value type. -type TootSignatureValueProperty struct { - xmlschemaStringMember string - hasStringMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeSignatureValueProperty creates a "signatureValue" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeSignatureValueProperty(m map[string]interface{}, aliasMap map[string]string) (*TootSignatureValueProperty, error) { - alias := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - } - propName := "signatureValue" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "signatureValue") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &TootSignatureValueProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &TootSignatureValueProperty{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } - this := &TootSignatureValueProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewTootSignatureValueProperty creates a new signatureValue property. -func NewTootSignatureValueProperty() *TootSignatureValueProperty { - return &TootSignatureValueProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaString -// afterwards will return false. -func (this *TootSignatureValueProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasStringMember = false -} - -// Get returns the value of this property. When IsXMLSchemaString returns false, -// Get will return any arbitrary value. -func (this TootSignatureValueProperty) Get() string { - return this.xmlschemaStringMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this TootSignatureValueProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this TootSignatureValueProperty) HasAny() bool { - return this.IsXMLSchemaString() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this TootSignatureValueProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaString returns true if this property is set and not an IRI. -func (this TootSignatureValueProperty) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this TootSignatureValueProperty) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this TootSignatureValueProperty) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this TootSignatureValueProperty) LessThan(o vocab.TootSignatureValueProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return string1.LessString(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "signatureValue". -func (this TootSignatureValueProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "signatureValue" - } else { - return "signatureValue" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this TootSignatureValueProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaString afterwards will -// return true. -func (this *TootSignatureValueProperty) Set(v string) { - this.Clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *TootSignatureValueProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_doc.go deleted file mode 100644 index e2d1296b2..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyvoterscount contains the implementation for the votersCount -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyvoterscount diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_pkg.go deleted file mode 100644 index 668695c06..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyvoterscount - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go b/vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go deleted file mode 100644 index 01d2ddfaa..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/property_voterscount/gen_property_toot_votersCount.go +++ /dev/null @@ -1,205 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyvoterscount - -import ( - "fmt" - nonnegativeinteger "github.com/go-fed/activity/streams/values/nonNegativeInteger" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// TootVotersCountProperty is the functional property "votersCount". It is -// permitted to be a single default-valued value type. -type TootVotersCountProperty struct { - xmlschemaNonNegativeIntegerMember int - hasNonNegativeIntegerMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializeVotersCountProperty creates a "votersCount" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeVotersCountProperty(m map[string]interface{}, aliasMap map[string]string) (*TootVotersCountProperty, error) { - alias := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - } - propName := "votersCount" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "votersCount") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &TootVotersCountProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err == nil { - this := &TootVotersCountProperty{ - alias: alias, - hasNonNegativeIntegerMember: true, - xmlschemaNonNegativeIntegerMember: v, - } - return this, nil - } - this := &TootVotersCountProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewTootVotersCountProperty creates a new votersCount property. -func NewTootVotersCountProperty() *TootVotersCountProperty { - return &TootVotersCountProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling -// IsXMLSchemaNonNegativeInteger afterwards will return false. -func (this *TootVotersCountProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasNonNegativeIntegerMember = false -} - -// Get returns the value of this property. When IsXMLSchemaNonNegativeInteger -// returns false, Get will return any arbitrary value. -func (this TootVotersCountProperty) Get() int { - return this.xmlschemaNonNegativeIntegerMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this TootVotersCountProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this TootVotersCountProperty) HasAny() bool { - return this.IsXMLSchemaNonNegativeInteger() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this TootVotersCountProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaNonNegativeInteger returns true if this property is set and not an -// IRI. -func (this TootVotersCountProperty) IsXMLSchemaNonNegativeInteger() bool { - return this.hasNonNegativeIntegerMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this TootVotersCountProperty) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this TootVotersCountProperty) KindIndex() int { - if this.IsXMLSchemaNonNegativeInteger() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this TootVotersCountProperty) LessThan(o vocab.TootVotersCountProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaNonNegativeInteger() && o.IsXMLSchemaNonNegativeInteger() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return nonnegativeinteger.LessNonNegativeInteger(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "votersCount". -func (this TootVotersCountProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "votersCount" - } else { - return "votersCount" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this TootVotersCountProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaNonNegativeInteger() { - return nonnegativeinteger.SerializeNonNegativeInteger(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaNonNegativeInteger -// afterwards will return true. -func (this *TootVotersCountProperty) Set(v int) { - this.Clear() - this.xmlschemaNonNegativeIntegerMember = v - this.hasNonNegativeIntegerMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *TootVotersCountProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_doc.go deleted file mode 100644 index 1fadb2fe0..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeemoji contains the implementation for the Emoji type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeemoji diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_pkg.go deleted file mode 100644 index 560ec45e3..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_pkg.go +++ /dev/null @@ -1,187 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeemoji - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go b/vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go deleted file mode 100644 index c24b9fa5d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/type_emoji/gen_type_toot_emoji.go +++ /dev/null @@ -1,1740 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeemoji - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// -// -// { -// "content": "Hello world :Kappa:", -// "id": "https://example.com/@alice/hello-world", -// "tag": [ -// { -// "icon": { -// "mediaType": "image/png", -// "type": "Image", -// "url": "https://example.com/files/kappa.png" -// }, -// "id": "https://example.com/emoji/123", -// "name": ":Kappa:", -// "type": "Emoji" -// } -// ], -// "type": "Note" -// } -type TootEmoji struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// DeserializeEmoji creates a Emoji from a map representation that has been -// unmarshalled from a text or binary format. -func DeserializeEmoji(m map[string]interface{}, aliasMap map[string]string) (*TootEmoji, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &TootEmoji{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "Emoji" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Emoji", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Emoji" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Emoji") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// EmojiIsDisjointWith returns true if the other provided type is disjoint with -// the Emoji type. -func EmojiIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// EmojiIsExtendedBy returns true if the other provided type extends from the -// Emoji type. Note that it returns false if the types are the same; see the -// "IsOrExtendsEmoji" variant instead. -func EmojiIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// IsOrExtendsEmoji returns true if the other provided type is the Emoji type or -// extends from the Emoji type. -func IsOrExtendsEmoji(other vocab.Type) bool { - if other.GetTypeName() == "Emoji" { - return true - } - return EmojiIsExtendedBy(other) -} - -// NewTootEmoji creates a new Emoji type -func NewTootEmoji() *TootEmoji { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("Emoji") - return &TootEmoji{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// TootEmojiExtends returns true if the Emoji type extends from the other type. -func TootEmojiExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this TootEmoji) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this TootEmoji) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this TootEmoji) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this TootEmoji) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this TootEmoji) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this TootEmoji) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this TootEmoji) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this TootEmoji) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this TootEmoji) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this TootEmoji) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this TootEmoji) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTypeName returns the name of this type. -func (this TootEmoji) GetTypeName() string { - return "Emoji" -} - -// GetUnknownProperties returns the unknown properties for the Emoji type. Note -// that this should not be used by app developers. It is only used to help -// determine which implementation is LessThan the other. Developers who are -// creating a different implementation of this type's interface can use this -// method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this TootEmoji) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the Emoji type extends from the other type. -func (this TootEmoji) IsExtending(other vocab.Type) bool { - return TootEmojiExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this TootEmoji) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this Emoji is lesser, with an arbitrary but stable -// determination. -func (this TootEmoji) LessThan(o vocab.TootEmoji) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this TootEmoji) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "Emoji" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "Emoji" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *TootEmoji) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *TootEmoji) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *TootEmoji) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *TootEmoji) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *TootEmoji) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *TootEmoji) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *TootEmoji) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *TootEmoji) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *TootEmoji) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *TootEmoji) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *TootEmoji) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *TootEmoji) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *TootEmoji) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *TootEmoji) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *TootEmoji) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *TootEmoji) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *TootEmoji) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *TootEmoji) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *TootEmoji) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *TootEmoji) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *TootEmoji) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *TootEmoji) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *TootEmoji) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *TootEmoji) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *TootEmoji) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *TootEmoji) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *TootEmoji) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *TootEmoji) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *TootEmoji) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *TootEmoji) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *TootEmoji) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *TootEmoji) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *TootEmoji) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *TootEmoji) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *TootEmoji) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *TootEmoji) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this TootEmoji) VocabularyURI() string { - return "http://joinmastodon.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this TootEmoji) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_doc.go deleted file mode 100644 index a785de594..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typeidentityproof contains the implementation for the IdentityProof -// type. All applications are strongly encouraged to use the interface instead -// of this concrete definition. The interfaces allow applications to consume -// only the types and properties needed and be independent of the go-fed -// implementation if another alternative implementation is created. This -// package is code-generated and subject to the same license as the go-fed -// tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typeidentityproof diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_pkg.go deleted file mode 100644 index 5e72ca466..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_pkg.go +++ /dev/null @@ -1,195 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeidentityproof - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeAltitudePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAltitudeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) - // DeserializeAttachmentPropertyActivityStreams returns the - // deserialization method for the "ActivityStreamsAttachmentProperty" - // non-functional property in the vocabulary "ActivityStreams" - DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) - // DeserializeAttributedToPropertyActivityStreams returns the - // deserialization method for the - // "ActivityStreamsAttributedToProperty" non-functional property in - // the vocabulary "ActivityStreams" - DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) - // DeserializeAudiencePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsAudienceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) - // DeserializeBccPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBccProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) - // DeserializeBtoPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsBtoProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) - // DeserializeCcPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsCcProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) - // DeserializeContentPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContentProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) - // DeserializeContextPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsContextProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) - // DeserializeDurationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsDurationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) - // DeserializeEndTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsEndTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) - // DeserializeGeneratorPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsGeneratorProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) - // DeserializeIconPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsIconProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeImagePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsImageProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) - // DeserializeInReplyToPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsInReplyToProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) - // DeserializeLikesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLikesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) - // DeserializeLocationPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsLocationProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) - // DeserializeMediaTypePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsMediaTypeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) - // DeserializeNamePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsNameProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) - // DeserializeObjectPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsObjectProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) - // DeserializePreviewPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPreviewProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) - // DeserializePublishedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsPublishedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) - // DeserializeRepliesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsRepliesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) - // DeserializeSharesPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSharesProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) - // DeserializeSignatureAlgorithmPropertyToot returns the deserialization - // method for the "TootSignatureAlgorithmProperty" non-functional - // property in the vocabulary "Toot" - DeserializeSignatureAlgorithmPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootSignatureAlgorithmProperty, error) - // DeserializeSignatureValuePropertyToot returns the deserialization - // method for the "TootSignatureValueProperty" non-functional property - // in the vocabulary "Toot" - DeserializeSignatureValuePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootSignatureValueProperty, error) - // DeserializeSourcePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSourceProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) - // DeserializeStartTimePropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsStartTimeProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) - // DeserializeSummaryPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsSummaryProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) - // DeserializeTagPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsTagProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) - // DeserializeTeamPropertyForgeFed returns the deserialization method for - // the "ForgeFedTeamProperty" non-functional property in the - // vocabulary "ForgeFed" - DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) - // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization - // method for the "ForgeFedTicketsTrackedByProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) - // DeserializeToPropertyActivityStreams returns the deserialization method - // for the "ActivityStreamsToProperty" non-functional property in the - // vocabulary "ActivityStreams" - DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) - // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization - // method for the "ForgeFedTracksTicketsForProperty" non-functional - // property in the vocabulary "ForgeFed" - DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) - // DeserializeTypePropertyJSONLD returns the deserialization method for - // the "JSONLDTypeProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) - // DeserializeUpdatedPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUpdatedProperty" non-functional - // property in the vocabulary "ActivityStreams" - DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) - // DeserializeUrlPropertyActivityStreams returns the deserialization - // method for the "ActivityStreamsUrlProperty" non-functional property - // in the vocabulary "ActivityStreams" - DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go b/vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go deleted file mode 100644 index 01e9d95ab..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/toot/type_identityproof/gen_type_toot_identityproof.go +++ /dev/null @@ -1,1809 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typeidentityproof - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "strings" -) - -// -// -// null -type TootIdentityProof struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - TootSignatureAlgorithm vocab.TootSignatureAlgorithmProperty - TootSignatureValue vocab.TootSignatureValueProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} -} - -// DeserializeIdentityProof creates a IdentityProof from a map representation that -// has been unmarshalled from a text or binary format. -func DeserializeIdentityProof(m map[string]interface{}, aliasMap map[string]string) (*TootIdentityProof, error) { - alias := "" - aliasPrefix := "" - if a, ok := aliasMap["http://joinmastodon.org/ns"]; ok { - alias = a - aliasPrefix = a + ":" - } - this := &TootIdentityProof{ - alias: alias, - unknown: make(map[string]interface{}), - } - if typeValue, ok := m["type"]; !ok { - return nil, fmt.Errorf("no \"type\" property in map") - } else if typeString, ok := typeValue.(string); ok { - typeName := strings.TrimPrefix(typeString, aliasPrefix) - if typeName != "IdentityProof" { - return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "IdentityProof", typeName) - } - // Fall through, success in finding a proper Type - } else if arrType, ok := typeValue.([]interface{}); ok { - found := false - for _, elemVal := range arrType { - if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "IdentityProof" { - found = true - break - } - } - if !found { - return nil, fmt.Errorf("could not find a \"type\" property of value %q", "IdentityProof") - } - // Fall through, success in finding a proper Type - } else { - return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) - } - // Begin: Known property deserialization - if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAltitude = p - } - if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttachment = p - } - if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAttributedTo = p - } - if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsAudience = p - } - if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBcc = p - } - if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsBto = p - } - if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsCc = p - } - if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContent = p - } - if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsContext = p - } - if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsDuration = p - } - if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsEndTime = p - } - if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsGenerator = p - } - if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsIcon = p - } - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsImage = p - } - if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsInReplyTo = p - } - if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLikes = p - } - if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsLocation = p - } - if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsMediaType = p - } - if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsName = p - } - if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsObject = p - } - if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPreview = p - } - if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsPublished = p - } - if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsReplies = p - } - if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsShares = p - } - if p, err := mgr.DeserializeSignatureAlgorithmPropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootSignatureAlgorithm = p - } - if p, err := mgr.DeserializeSignatureValuePropertyToot()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.TootSignatureValue = p - } - if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSource = p - } - if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsStartTime = p - } - if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsSummary = p - } - if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTag = p - } - if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTeam = p - } - if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTicketsTrackedBy = p - } - if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsTo = p - } - if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ForgeFedTracksTicketsFor = p - } - if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDType = p - } - if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUpdated = p - } - if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.ActivityStreamsUrl = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "altitude" { - continue - } else if k == "attachment" { - continue - } else if k == "attributedTo" { - continue - } else if k == "audience" { - continue - } else if k == "bcc" { - continue - } else if k == "bto" { - continue - } else if k == "cc" { - continue - } else if k == "content" { - continue - } else if k == "contentMap" { - continue - } else if k == "context" { - continue - } else if k == "duration" { - continue - } else if k == "endTime" { - continue - } else if k == "generator" { - continue - } else if k == "icon" { - continue - } else if k == "id" { - continue - } else if k == "image" { - continue - } else if k == "inReplyTo" { - continue - } else if k == "likes" { - continue - } else if k == "location" { - continue - } else if k == "mediaType" { - continue - } else if k == "name" { - continue - } else if k == "nameMap" { - continue - } else if k == "object" { - continue - } else if k == "preview" { - continue - } else if k == "published" { - continue - } else if k == "replies" { - continue - } else if k == "shares" { - continue - } else if k == "signatureAlgorithm" { - continue - } else if k == "signatureValue" { - continue - } else if k == "source" { - continue - } else if k == "startTime" { - continue - } else if k == "summary" { - continue - } else if k == "summaryMap" { - continue - } else if k == "tag" { - continue - } else if k == "team" { - continue - } else if k == "ticketsTrackedBy" { - continue - } else if k == "to" { - continue - } else if k == "tracksTicketsFor" { - continue - } else if k == "type" { - continue - } else if k == "updated" { - continue - } else if k == "url" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IdentityProofIsDisjointWith returns true if the other provided type is disjoint -// with the IdentityProof type. -func IdentityProofIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Link", "Mention"} - for _, disjoint := range disjointWith { - if disjoint == other.GetTypeName() { - return true - } - } - return false -} - -// IdentityProofIsExtendedBy returns true if the other provided type extends from -// the IdentityProof type. Note that it returns false if the types are the -// same; see the "IsOrExtendsIdentityProof" variant instead. -func IdentityProofIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// IsOrExtendsIdentityProof returns true if the other provided type is the -// IdentityProof type or extends from the IdentityProof type. -func IsOrExtendsIdentityProof(other vocab.Type) bool { - if other.GetTypeName() == "IdentityProof" { - return true - } - return IdentityProofIsExtendedBy(other) -} - -// NewTootIdentityProof creates a new IdentityProof type -func NewTootIdentityProof() *TootIdentityProof { - typeProp := typePropertyConstructor() - typeProp.AppendXMLSchemaString("IdentityProof") - return &TootIdentityProof{ - JSONLDType: typeProp, - alias: "", - unknown: make(map[string]interface{}), - } -} - -// TootIdentityProofExtends returns true if the IdentityProof type extends from -// the other type. -func TootIdentityProofExtends(other vocab.Type) bool { - extensions := []string{"Object"} - for _, ext := range extensions { - if ext == other.GetTypeName() { - return true - } - } - return false -} - -// GetActivityStreamsAltitude returns the "altitude" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { - return this.ActivityStreamsAltitude -} - -// GetActivityStreamsAttachment returns the "attachment" property if it exists, -// and nil otherwise. -func (this TootIdentityProof) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { - return this.ActivityStreamsAttachment -} - -// GetActivityStreamsAttributedTo returns the "attributedTo" property if it -// exists, and nil otherwise. -func (this TootIdentityProof) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { - return this.ActivityStreamsAttributedTo -} - -// GetActivityStreamsAudience returns the "audience" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { - return this.ActivityStreamsAudience -} - -// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { - return this.ActivityStreamsBcc -} - -// GetActivityStreamsBto returns the "bto" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { - return this.ActivityStreamsBto -} - -// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. -func (this TootIdentityProof) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { - return this.ActivityStreamsCc -} - -// GetActivityStreamsContent returns the "content" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { - return this.ActivityStreamsContent -} - -// GetActivityStreamsContext returns the "context" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { - return this.ActivityStreamsContext -} - -// GetActivityStreamsDuration returns the "duration" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { - return this.ActivityStreamsDuration -} - -// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { - return this.ActivityStreamsEndTime -} - -// GetActivityStreamsGenerator returns the "generator" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { - return this.ActivityStreamsGenerator -} - -// GetActivityStreamsIcon returns the "icon" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { - return this.ActivityStreamsIcon -} - -// GetActivityStreamsImage returns the "image" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { - return this.ActivityStreamsImage -} - -// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { - return this.ActivityStreamsInReplyTo -} - -// GetActivityStreamsLikes returns the "likes" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { - return this.ActivityStreamsLikes -} - -// GetActivityStreamsLocation returns the "location" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { - return this.ActivityStreamsLocation -} - -// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { - return this.ActivityStreamsMediaType -} - -// GetActivityStreamsName returns the "name" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { - return this.ActivityStreamsName -} - -// GetActivityStreamsObject returns the "object" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { - return this.ActivityStreamsObject -} - -// GetActivityStreamsPreview returns the "preview" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { - return this.ActivityStreamsPreview -} - -// GetActivityStreamsPublished returns the "published" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { - return this.ActivityStreamsPublished -} - -// GetActivityStreamsReplies returns the "replies" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { - return this.ActivityStreamsReplies -} - -// GetActivityStreamsShares returns the "shares" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { - return this.ActivityStreamsShares -} - -// GetActivityStreamsSource returns the "source" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { - return this.ActivityStreamsSource -} - -// GetActivityStreamsStartTime returns the "startTime" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { - return this.ActivityStreamsStartTime -} - -// GetActivityStreamsSummary returns the "summary" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { - return this.ActivityStreamsSummary -} - -// GetActivityStreamsTag returns the "tag" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { - return this.ActivityStreamsTag -} - -// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. -func (this TootIdentityProof) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { - return this.ActivityStreamsTo -} - -// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { - return this.ActivityStreamsUpdated -} - -// GetActivityStreamsUrl returns the "url" property if it exists, and nil -// otherwise. -func (this TootIdentityProof) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { - return this.ActivityStreamsUrl -} - -// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise. -func (this TootIdentityProof) GetForgeFedTeam() vocab.ForgeFedTeamProperty { - return this.ForgeFedTeam -} - -// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it -// exists, and nil otherwise. -func (this TootIdentityProof) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty { - return this.ForgeFedTicketsTrackedBy -} - -// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it -// exists, and nil otherwise. -func (this TootIdentityProof) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty { - return this.ForgeFedTracksTicketsFor -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this TootIdentityProof) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetJSONLDType returns the "type" property if it exists, and nil otherwise. -func (this TootIdentityProof) GetJSONLDType() vocab.JSONLDTypeProperty { - return this.JSONLDType -} - -// GetTootSignatureAlgorithm returns the "signatureAlgorithm" property if it -// exists, and nil otherwise. -func (this TootIdentityProof) GetTootSignatureAlgorithm() vocab.TootSignatureAlgorithmProperty { - return this.TootSignatureAlgorithm -} - -// GetTootSignatureValue returns the "signatureValue" property if it exists, and -// nil otherwise. -func (this TootIdentityProof) GetTootSignatureValue() vocab.TootSignatureValueProperty { - return this.TootSignatureValue -} - -// GetTypeName returns the name of this type. -func (this TootIdentityProof) GetTypeName() string { - return "IdentityProof" -} - -// GetUnknownProperties returns the unknown properties for the IdentityProof type. -// Note that this should not be used by app developers. It is only used to -// help determine which implementation is LessThan the other. Developers who -// are creating a different implementation of this type's interface can use -// this method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this TootIdentityProof) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// IsExtending returns true if the IdentityProof type extends from the other type. -func (this TootIdentityProof) IsExtending(other vocab.Type) bool { - return TootIdentityProofExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this TootIdentityProof) JSONLDContext() map[string]string { - m := map[string]string{"http://joinmastodon.org/ns": this.alias} - m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) - m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) - m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) - m = this.helperJSONLDContext(this.ActivityStreamsBto, m) - m = this.helperJSONLDContext(this.ActivityStreamsCc, m) - m = this.helperJSONLDContext(this.ActivityStreamsContent, m) - m = this.helperJSONLDContext(this.ActivityStreamsContext, m) - m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) - m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) - m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.ActivityStreamsImage, m) - m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) - m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) - m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) - m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) - m = this.helperJSONLDContext(this.ActivityStreamsName, m) - m = this.helperJSONLDContext(this.ActivityStreamsObject, m) - m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) - m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) - m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) - m = this.helperJSONLDContext(this.ActivityStreamsShares, m) - m = this.helperJSONLDContext(this.TootSignatureAlgorithm, m) - m = this.helperJSONLDContext(this.TootSignatureValue, m) - m = this.helperJSONLDContext(this.ActivityStreamsSource, m) - m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) - m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) - m = this.helperJSONLDContext(this.ActivityStreamsTag, m) - m = this.helperJSONLDContext(this.ForgeFedTeam, m) - m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m) - m = this.helperJSONLDContext(this.ActivityStreamsTo, m) - m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m) - m = this.helperJSONLDContext(this.JSONLDType, m) - m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) - m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) - - return m -} - -// LessThan computes if this IdentityProof is lesser, with an arbitrary but stable -// determination. -func (this TootIdentityProof) LessThan(o vocab.TootIdentityProof) bool { - // Begin: Compare known properties - // Compare property "altitude" - if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attachment" - if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "attributedTo" - if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "audience" - if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bcc" - if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "bto" - if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "cc" - if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "content" - if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "context" - if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "duration" - if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "endTime" - if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "generator" - if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "icon" - if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "image" - if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "inReplyTo" - if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "likes" - if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "location" - if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "mediaType" - if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "name" - if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "object" - if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "preview" - if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "published" - if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "replies" - if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "shares" - if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "signatureAlgorithm" - if lhs, rhs := this.TootSignatureAlgorithm, o.GetTootSignatureAlgorithm(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "signatureValue" - if lhs, rhs := this.TootSignatureValue, o.GetTootSignatureValue(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "source" - if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "startTime" - if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "summary" - if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tag" - if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "team" - if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "ticketsTrackedBy" - if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "to" - if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "tracksTicketsFor" - if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "type" - if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "updated" - if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "url" - if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this TootIdentityProof) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - typeName := "IdentityProof" - if len(this.alias) > 0 { - typeName = this.alias + ":" + "IdentityProof" - } - m["type"] = typeName - // Begin: Serialize known properties - // Maybe serialize property "altitude" - if this.ActivityStreamsAltitude != nil { - if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAltitude.Name()] = i - } - } - // Maybe serialize property "attachment" - if this.ActivityStreamsAttachment != nil { - if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttachment.Name()] = i - } - } - // Maybe serialize property "attributedTo" - if this.ActivityStreamsAttributedTo != nil { - if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAttributedTo.Name()] = i - } - } - // Maybe serialize property "audience" - if this.ActivityStreamsAudience != nil { - if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsAudience.Name()] = i - } - } - // Maybe serialize property "bcc" - if this.ActivityStreamsBcc != nil { - if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBcc.Name()] = i - } - } - // Maybe serialize property "bto" - if this.ActivityStreamsBto != nil { - if i, err := this.ActivityStreamsBto.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsBto.Name()] = i - } - } - // Maybe serialize property "cc" - if this.ActivityStreamsCc != nil { - if i, err := this.ActivityStreamsCc.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsCc.Name()] = i - } - } - // Maybe serialize property "content" - if this.ActivityStreamsContent != nil { - if i, err := this.ActivityStreamsContent.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContent.Name()] = i - } - } - // Maybe serialize property "context" - if this.ActivityStreamsContext != nil { - if i, err := this.ActivityStreamsContext.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsContext.Name()] = i - } - } - // Maybe serialize property "duration" - if this.ActivityStreamsDuration != nil { - if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsDuration.Name()] = i - } - } - // Maybe serialize property "endTime" - if this.ActivityStreamsEndTime != nil { - if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsEndTime.Name()] = i - } - } - // Maybe serialize property "generator" - if this.ActivityStreamsGenerator != nil { - if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsGenerator.Name()] = i - } - } - // Maybe serialize property "icon" - if this.ActivityStreamsIcon != nil { - if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsIcon.Name()] = i - } - } - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "image" - if this.ActivityStreamsImage != nil { - if i, err := this.ActivityStreamsImage.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsImage.Name()] = i - } - } - // Maybe serialize property "inReplyTo" - if this.ActivityStreamsInReplyTo != nil { - if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsInReplyTo.Name()] = i - } - } - // Maybe serialize property "likes" - if this.ActivityStreamsLikes != nil { - if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLikes.Name()] = i - } - } - // Maybe serialize property "location" - if this.ActivityStreamsLocation != nil { - if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsLocation.Name()] = i - } - } - // Maybe serialize property "mediaType" - if this.ActivityStreamsMediaType != nil { - if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsMediaType.Name()] = i - } - } - // Maybe serialize property "name" - if this.ActivityStreamsName != nil { - if i, err := this.ActivityStreamsName.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsName.Name()] = i - } - } - // Maybe serialize property "object" - if this.ActivityStreamsObject != nil { - if i, err := this.ActivityStreamsObject.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsObject.Name()] = i - } - } - // Maybe serialize property "preview" - if this.ActivityStreamsPreview != nil { - if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPreview.Name()] = i - } - } - // Maybe serialize property "published" - if this.ActivityStreamsPublished != nil { - if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsPublished.Name()] = i - } - } - // Maybe serialize property "replies" - if this.ActivityStreamsReplies != nil { - if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsReplies.Name()] = i - } - } - // Maybe serialize property "shares" - if this.ActivityStreamsShares != nil { - if i, err := this.ActivityStreamsShares.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsShares.Name()] = i - } - } - // Maybe serialize property "signatureAlgorithm" - if this.TootSignatureAlgorithm != nil { - if i, err := this.TootSignatureAlgorithm.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootSignatureAlgorithm.Name()] = i - } - } - // Maybe serialize property "signatureValue" - if this.TootSignatureValue != nil { - if i, err := this.TootSignatureValue.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.TootSignatureValue.Name()] = i - } - } - // Maybe serialize property "source" - if this.ActivityStreamsSource != nil { - if i, err := this.ActivityStreamsSource.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSource.Name()] = i - } - } - // Maybe serialize property "startTime" - if this.ActivityStreamsStartTime != nil { - if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsStartTime.Name()] = i - } - } - // Maybe serialize property "summary" - if this.ActivityStreamsSummary != nil { - if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsSummary.Name()] = i - } - } - // Maybe serialize property "tag" - if this.ActivityStreamsTag != nil { - if i, err := this.ActivityStreamsTag.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTag.Name()] = i - } - } - // Maybe serialize property "team" - if this.ForgeFedTeam != nil { - if i, err := this.ForgeFedTeam.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTeam.Name()] = i - } - } - // Maybe serialize property "ticketsTrackedBy" - if this.ForgeFedTicketsTrackedBy != nil { - if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTicketsTrackedBy.Name()] = i - } - } - // Maybe serialize property "to" - if this.ActivityStreamsTo != nil { - if i, err := this.ActivityStreamsTo.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsTo.Name()] = i - } - } - // Maybe serialize property "tracksTicketsFor" - if this.ForgeFedTracksTicketsFor != nil { - if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ForgeFedTracksTicketsFor.Name()] = i - } - } - // Maybe serialize property "type" - if this.JSONLDType != nil { - if i, err := this.JSONLDType.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDType.Name()] = i - } - } - // Maybe serialize property "updated" - if this.ActivityStreamsUpdated != nil { - if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUpdated.Name()] = i - } - } - // Maybe serialize property "url" - if this.ActivityStreamsUrl != nil { - if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.ActivityStreamsUrl.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetActivityStreamsAltitude sets the "altitude" property. -func (this *TootIdentityProof) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { - this.ActivityStreamsAltitude = i -} - -// SetActivityStreamsAttachment sets the "attachment" property. -func (this *TootIdentityProof) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { - this.ActivityStreamsAttachment = i -} - -// SetActivityStreamsAttributedTo sets the "attributedTo" property. -func (this *TootIdentityProof) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { - this.ActivityStreamsAttributedTo = i -} - -// SetActivityStreamsAudience sets the "audience" property. -func (this *TootIdentityProof) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { - this.ActivityStreamsAudience = i -} - -// SetActivityStreamsBcc sets the "bcc" property. -func (this *TootIdentityProof) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { - this.ActivityStreamsBcc = i -} - -// SetActivityStreamsBto sets the "bto" property. -func (this *TootIdentityProof) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { - this.ActivityStreamsBto = i -} - -// SetActivityStreamsCc sets the "cc" property. -func (this *TootIdentityProof) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { - this.ActivityStreamsCc = i -} - -// SetActivityStreamsContent sets the "content" property. -func (this *TootIdentityProof) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { - this.ActivityStreamsContent = i -} - -// SetActivityStreamsContext sets the "context" property. -func (this *TootIdentityProof) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { - this.ActivityStreamsContext = i -} - -// SetActivityStreamsDuration sets the "duration" property. -func (this *TootIdentityProof) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { - this.ActivityStreamsDuration = i -} - -// SetActivityStreamsEndTime sets the "endTime" property. -func (this *TootIdentityProof) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { - this.ActivityStreamsEndTime = i -} - -// SetActivityStreamsGenerator sets the "generator" property. -func (this *TootIdentityProof) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { - this.ActivityStreamsGenerator = i -} - -// SetActivityStreamsIcon sets the "icon" property. -func (this *TootIdentityProof) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { - this.ActivityStreamsIcon = i -} - -// SetActivityStreamsImage sets the "image" property. -func (this *TootIdentityProof) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { - this.ActivityStreamsImage = i -} - -// SetActivityStreamsInReplyTo sets the "inReplyTo" property. -func (this *TootIdentityProof) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { - this.ActivityStreamsInReplyTo = i -} - -// SetActivityStreamsLikes sets the "likes" property. -func (this *TootIdentityProof) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { - this.ActivityStreamsLikes = i -} - -// SetActivityStreamsLocation sets the "location" property. -func (this *TootIdentityProof) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { - this.ActivityStreamsLocation = i -} - -// SetActivityStreamsMediaType sets the "mediaType" property. -func (this *TootIdentityProof) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { - this.ActivityStreamsMediaType = i -} - -// SetActivityStreamsName sets the "name" property. -func (this *TootIdentityProof) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { - this.ActivityStreamsName = i -} - -// SetActivityStreamsObject sets the "object" property. -func (this *TootIdentityProof) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { - this.ActivityStreamsObject = i -} - -// SetActivityStreamsPreview sets the "preview" property. -func (this *TootIdentityProof) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { - this.ActivityStreamsPreview = i -} - -// SetActivityStreamsPublished sets the "published" property. -func (this *TootIdentityProof) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { - this.ActivityStreamsPublished = i -} - -// SetActivityStreamsReplies sets the "replies" property. -func (this *TootIdentityProof) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { - this.ActivityStreamsReplies = i -} - -// SetActivityStreamsShares sets the "shares" property. -func (this *TootIdentityProof) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { - this.ActivityStreamsShares = i -} - -// SetActivityStreamsSource sets the "source" property. -func (this *TootIdentityProof) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { - this.ActivityStreamsSource = i -} - -// SetActivityStreamsStartTime sets the "startTime" property. -func (this *TootIdentityProof) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { - this.ActivityStreamsStartTime = i -} - -// SetActivityStreamsSummary sets the "summary" property. -func (this *TootIdentityProof) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { - this.ActivityStreamsSummary = i -} - -// SetActivityStreamsTag sets the "tag" property. -func (this *TootIdentityProof) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { - this.ActivityStreamsTag = i -} - -// SetActivityStreamsTo sets the "to" property. -func (this *TootIdentityProof) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { - this.ActivityStreamsTo = i -} - -// SetActivityStreamsUpdated sets the "updated" property. -func (this *TootIdentityProof) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { - this.ActivityStreamsUpdated = i -} - -// SetActivityStreamsUrl sets the "url" property. -func (this *TootIdentityProof) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { - this.ActivityStreamsUrl = i -} - -// SetForgeFedTeam sets the "team" property. -func (this *TootIdentityProof) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) { - this.ForgeFedTeam = i -} - -// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. -func (this *TootIdentityProof) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) { - this.ForgeFedTicketsTrackedBy = i -} - -// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. -func (this *TootIdentityProof) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) { - this.ForgeFedTracksTicketsFor = i -} - -// SetJSONLDId sets the "id" property. -func (this *TootIdentityProof) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetJSONLDType sets the "type" property. -func (this *TootIdentityProof) SetJSONLDType(i vocab.JSONLDTypeProperty) { - this.JSONLDType = i -} - -// SetTootSignatureAlgorithm sets the "signatureAlgorithm" property. -func (this *TootIdentityProof) SetTootSignatureAlgorithm(i vocab.TootSignatureAlgorithmProperty) { - this.TootSignatureAlgorithm = i -} - -// SetTootSignatureValue sets the "signatureValue" property. -func (this *TootIdentityProof) SetTootSignatureValue(i vocab.TootSignatureValueProperty) { - this.TootSignatureValue = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this TootIdentityProof) VocabularyURI() string { - return "http://joinmastodon.org/ns" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this TootIdentityProof) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner/gen_doc.go deleted file mode 100644 index 1c77bcd7f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertyowner contains the implementation for the owner property. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertyowner diff --git a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner/gen_pkg.go deleted file mode 100644 index 3a38a9b85..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyowner - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go b/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go deleted file mode 100644 index c4a2bafb4..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner/gen_property_w3idsecurityv1_owner.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertyowner - -import ( - "fmt" - anyuri "github.com/go-fed/activity/streams/values/anyURI" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// W3IDSecurityV1OwnerProperty is the functional property "owner". It is permitted -// to be a single nilable value type. -type W3IDSecurityV1OwnerProperty struct { - xmlschemaAnyURIMember *url.URL - unknown interface{} - alias string -} - -// DeserializeOwnerProperty creates a "owner" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializeOwnerProperty(m map[string]interface{}, aliasMap map[string]string) (*W3IDSecurityV1OwnerProperty, error) { - alias := "" - if a, ok := aliasMap["https://w3id.org/security/v1"]; ok { - alias = a - } - propName := "owner" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "owner") - } - i, ok := m[propName] - - if ok { - if v, err := anyuri.DeserializeAnyURI(i); err == nil { - this := &W3IDSecurityV1OwnerProperty{ - alias: alias, - xmlschemaAnyURIMember: v, - } - return this, nil - } - this := &W3IDSecurityV1OwnerProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewW3IDSecurityV1OwnerProperty creates a new owner property. -func NewW3IDSecurityV1OwnerProperty() *W3IDSecurityV1OwnerProperty { - return &W3IDSecurityV1OwnerProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI -// afterwards will return false. -func (this *W3IDSecurityV1OwnerProperty) Clear() { - this.unknown = nil - this.xmlschemaAnyURIMember = nil -} - -// Get returns the value of this property. When IsXMLSchemaAnyURI returns false, -// Get will return any arbitrary value. -func (this W3IDSecurityV1OwnerProperty) Get() *url.URL { - return this.xmlschemaAnyURIMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this W3IDSecurityV1OwnerProperty) GetIRI() *url.URL { - return this.xmlschemaAnyURIMember -} - -// HasAny returns true if the value or IRI is set. -func (this W3IDSecurityV1OwnerProperty) HasAny() bool { - return this.IsXMLSchemaAnyURI() -} - -// IsIRI returns true if this property is an IRI. -func (this W3IDSecurityV1OwnerProperty) IsIRI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// IsXMLSchemaAnyURI returns true if this property is set and not an IRI. -func (this W3IDSecurityV1OwnerProperty) IsXMLSchemaAnyURI() bool { - return this.xmlschemaAnyURIMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this W3IDSecurityV1OwnerProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://w3id.org/security/v1": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this W3IDSecurityV1OwnerProperty) KindIndex() int { - if this.IsXMLSchemaAnyURI() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this W3IDSecurityV1OwnerProperty) LessThan(o vocab.W3IDSecurityV1OwnerProperty) bool { - if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaAnyURI() && o.IsXMLSchemaAnyURI() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return anyuri.LessAnyURI(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "owner". -func (this W3IDSecurityV1OwnerProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "owner" - } else { - return "owner" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this W3IDSecurityV1OwnerProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaAnyURI() { - return anyuri.SerializeAnyURI(this.Get()) - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will -// return true. -func (this *W3IDSecurityV1OwnerProperty) Set(v *url.URL) { - this.Clear() - this.xmlschemaAnyURIMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *W3IDSecurityV1OwnerProperty) SetIRI(v *url.URL) { - this.Clear() - this.Set(v) -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey/gen_doc.go deleted file mode 100644 index 59947096d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertypublickey contains the implementation for the publicKey -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertypublickey diff --git a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go deleted file mode 100644 index 3ebfa0897..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey/gen_pkg.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypublickey - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializePublicKeyW3IDSecurityV1 returns the deserialization method - // for the "W3IDSecurityV1PublicKey" non-functional property in the - // vocabulary "W3IDSecurityV1" - DeserializePublicKeyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKey, error) -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go b/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go deleted file mode 100644 index d88d7ac38..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey/gen_property_w3idsecurityv1_publicKey.go +++ /dev/null @@ -1,621 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypublickey - -import ( - "fmt" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// W3IDSecurityV1PublicKeyPropertyIterator is an iterator for a property. It is -// permitted to be a single nilable value type. -type W3IDSecurityV1PublicKeyPropertyIterator struct { - w3idsecurityv1PublicKeyMember vocab.W3IDSecurityV1PublicKey - unknown interface{} - iri *url.URL - alias string - myIdx int - parent vocab.W3IDSecurityV1PublicKeyProperty -} - -// NewW3IDSecurityV1PublicKeyPropertyIterator creates a new -// W3IDSecurityV1PublicKey property. -func NewW3IDSecurityV1PublicKeyPropertyIterator() *W3IDSecurityV1PublicKeyPropertyIterator { - return &W3IDSecurityV1PublicKeyPropertyIterator{alias: ""} -} - -// deserializeW3IDSecurityV1PublicKeyPropertyIterator creates an iterator from an -// element that has been unmarshalled from a text or binary format. -func deserializeW3IDSecurityV1PublicKeyPropertyIterator(i interface{}, aliasMap map[string]string) (*W3IDSecurityV1PublicKeyPropertyIterator, error) { - alias := "" - if a, ok := aliasMap["https://w3id.org/security/v1"]; ok { - alias = a - } - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: alias, - iri: u, - } - return this, nil - } - } - if m, ok := i.(map[string]interface{}); ok { - if v, err := mgr.DeserializePublicKeyW3IDSecurityV1()(m, aliasMap); err == nil { - this := &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: alias, - w3idsecurityv1PublicKeyMember: v, - } - return this, nil - } - } - this := &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: alias, - unknown: i, - } - return this, nil -} - -// Get returns the value of this property. When IsW3IDSecurityV1PublicKey returns -// false, Get will return any arbitrary value. -func (this W3IDSecurityV1PublicKeyPropertyIterator) Get() vocab.W3IDSecurityV1PublicKey { - return this.w3idsecurityv1PublicKeyMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this W3IDSecurityV1PublicKeyPropertyIterator) GetIRI() *url.URL { - return this.iri -} - -// GetType returns the value in this property as a Type. Returns nil if the value -// is not an ActivityStreams type, such as an IRI or another value. -func (this W3IDSecurityV1PublicKeyPropertyIterator) GetType() vocab.Type { - if this.IsW3IDSecurityV1PublicKey() { - return this.Get() - } - - return nil -} - -// HasAny returns true if the value or IRI is set. -func (this W3IDSecurityV1PublicKeyPropertyIterator) HasAny() bool { - return this.IsW3IDSecurityV1PublicKey() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this W3IDSecurityV1PublicKeyPropertyIterator) IsIRI() bool { - return this.iri != nil -} - -// IsW3IDSecurityV1PublicKey returns true if this property is set and not an IRI. -func (this W3IDSecurityV1PublicKeyPropertyIterator) IsW3IDSecurityV1PublicKey() bool { - return this.w3idsecurityv1PublicKeyMember != nil -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this W3IDSecurityV1PublicKeyPropertyIterator) JSONLDContext() map[string]string { - m := map[string]string{"https://w3id.org/security/v1": this.alias} - var child map[string]string - if this.IsW3IDSecurityV1PublicKey() { - child = this.Get().JSONLDContext() - } - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this W3IDSecurityV1PublicKeyPropertyIterator) KindIndex() int { - if this.IsW3IDSecurityV1PublicKey() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this W3IDSecurityV1PublicKeyPropertyIterator) LessThan(o vocab.W3IDSecurityV1PublicKeyPropertyIterator) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsW3IDSecurityV1PublicKey() && !o.IsW3IDSecurityV1PublicKey() { - // Both are unknowns. - return false - } else if this.IsW3IDSecurityV1PublicKey() && !o.IsW3IDSecurityV1PublicKey() { - // Values are always greater than unknown values. - return false - } else if !this.IsW3IDSecurityV1PublicKey() && o.IsW3IDSecurityV1PublicKey() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return this.Get().LessThan(o.Get()) - } -} - -// Name returns the name of this property: "W3IDSecurityV1PublicKey". -func (this W3IDSecurityV1PublicKeyPropertyIterator) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "W3IDSecurityV1PublicKey" - } else { - return "W3IDSecurityV1PublicKey" - } -} - -// Next returns the next iterator, or nil if there is no next iterator. -func (this W3IDSecurityV1PublicKeyPropertyIterator) Next() vocab.W3IDSecurityV1PublicKeyPropertyIterator { - if this.myIdx+1 >= this.parent.Len() { - return nil - } else { - return this.parent.At(this.myIdx + 1) - } -} - -// Prev returns the previous iterator, or nil if there is no previous iterator. -func (this W3IDSecurityV1PublicKeyPropertyIterator) Prev() vocab.W3IDSecurityV1PublicKeyPropertyIterator { - if this.myIdx-1 < 0 { - return nil - } else { - return this.parent.At(this.myIdx - 1) - } -} - -// Set sets the value of this property. Calling IsW3IDSecurityV1PublicKey -// afterwards will return true. -func (this *W3IDSecurityV1PublicKeyPropertyIterator) Set(v vocab.W3IDSecurityV1PublicKey) { - this.clear() - this.w3idsecurityv1PublicKeyMember = v -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *W3IDSecurityV1PublicKeyPropertyIterator) SetIRI(v *url.URL) { - this.clear() - this.iri = v -} - -// SetType attempts to set the property for the arbitrary type. Returns an error -// if it is not a valid type to set on this property. -func (this *W3IDSecurityV1PublicKeyPropertyIterator) SetType(t vocab.Type) error { - if v, ok := t.(vocab.W3IDSecurityV1PublicKey); ok { - this.Set(v) - return nil - } - - return fmt.Errorf("illegal type to set on W3IDSecurityV1PublicKey property: %T", t) -} - -// clear ensures no value of this property is set. Calling -// IsW3IDSecurityV1PublicKey afterwards will return false. -func (this *W3IDSecurityV1PublicKeyPropertyIterator) clear() { - this.unknown = nil - this.iri = nil - this.w3idsecurityv1PublicKeyMember = nil -} - -// serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this W3IDSecurityV1PublicKeyPropertyIterator) serialize() (interface{}, error) { - if this.IsW3IDSecurityV1PublicKey() { - return this.Get().Serialize() - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// W3IDSecurityV1PublicKeyProperty is the non-functional property "publicKey". It -// is permitted to have one or more values, and of different value types. -type W3IDSecurityV1PublicKeyProperty struct { - properties []*W3IDSecurityV1PublicKeyPropertyIterator - alias string -} - -// DeserializePublicKeyProperty creates a "publicKey" property from an interface -// representation that has been unmarshalled from a text or binary format. -func DeserializePublicKeyProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1PublicKeyProperty, error) { - alias := "" - if a, ok := aliasMap["https://w3id.org/security/v1"]; ok { - alias = a - } - propName := "publicKey" - if len(alias) > 0 { - propName = fmt.Sprintf("%s:%s", alias, "publicKey") - } - i, ok := m[propName] - - if ok { - this := &W3IDSecurityV1PublicKeyProperty{ - alias: alias, - properties: []*W3IDSecurityV1PublicKeyPropertyIterator{}, - } - if list, ok := i.([]interface{}); ok { - for _, iterator := range list { - if p, err := deserializeW3IDSecurityV1PublicKeyPropertyIterator(iterator, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - } else { - if p, err := deserializeW3IDSecurityV1PublicKeyPropertyIterator(i, aliasMap); err != nil { - return this, err - } else if p != nil { - this.properties = append(this.properties, p) - } - } - // Set up the properties for iteration. - for idx, ele := range this.properties { - ele.parent = this - ele.myIdx = idx - } - return this, nil - } - return nil, nil -} - -// NewW3IDSecurityV1PublicKeyProperty creates a new publicKey property. -func NewW3IDSecurityV1PublicKeyProperty() *W3IDSecurityV1PublicKeyProperty { - return &W3IDSecurityV1PublicKeyProperty{alias: ""} -} - -// AppendIRI appends an IRI value to the back of a list of the property "publicKey" -func (this *W3IDSecurityV1PublicKeyProperty) AppendIRI(v *url.URL) { - this.properties = append(this.properties, &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: this.Len(), - parent: this, - }) -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "publicKey". Invalidates iterators that are traversing using Prev. -// Returns an error if the type is not a valid one to set for this property. -func (this *W3IDSecurityV1PublicKeyProperty) AppendType(t vocab.Type) error { - n := &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, n) - return nil -} - -// AppendW3IDSecurityV1PublicKey appends a PublicKey value to the back of a list -// of the property "publicKey". Invalidates iterators that are traversing -// using Prev. -func (this *W3IDSecurityV1PublicKeyProperty) AppendW3IDSecurityV1PublicKey(v vocab.W3IDSecurityV1PublicKey) { - this.properties = append(this.properties, &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - myIdx: this.Len(), - parent: this, - w3idsecurityv1PublicKeyMember: v, - }) -} - -// At returns the property value for the specified index. Panics if the index is -// out of bounds. -func (this W3IDSecurityV1PublicKeyProperty) At(index int) vocab.W3IDSecurityV1PublicKeyPropertyIterator { - return this.properties[index] -} - -// Begin returns the first iterator, or nil if empty. Can be used with the -// iterator's Next method and this property's End method to iterate from front -// to back through all values. -func (this W3IDSecurityV1PublicKeyProperty) Begin() vocab.W3IDSecurityV1PublicKeyPropertyIterator { - if this.Empty() { - return nil - } else { - return this.properties[0] - } -} - -// Empty returns returns true if there are no elements. -func (this W3IDSecurityV1PublicKeyProperty) Empty() bool { - return this.Len() == 0 -} - -// End returns beyond-the-last iterator, which is nil. Can be used with the -// iterator's Next method and this property's Begin method to iterate from -// front to back through all values. -func (this W3IDSecurityV1PublicKeyProperty) End() vocab.W3IDSecurityV1PublicKeyPropertyIterator { - return nil -} - -// Insert inserts an IRI value at the specified index for a property "publicKey". -// Existing elements at that index and higher are shifted back once. -// Invalidates all iterators. -func (this *W3IDSecurityV1PublicKeyProperty) InsertIRI(idx int, v *url.URL) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "publicKey". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *W3IDSecurityV1PublicKeyProperty) InsertType(idx int, t vocab.Type) error { - n := &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = n - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// InsertW3IDSecurityV1PublicKey inserts a PublicKey value at the specified index -// for a property "publicKey". Existing elements at that index and higher are -// shifted back once. Invalidates all iterators. -func (this *W3IDSecurityV1PublicKeyProperty) InsertW3IDSecurityV1PublicKey(idx int, v vocab.W3IDSecurityV1PublicKey) { - this.properties = append(this.properties, nil) - copy(this.properties[idx+1:], this.properties[idx:]) - this.properties[idx] = &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - w3idsecurityv1PublicKeyMember: v, - } - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this W3IDSecurityV1PublicKeyProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://w3id.org/security/v1": this.alias} - for _, elem := range this.properties { - child := elem.JSONLDContext() - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API method specifically needed only for alternate implementations -// for go-fed. Applications should not use this method. Panics if the index is -// out of bounds. -func (this W3IDSecurityV1PublicKeyProperty) KindIndex(idx int) int { - return this.properties[idx].KindIndex() -} - -// Len returns the number of values that exist for the "publicKey" property. -func (this W3IDSecurityV1PublicKeyProperty) Len() (length int) { - return len(this.properties) -} - -// Less computes whether another property is less than this one. Mixing types -// results in a consistent but arbitrary ordering -func (this W3IDSecurityV1PublicKeyProperty) Less(i, j int) bool { - idx1 := this.KindIndex(i) - idx2 := this.KindIndex(j) - if idx1 < idx2 { - return true - } else if idx1 == idx2 { - if idx1 == 0 { - lhs := this.properties[i].Get() - rhs := this.properties[j].Get() - return lhs.LessThan(rhs) - } else if idx1 == -2 { - lhs := this.properties[i].GetIRI() - rhs := this.properties[j].GetIRI() - return lhs.String() < rhs.String() - } - } - return false -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this W3IDSecurityV1PublicKeyProperty) LessThan(o vocab.W3IDSecurityV1PublicKeyProperty) bool { - l1 := this.Len() - l2 := o.Len() - l := l1 - if l2 < l1 { - l = l2 - } - for i := 0; i < l; i++ { - if this.properties[i].LessThan(o.At(i)) { - return true - } else if o.At(i).LessThan(this.properties[i]) { - return false - } - } - return l1 < l2 -} - -// Name returns the name of this property ("publicKey") with any alias. -func (this W3IDSecurityV1PublicKeyProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "publicKey" - } else { - return "publicKey" - } -} - -// PrependIRI prepends an IRI value to the front of a list of the property -// "publicKey". -func (this *W3IDSecurityV1PublicKeyProperty) PrependIRI(v *url.URL) { - this.properties = append([]*W3IDSecurityV1PublicKeyPropertyIterator{{ - alias: this.alias, - iri: v, - myIdx: 0, - parent: this, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// PrependType prepends an arbitrary type value to the front of a list of the -// property "publicKey". Invalidates all iterators. Returns an error if the -// type is not a valid one to set for this property. -func (this *W3IDSecurityV1PublicKeyProperty) PrependType(t vocab.Type) error { - n := &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - myIdx: 0, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - this.properties = append([]*W3IDSecurityV1PublicKeyPropertyIterator{n}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } - return nil -} - -// PrependW3IDSecurityV1PublicKey prepends a PublicKey value to the front of a -// list of the property "publicKey". Invalidates all iterators. -func (this *W3IDSecurityV1PublicKeyProperty) PrependW3IDSecurityV1PublicKey(v vocab.W3IDSecurityV1PublicKey) { - this.properties = append([]*W3IDSecurityV1PublicKeyPropertyIterator{{ - alias: this.alias, - myIdx: 0, - parent: this, - w3idsecurityv1PublicKeyMember: v, - }}, this.properties...) - for i := 1; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Remove deletes an element at the specified index from a list of the property -// "publicKey", regardless of its type. Panics if the index is out of bounds. -// Invalidates all iterators. -func (this *W3IDSecurityV1PublicKeyProperty) Remove(idx int) { - (this.properties)[idx].parent = nil - copy((this.properties)[idx:], (this.properties)[idx+1:]) - (this.properties)[len(this.properties)-1] = &W3IDSecurityV1PublicKeyPropertyIterator{} - this.properties = (this.properties)[:len(this.properties)-1] - for i := idx; i < this.Len(); i++ { - (this.properties)[i].myIdx = i - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this W3IDSecurityV1PublicKeyProperty) Serialize() (interface{}, error) { - s := make([]interface{}, 0, len(this.properties)) - for _, iterator := range this.properties { - if b, err := iterator.serialize(); err != nil { - return s, err - } else { - s = append(s, b) - } - } - // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example. - if len(s) == 1 { - return s[0], nil - } - return s, nil -} - -// Set sets a PublicKey value to be at the specified index for the property -// "publicKey". Panics if the index is out of bounds. Invalidates all -// iterators. -func (this *W3IDSecurityV1PublicKeyProperty) Set(idx int, v vocab.W3IDSecurityV1PublicKey) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - w3idsecurityv1PublicKeyMember: v, - } -} - -// SetIRI sets an IRI value to be at the specified index for the property -// "publicKey". Panics if the index is out of bounds. -func (this *W3IDSecurityV1PublicKeyProperty) SetIRI(idx int, v *url.URL) { - (this.properties)[idx].parent = nil - (this.properties)[idx] = &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - iri: v, - myIdx: idx, - parent: this, - } -} - -// SetType sets an arbitrary type value to the specified index of the property -// "publicKey". Invalidates all iterators. Returns an error if the type is not -// a valid one to set for this property. Panics if the index is out of bounds. -func (this *W3IDSecurityV1PublicKeyProperty) SetType(idx int, t vocab.Type) error { - n := &W3IDSecurityV1PublicKeyPropertyIterator{ - alias: this.alias, - myIdx: idx, - parent: this, - } - if err := n.SetType(t); err != nil { - return err - } - (this.properties)[idx] = n - return nil -} - -// Swap swaps the location of values at two indices for the "publicKey" property. -func (this W3IDSecurityV1PublicKeyProperty) Swap(i, j int) { - this.properties[i], this.properties[j] = this.properties[j], this.properties[i] -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_doc.go deleted file mode 100644 index e1282c8f3..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package propertypublickeypem contains the implementation for the publicKeyPem -// property. All applications are strongly encouraged to use the interface -// instead of this concrete definition. The interfaces allow applications to -// consume only the types and properties needed and be independent of the -// go-fed implementation if another alternative implementation is created. -// This package is code-generated and subject to the same license as the -// go-fed tool used to generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package propertypublickeypem diff --git a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_pkg.go deleted file mode 100644 index 764de7fa5..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_pkg.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypublickeypem - -var mgr privateManager - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface{} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go b/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go deleted file mode 100644 index fd3826d26..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem/gen_property_w3idsecurityv1_publicKeyPem.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package propertypublickeypem - -import ( - "fmt" - string1 "github.com/go-fed/activity/streams/values/string" - vocab "github.com/go-fed/activity/streams/vocab" - "net/url" -) - -// W3IDSecurityV1PublicKeyPemProperty is the functional property "publicKeyPem". -// It is permitted to be a single default-valued value type. -type W3IDSecurityV1PublicKeyPemProperty struct { - xmlschemaStringMember string - hasStringMember bool - unknown interface{} - iri *url.URL - alias string -} - -// DeserializePublicKeyPemProperty creates a "publicKeyPem" property from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializePublicKeyPemProperty(m map[string]interface{}, aliasMap map[string]string) (*W3IDSecurityV1PublicKeyPemProperty, error) { - alias := "" - if a, ok := aliasMap["https://w3id.org/security/v1"]; ok { - alias = a - } - propName := "publicKeyPem" - if len(alias) > 0 { - // Use alias both to find the property, and set within the property. - propName = fmt.Sprintf("%s:%s", alias, "publicKeyPem") - } - i, ok := m[propName] - - if ok { - if s, ok := i.(string); ok { - u, err := url.Parse(s) - // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst - // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy - if err == nil && len(u.Scheme) > 0 { - this := &W3IDSecurityV1PublicKeyPemProperty{ - alias: alias, - iri: u, - } - return this, nil - } - } - if v, err := string1.DeserializeString(i); err == nil { - this := &W3IDSecurityV1PublicKeyPemProperty{ - alias: alias, - hasStringMember: true, - xmlschemaStringMember: v, - } - return this, nil - } - this := &W3IDSecurityV1PublicKeyPemProperty{ - alias: alias, - unknown: i, - } - return this, nil - } - return nil, nil -} - -// NewW3IDSecurityV1PublicKeyPemProperty creates a new publicKeyPem property. -func NewW3IDSecurityV1PublicKeyPemProperty() *W3IDSecurityV1PublicKeyPemProperty { - return &W3IDSecurityV1PublicKeyPemProperty{alias: ""} -} - -// Clear ensures no value of this property is set. Calling IsXMLSchemaString -// afterwards will return false. -func (this *W3IDSecurityV1PublicKeyPemProperty) Clear() { - this.unknown = nil - this.iri = nil - this.hasStringMember = false -} - -// Get returns the value of this property. When IsXMLSchemaString returns false, -// Get will return any arbitrary value. -func (this W3IDSecurityV1PublicKeyPemProperty) Get() string { - return this.xmlschemaStringMember -} - -// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will -// return any arbitrary value. -func (this W3IDSecurityV1PublicKeyPemProperty) GetIRI() *url.URL { - return this.iri -} - -// HasAny returns true if the value or IRI is set. -func (this W3IDSecurityV1PublicKeyPemProperty) HasAny() bool { - return this.IsXMLSchemaString() || this.iri != nil -} - -// IsIRI returns true if this property is an IRI. -func (this W3IDSecurityV1PublicKeyPemProperty) IsIRI() bool { - return this.iri != nil -} - -// IsXMLSchemaString returns true if this property is set and not an IRI. -func (this W3IDSecurityV1PublicKeyPemProperty) IsXMLSchemaString() bool { - return this.hasStringMember -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// property and the specific values that are set. The value in the map is the -// alias used to import the property's value or values. -func (this W3IDSecurityV1PublicKeyPemProperty) JSONLDContext() map[string]string { - m := map[string]string{"https://w3id.org/security/v1": this.alias} - var child map[string]string - - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - for k, v := range child { - m[k] = v - } - return m -} - -// KindIndex computes an arbitrary value for indexing this kind of value. This is -// a leaky API detail only for folks looking to replace the go-fed -// implementation. Applications should not use this method. -func (this W3IDSecurityV1PublicKeyPemProperty) KindIndex() int { - if this.IsXMLSchemaString() { - return 0 - } - if this.IsIRI() { - return -2 - } - return -1 -} - -// LessThan compares two instances of this property with an arbitrary but stable -// comparison. Applications should not use this because it is only meant to -// help alternative implementations to go-fed to be able to normalize -// nonfunctional properties. -func (this W3IDSecurityV1PublicKeyPemProperty) LessThan(o vocab.W3IDSecurityV1PublicKeyPemProperty) bool { - // LessThan comparison for if either or both are IRIs. - if this.IsIRI() && o.IsIRI() { - return this.iri.String() < o.GetIRI().String() - } else if this.IsIRI() { - // IRIs are always less than other values, none, or unknowns - return true - } else if o.IsIRI() { - // This other, none, or unknown value is always greater than IRIs - return false - } - // LessThan comparison for the single value or unknown value. - if !this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Both are unknowns. - return false - } else if this.IsXMLSchemaString() && !o.IsXMLSchemaString() { - // Values are always greater than unknown values. - return false - } else if !this.IsXMLSchemaString() && o.IsXMLSchemaString() { - // Unknowns are always less than known values. - return true - } else { - // Actual comparison. - return string1.LessString(this.Get(), o.Get()) - } -} - -// Name returns the name of this property: "publicKeyPem". -func (this W3IDSecurityV1PublicKeyPemProperty) Name() string { - if len(this.alias) > 0 { - return this.alias + ":" + "publicKeyPem" - } else { - return "publicKeyPem" - } -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. Applications should not need this -// function as most typical use cases serialize types instead of individual -// properties. It is exposed for alternatives to go-fed implementations to use. -func (this W3IDSecurityV1PublicKeyPemProperty) Serialize() (interface{}, error) { - if this.IsXMLSchemaString() { - return string1.SerializeString(this.Get()) - } else if this.IsIRI() { - return this.iri.String(), nil - } - return this.unknown, nil -} - -// Set sets the value of this property. Calling IsXMLSchemaString afterwards will -// return true. -func (this *W3IDSecurityV1PublicKeyPemProperty) Set(v string) { - this.Clear() - this.xmlschemaStringMember = v - this.hasStringMember = true -} - -// SetIRI sets the value of this property. Calling IsIRI afterwards will return -// true. -func (this *W3IDSecurityV1PublicKeyPemProperty) SetIRI(v *url.URL) { - this.Clear() - this.iri = v -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey/gen_doc.go deleted file mode 100644 index c353f6f2f..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey/gen_doc.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package typepublickey contains the implementation for the PublicKey type. All -// applications are strongly encouraged to use the interface instead of this -// concrete definition. The interfaces allow applications to consume only the -// types and properties needed and be independent of the go-fed implementation -// if another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// This package is independent of other types' and properties' implementations -// by having a Manager injected into it to act as a factory for the concrete -// implementations. The implementations have been generated into their own -// separate subpackages for each vocabulary. -// -// Strongly consider using the interfaces instead of this package. -package typepublickey diff --git a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go deleted file mode 100644 index 4204375d5..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey/gen_pkg.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typepublickey - -import vocab "github.com/go-fed/activity/streams/vocab" - -var mgr privateManager - -var typePropertyConstructor func() vocab.JSONLDTypeProperty - -// privateManager abstracts the code-generated manager that provides access to -// concrete implementations. -type privateManager interface { - // DeserializeIdPropertyJSONLD returns the deserialization method for the - // "JSONLDIdProperty" non-functional property in the vocabulary - // "JSONLD" - DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) - // DeserializeOwnerPropertyW3IDSecurityV1 returns the deserialization - // method for the "W3IDSecurityV1OwnerProperty" non-functional - // property in the vocabulary "W3IDSecurityV1" - DeserializeOwnerPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1OwnerProperty, error) - // DeserializePublicKeyPemPropertyW3IDSecurityV1 returns the - // deserialization method for the "W3IDSecurityV1PublicKeyPemProperty" - // non-functional property in the vocabulary "W3IDSecurityV1" - DeserializePublicKeyPemPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKeyPemProperty, error) -} - -// jsonldContexter is a private interface to determine the JSON-LD contexts and -// aliases needed for functional and non-functional properties. It is a helper -// interface for this implementation. -type jsonldContexter interface { - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string -} - -// SetManager sets the manager package-global variable. For internal use only, do -// not use as part of Application behavior. Must be called at golang init time. -func SetManager(m privateManager) { - mgr = m -} - -// SetTypePropertyConstructor sets the "type" property's constructor in the -// package-global variable. For internal use only, do not use as part of -// Application behavior. Must be called at golang init time. Permits -// ActivityStreams types to correctly set their "type" property at -// construction time, so users don't have to remember to do so each time. It -// is dependency injected so other go-fed compatible implementations could -// inject their own type. -func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { - typePropertyConstructor = f -} diff --git a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go b/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go deleted file mode 100644 index 92c90b20d..000000000 --- a/vendor/github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey/gen_type_w3idsecurityv1_publickey.go +++ /dev/null @@ -1,289 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package typepublickey - -import vocab "github.com/go-fed/activity/streams/vocab" - -// A public key represents a public cryptographical key for a user -type W3IDSecurityV1PublicKey struct { - JSONLDId vocab.JSONLDIdProperty - W3IDSecurityV1Owner vocab.W3IDSecurityV1OwnerProperty - W3IDSecurityV1PublicKeyPem vocab.W3IDSecurityV1PublicKeyPemProperty - alias string - unknown map[string]interface{} -} - -// DeserializePublicKey creates a PublicKey from a map representation that has -// been unmarshalled from a text or binary format. -func DeserializePublicKey(m map[string]interface{}, aliasMap map[string]string) (*W3IDSecurityV1PublicKey, error) { - alias := "" - if a, ok := aliasMap["https://w3id.org/security/v1"]; ok { - alias = a - } - this := &W3IDSecurityV1PublicKey{ - alias: alias, - unknown: make(map[string]interface{}), - } - - // Begin: Known property deserialization - if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.JSONLDId = p - } - if p, err := mgr.DeserializeOwnerPropertyW3IDSecurityV1()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.W3IDSecurityV1Owner = p - } - if p, err := mgr.DeserializePublicKeyPemPropertyW3IDSecurityV1()(m, aliasMap); err != nil { - return nil, err - } else if p != nil { - this.W3IDSecurityV1PublicKeyPem = p - } - // End: Known property deserialization - - // Begin: Unknown deserialization - for k, v := range m { - // Begin: Code that ensures a property name is unknown - if k == "id" { - continue - } else if k == "owner" { - continue - } else if k == "publicKeyPem" { - continue - } // End: Code that ensures a property name is unknown - - this.unknown[k] = v - } - // End: Unknown deserialization - - return this, nil -} - -// IsOrExtendsPublicKey returns true if the other provided type is the PublicKey -// type or extends from the PublicKey type. -func IsOrExtendsPublicKey(other vocab.Type) bool { - if other.GetTypeName() == "PublicKey" { - return true - } - return PublicKeyIsExtendedBy(other) -} - -// NewW3IDSecurityV1PublicKey creates a new PublicKey type -func NewW3IDSecurityV1PublicKey() *W3IDSecurityV1PublicKey { - return &W3IDSecurityV1PublicKey{ - alias: "", - unknown: make(map[string]interface{}), - } -} - -// PublicKeyIsDisjointWith returns true if the other provided type is disjoint -// with the PublicKey type. -func PublicKeyIsDisjointWith(other vocab.Type) bool { - // Shortcut implementation: is not disjoint with anything. - return false -} - -// PublicKeyIsExtendedBy returns true if the other provided type extends from the -// PublicKey type. Note that it returns false if the types are the same; see -// the "IsOrExtendsPublicKey" variant instead. -func PublicKeyIsExtendedBy(other vocab.Type) bool { - // Shortcut implementation: is not extended by anything. - return false -} - -// W3IDSecurityV1PublicKeyExtends returns true if the PublicKey type extends from -// the other type. -func W3IDSecurityV1PublicKeyExtends(other vocab.Type) bool { - // Shortcut implementation: this does not extend anything. - return false -} - -// GetJSONLDId returns the "id" property if it exists, and nil otherwise. -func (this W3IDSecurityV1PublicKey) GetJSONLDId() vocab.JSONLDIdProperty { - return this.JSONLDId -} - -// GetTypeName returns the name of this type. -func (this W3IDSecurityV1PublicKey) GetTypeName() string { - return "PublicKey" -} - -// GetUnknownProperties returns the unknown properties for the PublicKey type. -// Note that this should not be used by app developers. It is only used to -// help determine which implementation is LessThan the other. Developers who -// are creating a different implementation of this type's interface can use -// this method in their LessThan implementation, but routine ActivityPub -// applications should not use this to bypass the code generation tool. -func (this W3IDSecurityV1PublicKey) GetUnknownProperties() map[string]interface{} { - return this.unknown -} - -// GetW3IDSecurityV1Owner returns the "owner" property if it exists, and nil -// otherwise. -func (this W3IDSecurityV1PublicKey) GetW3IDSecurityV1Owner() vocab.W3IDSecurityV1OwnerProperty { - return this.W3IDSecurityV1Owner -} - -// GetW3IDSecurityV1PublicKeyPem returns the "publicKeyPem" property if it exists, -// and nil otherwise. -func (this W3IDSecurityV1PublicKey) GetW3IDSecurityV1PublicKeyPem() vocab.W3IDSecurityV1PublicKeyPemProperty { - return this.W3IDSecurityV1PublicKeyPem -} - -// IsExtending returns true if the PublicKey type extends from the other type. -func (this W3IDSecurityV1PublicKey) IsExtending(other vocab.Type) bool { - return W3IDSecurityV1PublicKeyExtends(other) -} - -// JSONLDContext returns the JSONLD URIs required in the context string for this -// type and the specific properties that are set. The value in the map is the -// alias used to import the type and its properties. -func (this W3IDSecurityV1PublicKey) JSONLDContext() map[string]string { - m := map[string]string{"https://w3id.org/security/v1": this.alias} - m = this.helperJSONLDContext(this.JSONLDId, m) - m = this.helperJSONLDContext(this.W3IDSecurityV1Owner, m) - m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKeyPem, m) - - return m -} - -// LessThan computes if this PublicKey is lesser, with an arbitrary but stable -// determination. -func (this W3IDSecurityV1PublicKey) LessThan(o vocab.W3IDSecurityV1PublicKey) bool { - // Begin: Compare known properties - // Compare property "id" - if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "owner" - if lhs, rhs := this.W3IDSecurityV1Owner, o.GetW3IDSecurityV1Owner(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // Compare property "publicKeyPem" - if lhs, rhs := this.W3IDSecurityV1PublicKeyPem, o.GetW3IDSecurityV1PublicKeyPem(); lhs != nil && rhs != nil { - if lhs.LessThan(rhs) { - return true - } else if rhs.LessThan(lhs) { - return false - } - } else if lhs == nil && rhs != nil { - // Nil is less than anything else - return true - } else if rhs != nil && rhs == nil { - // Anything else is greater than nil - return false - } // Else: Both are nil - // End: Compare known properties - - // Begin: Compare unknown properties (only by number of them) - if len(this.unknown) < len(o.GetUnknownProperties()) { - return true - } else if len(o.GetUnknownProperties()) < len(this.unknown) { - return false - } // End: Compare unknown properties (only by number of them) - - // All properties are the same. - return false -} - -// Serialize converts this into an interface representation suitable for -// marshalling into a text or binary format. -func (this W3IDSecurityV1PublicKey) Serialize() (map[string]interface{}, error) { - m := make(map[string]interface{}) - // Begin: Serialize known properties - // Maybe serialize property "id" - if this.JSONLDId != nil { - if i, err := this.JSONLDId.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.JSONLDId.Name()] = i - } - } - // Maybe serialize property "owner" - if this.W3IDSecurityV1Owner != nil { - if i, err := this.W3IDSecurityV1Owner.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.W3IDSecurityV1Owner.Name()] = i - } - } - // Maybe serialize property "publicKeyPem" - if this.W3IDSecurityV1PublicKeyPem != nil { - if i, err := this.W3IDSecurityV1PublicKeyPem.Serialize(); err != nil { - return nil, err - } else if i != nil { - m[this.W3IDSecurityV1PublicKeyPem.Name()] = i - } - } - // End: Serialize known properties - - // Begin: Serialize unknown properties - for k, v := range this.unknown { - // To be safe, ensure we aren't overwriting a known property - if _, has := m[k]; !has { - m[k] = v - } - } - // End: Serialize unknown properties - - return m, nil -} - -// SetJSONLDId sets the "id" property. -func (this *W3IDSecurityV1PublicKey) SetJSONLDId(i vocab.JSONLDIdProperty) { - this.JSONLDId = i -} - -// SetW3IDSecurityV1Owner sets the "owner" property. -func (this *W3IDSecurityV1PublicKey) SetW3IDSecurityV1Owner(i vocab.W3IDSecurityV1OwnerProperty) { - this.W3IDSecurityV1Owner = i -} - -// SetW3IDSecurityV1PublicKeyPem sets the "publicKeyPem" property. -func (this *W3IDSecurityV1PublicKey) SetW3IDSecurityV1PublicKeyPem(i vocab.W3IDSecurityV1PublicKeyPemProperty) { - this.W3IDSecurityV1PublicKeyPem = i -} - -// VocabularyURI returns the vocabulary's URI as a string. -func (this W3IDSecurityV1PublicKey) VocabularyURI() string { - return "https://w3id.org/security/v1" -} - -// helperJSONLDContext obtains the context uris and their aliases from a property, -// if it is not nil. -func (this W3IDSecurityV1PublicKey) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { - if i == nil { - return toMerge - } - for k, v := range i.JSONLDContext() { - /* - Since the literal maps in this function are determined at - code-generation time, this loop should not overwrite an existing key with a - new value. - */ - toMerge[k] = v - } - return toMerge -} diff --git a/vendor/github.com/go-fed/activity/streams/util.go b/vendor/github.com/go-fed/activity/streams/util.go deleted file mode 100644 index ea27f2f96..000000000 --- a/vendor/github.com/go-fed/activity/streams/util.go +++ /dev/null @@ -1,66 +0,0 @@ -package streams - -import ( - "github.com/go-fed/activity/streams/vocab" -) - -const ( - // jsonLDContext is the key for the JSON-LD specification's context - // value. It contains the definitions of the types contained within the - // rest of the payload. Important for linked-data representations, but - // only applicable to go-fed at code-generation time. - jsonLDContext = "@context" -) - -// Serialize adds the context vocabularies contained within the type -// into the JSON-LD @context field, and aliases them appropriately. -func Serialize(a vocab.Type) (m map[string]interface{}, e error) { - m, e = a.Serialize() - if e != nil { - return - } - v := a.JSONLDContext() - // Transform the map of vocabulary-to-aliases into a context payload, - // but do so in a way that at least keeps it readable for other humans. - var contextValue interface{} - if len(v) == 1 { - for vocab, alias := range v { - if len(alias) == 0 { - contextValue = vocab - } else { - contextValue = map[string]string{ - alias: vocab, - } - } - } - } else { - var arr []interface{} - aliases := make(map[string]string) - for vocab, alias := range v { - if len(alias) == 0 { - arr = append(arr, vocab) - } else { - aliases[alias] = vocab - } - } - if len(aliases) > 0 { - arr = append(arr, aliases) - } - contextValue = arr - } - // TODO: Update the context instead if it already exists - m[jsonLDContext] = contextValue - // TODO: Sort the context based on arbitrary order. - // Delete any existing `@context` in child maps. - var cleanFnRecur func(map[string]interface{}) - cleanFnRecur = func(r map[string]interface{}) { - for _, v := range r { - if n, ok := v.(map[string]interface{}); ok { - delete(n, jsonLDContext) - cleanFnRecur(n) - } - } - } - cleanFnRecur(m) - return -} diff --git a/vendor/github.com/go-fed/activity/streams/values/anyURI/gen_anyURI.go b/vendor/github.com/go-fed/activity/streams/values/anyURI/gen_anyURI.go deleted file mode 100644 index a1ac814af..000000000 --- a/vendor/github.com/go-fed/activity/streams/values/anyURI/gen_anyURI.go +++ /dev/null @@ -1,37 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package anyuri - -import ( - "fmt" - "net/url" -) - -// SerializeAnyURI converts a anyURI value to an interface representation suitable -// for marshalling into a text or binary format. -func SerializeAnyURI(this *url.URL) (interface{}, error) { - return this.String(), nil -} - -// DeserializeAnyURI creates anyURI value from an interface representation that -// has been unmarshalled from a text or binary format. -func DeserializeAnyURI(this interface{}) (*url.URL, error) { - var u *url.URL - var err error - if s, ok := this.(string); ok { - u, err = url.Parse(s) - if err != nil { - err = fmt.Errorf("%v cannot be interpreted as a xsd:anyURI: %s", this, err) - } else if len(u.Scheme) == 0 { - err = fmt.Errorf("%v cannot be interpreted as a xsd:anyURI: no scheme", this) - } - } else { - err = fmt.Errorf("%v cannot be interpreted as a string for xsd:anyURI", this) - } - return u, err -} - -// LessAnyURI returns true if the left anyURI value is less than the right value. -func LessAnyURI(lhs, rhs *url.URL) bool { - return lhs.String() < rhs.String() -} diff --git a/vendor/github.com/go-fed/activity/streams/values/bcp47/gen_bcp47.go b/vendor/github.com/go-fed/activity/streams/values/bcp47/gen_bcp47.go deleted file mode 100644 index 0e0f70485..000000000 --- a/vendor/github.com/go-fed/activity/streams/values/bcp47/gen_bcp47.go +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package bcp47 - -import "fmt" - -// SerializeBcp47 converts a bcp47 value to an interface representation suitable -// for marshalling into a text or binary format. -func SerializeBcp47(this string) (interface{}, error) { - return this, nil -} - -// DeserializeBcp47 creates bcp47 value from an interface representation that has -// been unmarshalled from a text or binary format. -func DeserializeBcp47(this interface{}) (string, error) { - if s, ok := this.(string); ok { - return s, nil - } else { - return "", fmt.Errorf("%v cannot be interpreted as a string for bcp47 languagetag", this) - } -} - -// LessBcp47 returns true if the left bcp47 value is less than the right value. -func LessBcp47(lhs, rhs string) bool { - return lhs < rhs -} diff --git a/vendor/github.com/go-fed/activity/streams/values/boolean/gen_boolean.go b/vendor/github.com/go-fed/activity/streams/values/boolean/gen_boolean.go deleted file mode 100644 index 1c75e485d..000000000 --- a/vendor/github.com/go-fed/activity/streams/values/boolean/gen_boolean.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package boolean - -import "fmt" - -// SerializeBoolean converts a boolean value to an interface representation -// suitable for marshalling into a text or binary format. -func SerializeBoolean(this bool) (interface{}, error) { - return this, nil -} - -// DeserializeBoolean creates boolean value from an interface representation that -// has been unmarshalled from a text or binary format. -func DeserializeBoolean(this interface{}) (bool, error) { - if b, ok := this.(bool); ok { - return b, nil - } else if f, ok := this.(float64); ok { - if f == 0 { - return false, nil - } else if f == 1 { - return true, nil - } else { - return false, fmt.Errorf("%v cannot be interpreted as a bool float64 for xsd:boolean", this) - } - } else { - return false, fmt.Errorf("%v cannot be interpreted as a bool for xsd:boolean", this) - } -} - -// LessBoolean returns true if the left boolean value is less than the right value. -func LessBoolean(lhs, rhs bool) bool { - // Booleans don't have a natural ordering, so we pick that truth is greater than falsehood. - return !lhs && rhs -} diff --git a/vendor/github.com/go-fed/activity/streams/values/dateTime/gen_dateTime.go b/vendor/github.com/go-fed/activity/streams/values/dateTime/gen_dateTime.go deleted file mode 100644 index 327152fdb..000000000 --- a/vendor/github.com/go-fed/activity/streams/values/dateTime/gen_dateTime.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package datetime - -import ( - "fmt" - "time" -) - -// SerializeDateTime converts a dateTime value to an interface representation -// suitable for marshalling into a text or binary format. -func SerializeDateTime(this time.Time) (interface{}, error) { - return this.Format(time.RFC3339), nil -} - -// DeserializeDateTime creates dateTime value from an interface representation -// that has been unmarshalled from a text or binary format. -func DeserializeDateTime(this interface{}) (time.Time, error) { - var tmp time.Time - var err error - if s, ok := this.(string); ok { - tmp, err = time.Parse(time.RFC3339, s) - if err != nil { - tmp, err = time.Parse("2006-01-02T15:04Z07:00", s) - if err != nil { - err = fmt.Errorf("%v cannot be interpreted as xsd:datetime", this) - } - } - } else { - err = fmt.Errorf("%v cannot be interpreted as a string for xsd:datetime", this) - } - return tmp, err -} - -// LessDateTime returns true if the left dateTime value is less than the right -// value. -func LessDateTime(lhs, rhs time.Time) bool { - return lhs.Before(rhs) -} diff --git a/vendor/github.com/go-fed/activity/streams/values/duration/gen_duration.go b/vendor/github.com/go-fed/activity/streams/values/duration/gen_duration.go deleted file mode 100644 index 8125a6822..000000000 --- a/vendor/github.com/go-fed/activity/streams/values/duration/gen_duration.go +++ /dev/null @@ -1,146 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package duration - -import ( - "fmt" - "math" - "regexp" - "strconv" - "time" -) - -// SerializeDuration converts a duration value to an interface representation -// suitable for marshalling into a text or binary format. -func SerializeDuration(this time.Duration) (interface{}, error) { - // Seriously questioning my life choices. - s := "P" - if this < 0 { - s = "-P" - this = -1 * this - } - var tally time.Duration - // Assume 8760 Hours per 365 days, cannot account for leap years in xsd:duration. :( - if years := this.Hours() / 8760.0; years >= 1 { - nYears := int64(math.Floor(years)) - tally += time.Duration(nYears) * 8760 * time.Hour - s = fmt.Sprintf("%s%dY", s, nYears) - } - // Assume 30 days per month, cannot account for months lasting 31, 30, 29, or 28 days in xsd:duration. :( - if months := (this.Hours() - tally.Hours()) / 720.0; months >= 1 { - nMonths := int64(math.Floor(months)) - tally += time.Duration(nMonths) * 720 * time.Hour - s = fmt.Sprintf("%s%dM", s, nMonths) - } - if days := (this.Hours() - tally.Hours()) / 24.0; days >= 1 { - nDays := int64(math.Floor(days)) - tally += time.Duration(nDays) * 24 * time.Hour - s = fmt.Sprintf("%s%dD", s, nDays) - } - if tally < this { - s = fmt.Sprintf("%sT", s) - if hours := this.Hours() - tally.Hours(); hours >= 1 { - nHours := int64(math.Floor(hours)) - tally += time.Duration(nHours) * time.Hour - s = fmt.Sprintf("%s%dH", s, nHours) - } - if minutes := this.Minutes() - tally.Minutes(); minutes >= 1 { - nMinutes := int64(math.Floor(minutes)) - tally += time.Duration(nMinutes) * time.Minute - s = fmt.Sprintf("%s%dM", s, nMinutes) - } - if seconds := this.Seconds() - tally.Seconds(); seconds >= 1 { - nSeconds := int64(math.Floor(seconds)) - tally += time.Duration(nSeconds) * time.Second - s = fmt.Sprintf("%s%dS", s, nSeconds) - } - } - return s, nil -} - -// DeserializeDuration creates duration value from an interface representation -// that has been unmarshalled from a text or binary format. -func DeserializeDuration(this interface{}) (time.Duration, error) { - // Maybe this time it will be easier. - if s, ok := this.(string); ok { - isNeg := false - if s[0] == '-' { - isNeg = true - s = s[1:] - } - if s[0] != 'P' { - return 0, fmt.Errorf("%s malformed: missing 'P' for xsd:duration", s) - } - re := regexp.MustCompile(`P(\d*Y)?(\d*M)?(\d*D)?(T(\d*H)?(\d*M)?(\d*S)?)?`) - res := re.FindStringSubmatch(s) - var dur time.Duration - nYear := res[1] - if len(nYear) > 0 { - nYear = nYear[:len(nYear)-1] - vYear, err := strconv.ParseInt(nYear, 10, 64) - if err != nil { - return 0, err - } - // Assume 8760 Hours per 365 days, cannot account for leap years in xsd:duration. :( - dur += time.Duration(vYear) * time.Hour * 8760 - } - nMonth := res[2] - if len(nMonth) > 0 { - nMonth = nMonth[:len(nMonth)-1] - vMonth, err := strconv.ParseInt(nMonth, 10, 64) - if err != nil { - return 0, err - } - // Assume 30 days per month, cannot account for months lasting 31, 30, 29, or 28 days in xsd:duration. :( - dur += time.Duration(vMonth) * time.Hour * 720 - } - nDay := res[3] - if len(nDay) > 0 { - nDay = nDay[:len(nDay)-1] - vDay, err := strconv.ParseInt(nDay, 10, 64) - if err != nil { - return 0, err - } - dur += time.Duration(vDay) * time.Hour * 24 - } - nHour := res[5] - if len(nHour) > 0 { - nHour = nHour[:len(nHour)-1] - vHour, err := strconv.ParseInt(nHour, 10, 64) - if err != nil { - return 0, err - } - dur += time.Duration(vHour) * time.Hour - } - nMinute := res[6] - if len(nMinute) > 0 { - nMinute = nMinute[:len(nMinute)-1] - vMinute, err := strconv.ParseInt(nMinute, 10, 64) - if err != nil { - return 0, err - } - dur += time.Duration(vMinute) * time.Minute - } - nSecond := res[7] - if len(nSecond) > 0 { - nSecond = nSecond[:len(nSecond)-1] - vSecond, err := strconv.ParseInt(nSecond, 10, 64) - if err != nil { - return 0, err - } - dur += time.Duration(vSecond) * time.Second - } - if isNeg { - dur *= -1 - } - return dur, nil - } else { - return 0, fmt.Errorf("%v cannot be interpreted as a string for xsd:duration", this) - } -} - -// LessDuration returns true if the left duration value is less than the right -// value. -func LessDuration(lhs, rhs time.Duration) bool { - return lhs < rhs -} diff --git a/vendor/github.com/go-fed/activity/streams/values/float/gen_float.go b/vendor/github.com/go-fed/activity/streams/values/float/gen_float.go deleted file mode 100644 index 7b88a6e66..000000000 --- a/vendor/github.com/go-fed/activity/streams/values/float/gen_float.go +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package float - -import "fmt" - -// SerializeFloat converts a float value to an interface representation suitable -// for marshalling into a text or binary format. -func SerializeFloat(this float64) (interface{}, error) { - return this, nil -} - -// DeserializeFloat creates float value from an interface representation that has -// been unmarshalled from a text or binary format. -func DeserializeFloat(this interface{}) (float64, error) { - if f, ok := this.(float64); ok { - return f, nil - } else { - return 0, fmt.Errorf("%v cannot be interpreted as a float64 for xsd:float", this) - } -} - -// LessFloat returns true if the left float value is less than the right value. -func LessFloat(lhs, rhs float64) bool { - return lhs < rhs -} diff --git a/vendor/github.com/go-fed/activity/streams/values/langString/gen_langString.go b/vendor/github.com/go-fed/activity/streams/values/langString/gen_langString.go deleted file mode 100644 index 12dabf187..000000000 --- a/vendor/github.com/go-fed/activity/streams/values/langString/gen_langString.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package langstring - -import ( - "fmt" - "sort" -) - -// SerializeLangString converts a langString value to an interface representation -// suitable for marshalling into a text or binary format. -func SerializeLangString(this map[string]string) (interface{}, error) { - return this, nil -} - -// DeserializeLangString creates langString value from an interface representation -// that has been unmarshalled from a text or binary format. -func DeserializeLangString(this interface{}) (map[string]string, error) { - if m, ok := this.(map[string]interface{}); ok { - r := make(map[string]string) - for k, v := range m { - if s, ok := v.(string); ok { - r[k] = s - } else { - return nil, fmt.Errorf("value %v cannot be interpreted as a string for rdf:langString", v) - } - } - return r, nil - } else { - return nil, fmt.Errorf("%v cannot be interpreted as a map[string]interface{} for rdf:langString", this) - } -} - -// LessLangString returns true if the left langString value is less than the right -// value. -func LessLangString(lhs, rhs map[string]string) bool { - var lk []string - var rk []string - for k := range lhs { - lk = append(lk, k) - } - for k := range rhs { - rk = append(rk, k) - } - sort.Strings(lk) - sort.Strings(rk) - for i := 0; i < len(lk) && i < len(rk); i++ { - if lk[i] < rk[i] { - return true - } else if rk[i] < lk[i] { - return false - } else if lhs[lk[i]] < rhs[rk[i]] { - return true - } else if rhs[rk[i]] < lhs[lk[i]] { - return false - } - } - if len(lk) < len(rk) { - return true - } else { - return false - } -} diff --git a/vendor/github.com/go-fed/activity/streams/values/nonNegativeInteger/gen_nonNegativeInteger.go b/vendor/github.com/go-fed/activity/streams/values/nonNegativeInteger/gen_nonNegativeInteger.go deleted file mode 100644 index 020c68bab..000000000 --- a/vendor/github.com/go-fed/activity/streams/values/nonNegativeInteger/gen_nonNegativeInteger.go +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package nonnegativeinteger - -import "fmt" - -// SerializeNonNegativeInteger converts a nonNegativeInteger value to an interface -// representation suitable for marshalling into a text or binary format. -func SerializeNonNegativeInteger(this int) (interface{}, error) { - return this, nil -} - -// DeserializeNonNegativeInteger creates nonNegativeInteger value from an -// interface representation that has been unmarshalled from a text or binary -// format. -func DeserializeNonNegativeInteger(this interface{}) (int, error) { - if i, ok := this.(float64); ok { - n := int(i) - if n >= 0 { - return n, nil - } else { - return 0, fmt.Errorf("%v is a negative integer for xsd:nonNegativeInteger", this) - } - } else { - return 0, fmt.Errorf("%v cannot be interpreted as a float for xsd:nonNegativeInteger", this) - } -} - -// LessNonNegativeInteger returns true if the left nonNegativeInteger value is -// less than the right value. -func LessNonNegativeInteger(lhs, rhs int) bool { - return lhs < rhs -} diff --git a/vendor/github.com/go-fed/activity/streams/values/rfc2045/gen_rfc2045.go b/vendor/github.com/go-fed/activity/streams/values/rfc2045/gen_rfc2045.go deleted file mode 100644 index cc28892c0..000000000 --- a/vendor/github.com/go-fed/activity/streams/values/rfc2045/gen_rfc2045.go +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package rfc2045 - -import "fmt" - -// SerializeRfc2045 converts a rfc2045 value to an interface representation -// suitable for marshalling into a text or binary format. -func SerializeRfc2045(this string) (interface{}, error) { - return this, nil -} - -// DeserializeRfc2045 creates rfc2045 value from an interface representation that -// has been unmarshalled from a text or binary format. -func DeserializeRfc2045(this interface{}) (string, error) { - if s, ok := this.(string); ok { - return s, nil - } else { - return "", fmt.Errorf("%v cannot be interpreted as a string for MIME media type", this) - } -} - -// LessRfc2045 returns true if the left rfc2045 value is less than the right value. -func LessRfc2045(lhs, rhs string) bool { - return lhs < rhs -} diff --git a/vendor/github.com/go-fed/activity/streams/values/rfc5988/gen_rfc5988.go b/vendor/github.com/go-fed/activity/streams/values/rfc5988/gen_rfc5988.go deleted file mode 100644 index eac2bc247..000000000 --- a/vendor/github.com/go-fed/activity/streams/values/rfc5988/gen_rfc5988.go +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package rfc5988 - -import "fmt" - -// SerializeRfc5988 converts a rfc5988 value to an interface representation -// suitable for marshalling into a text or binary format. -func SerializeRfc5988(this string) (interface{}, error) { - return this, nil -} - -// DeserializeRfc5988 creates rfc5988 value from an interface representation that -// has been unmarshalled from a text or binary format. -func DeserializeRfc5988(this interface{}) (string, error) { - if s, ok := this.(string); ok { - return s, nil - } else { - return "", fmt.Errorf("%v cannot be interpreted as a string for rel", this) - } -} - -// LessRfc5988 returns true if the left rfc5988 value is less than the right value. -func LessRfc5988(lhs, rhs string) bool { - return lhs < rhs -} diff --git a/vendor/github.com/go-fed/activity/streams/values/string/gen_string.go b/vendor/github.com/go-fed/activity/streams/values/string/gen_string.go deleted file mode 100644 index 23aee678f..000000000 --- a/vendor/github.com/go-fed/activity/streams/values/string/gen_string.go +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package string - -import "fmt" - -// SerializeString converts a string value to an interface representation suitable -// for marshalling into a text or binary format. -func SerializeString(this string) (interface{}, error) { - return this, nil -} - -// DeserializeString creates string value from an interface representation that -// has been unmarshalled from a text or binary format. -func DeserializeString(this interface{}) (string, error) { - if s, ok := this.(string); ok { - return s, nil - } else { - return "", fmt.Errorf("%v cannot be interpreted as a string for xsd:string", this) - } -} - -// LessString returns true if the left string value is less than the right value. -func LessString(lhs, rhs string) bool { - return lhs < rhs -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_doc.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_doc.go deleted file mode 100644 index c9faf499f..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_doc.go +++ /dev/null @@ -1,61 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -// Package vocab contains the interfaces for the JSONLD vocabulary. All -// applications are strongly encouraged to use these interface types instead -// of the concrete definitions contained in the implementation subpackage. -// These interfaces allow applications to consume only the types and -// properties needed and be independent of the go-fed implementation if -// another alternative implementation is created. This package is -// code-generated and subject to the same license as the go-fed tool used to -// generate it. -// -// Type interfaces contain "Get" and "Set" methods for its properties. Types -// also have a "Serialize" method to convert the type into an interface map -// for use with the json package. There is a convenience "IsExtending" method -// on each types which helps with the ActivityStreams hierarchy, which is not -// the same as object oriented inheritance. While types also have a "LessThan" -// method, it is an arbitrary sort. Do not use it if needing to sort on -// specific properties, such as publish time. It is best used for normalizing -// the type. Lastly, do not use the "GetUnknownProperties" method in an -// application. Instead, use the go-fed tool to code generate the property -// needed. -// -// Properties come in two flavors: functional and non-functional. Functional -// means that a property can have at most one value, while non-functional -// means a property could have zero, one, or more values. Any property value -// may also be an IRI, in which case the application will need to make a HTTP -// request to fetch the property value. -// -// Functional properties have "Get", "Is", and "Set" methods for determining -// what kind of value the property is, fetching that value, or setting that -// value. There is also a "Serialize" method which converts the property into -// an interface type, but applications should not typically use a property's -// "Serialize" and instead should use a type's "Serialize" instead. Like -// types, properties have an arbitrary "LessThan" comparison function that -// should not be used if needing to sort on specific values. Finally, -// applications should not use the "KindIndex" method as it is a comparison -// mechanism only for those looking to write an alternate implementation. -// -// Non-functional properties can have more than one value, so it has "Len" -// for getting its length, "At" for getting an iterator pointing to an -// element, "Append" and "Prepend" for adding values, "Remove" for removing a -// value, "Set" for overwriting a value, and "Swap" for swapping two values' -// indices. Note that a non-functional property satisfies the sort interface, -// but it results in an arbitrary but stable ordering best used as a -// normalized form. A non-functional property's iterator looks like a -// functional property with "Next" and "Previous" methods. Applications should -// not use the "KindIndex" methods as it is a comparison mechanism only for -// those looking to write an alternate implementation of this library. -// -// Types and properties have a "JSONLDContext" method that returns a mapping -// of vocabulary URIs to aliases that are required in the JSON-LD @context -// when serializing this value. The aliases used by this library when -// serializing objects is done at code-generation time, unless a different -// alias was used to deserialize the type or property. -// -// Types, functional properties, and non-functional properties are not -// designed for concurrent usage by two or more goroutines. Also, certain -// methods on a non-functional property will invalidate iterators and possibly -// cause unexpected behaviors. To avoid this, re-obtain an iterator after -// modifying a non-functional property. -package vocab diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_pkg.go deleted file mode 100644 index 1dd72c0d6..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_pkg.go +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Type represents an ActivityStreams type. -type Type interface { - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetTypeName returns the ActivityStreams type name. - GetTypeName() string - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetJSONLDId sets the "id" property. - SetJSONLDId(JSONLDIdProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_accuracy_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_accuracy_interface.go deleted file mode 100644 index 1a5671268..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_accuracy_interface.go +++ /dev/null @@ -1,62 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Indicates the accuracy of position coordinates on a Place objects. Expressed in -// properties of percentage. e.g. "94.0" means "94.0% accurate". -// -// Example 112 (https://www.w3.org/TR/activitystreams-vocabulary/#ex127-jsonld): -// { -// "accuracy": 94.5, -// "latitude": 36.75, -// "longitude": 119.7667, -// "name": "Liu Gu Lu Cun, Pingdu, Qingdao, Shandong, China", -// "type": "Place" -// } -type ActivityStreamsAccuracyProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaFloat afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaFloat returns - // false, Get will return any arbitrary value. - Get() float64 - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaFloat returns true if this property is set and not an IRI. - IsXMLSchemaFloat() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAccuracyProperty) bool - // Name returns the name of this property: "accuracy". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaFloat - // afterwards will return true. - Set(v float64) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_actor_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_actor_interface.go deleted file mode 100644 index f72626e3c..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_actor_interface.go +++ /dev/null @@ -1,1813 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsActorPropertyIterator represents a single value for the "actor" -// property. -type ActivityStreamsActorPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsActorPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsActor". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsActorPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsActorPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Describes one or more entities that either performed or are expected to perform -// the activity. Any single activity can have multiple actors. The actor MAY -// be specified using an indirect Link. -// -// Example 63 (https://www.w3.org/TR/activitystreams-vocabulary/#ex59-jsonld): -// { -// "actor": "http://sally.example.org", -// "object": "http://example.org/foo", -// "summary": "Sally offered the Foo object", -// "type": "Offer" -// } -// -// Example 64 (https://www.w3.org/TR/activitystreams-vocabulary/#ex60-jsonld): -// { -// "actor": { -// "id": "http://sally.example.org", -// "summary": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/foo", -// "summary": "Sally offered the Foo object", -// "type": "Offer" -// } -// -// Example 65 (https://www.w3.org/TR/activitystreams-vocabulary/#ex61-jsonld): -// { -// "actor": [ -// "http://joe.example.org", -// { -// "id": "http://sally.example.org", -// "name": "Sally", -// "type": "Person" -// } -// ], -// "object": "http://example.org/foo", -// "summary": "Sally and Joe offered the Foo object", -// "type": "Offer" -// } -type ActivityStreamsActorProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "actor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "actor". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "actor". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "actor". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "actor". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "actor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "actor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "actor". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "actor". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "actor". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "actor". Invalidates iterators that - // are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "actor" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "actor". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "actor". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "actor". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsActorPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsActorPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsActorPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "actor". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "actor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "actor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "actor". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "actor". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "actor". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "actor". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "actor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "actor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "actor". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "actor". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "actor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "actor". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "actor". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "actor". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "actor". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "actor". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "actor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "actor". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "actor". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "actor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "actor". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "actor" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsActorProperty) bool - // Name returns the name of this property ("actor") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "actor". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "actor". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "actor". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "actor". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "actor". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "actor". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "actor". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "actor". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "actor". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "actor". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "actor". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "actor". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "actor". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "actor". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "actor". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "actor". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "actor". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "actor". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "actor", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "actor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "actor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "actor". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "actor". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "actor". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "actor". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "actor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "actor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "actor". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "actor". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "actor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "actor". Panics if the index is out of bounds. Invalidates - // all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "actor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "actor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "actor". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "actor". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "actor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "actor". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "actor" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_altitude_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_altitude_interface.go deleted file mode 100644 index 95fe1d344..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_altitude_interface.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Indicates the altitude of a place. The measurement units is indicated using the -// units property. If units is not specified, the default is assumed to be "m" -// indicating meters. -// -// Example 113 (https://www.w3.org/TR/activitystreams-vocabulary/#ex129-jsonld): -// { -// "altitude": 15, -// "latitude": 36.75, -// "longitude": 119.7667, -// "name": "Fresno Area", -// "type": "Place", -// "units": "miles" -// } -type ActivityStreamsAltitudeProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaFloat afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaFloat returns - // false, Get will return any arbitrary value. - Get() float64 - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaFloat returns true if this property is set and not an IRI. - IsXMLSchemaFloat() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAltitudeProperty) bool - // Name returns the name of this property: "altitude". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaFloat - // afterwards will return true. - Set(v float64) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go deleted file mode 100644 index eb4332f49..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go +++ /dev/null @@ -1,1794 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsAnyOfPropertyIterator represents a single value for the "anyOf" -// property. -type ActivityStreamsAnyOfPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAnyOfPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsAnyOf". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsAnyOfPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsAnyOfPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies an inclusive option for a Question. Use of anyOf implies that the -// Question can have multiple answers. To indicate that a Question can have -// only one answer, use oneOf. -// -// Example 92 (https://www.w3.org/TR/activitystreams-vocabulary/#ex94-jsonld): -// { -// "anyOf": [ -// { -// "name": "Option A", -// "type": "Note" -// }, -// { -// "name": "Option B", -// "type": "Note" -// } -// ], -// "name": "What is the answer?", -// "type": "Question" -// } -type ActivityStreamsAnyOfProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "anyOf". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "anyOf". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "anyOf". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "anyOf". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "anyOf". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "anyOf". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "anyOf". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "anyOf". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "anyOf". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "anyOf". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "anyOf". Invalidates iterators that - // are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "anyOf" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "anyOf". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "anyOf". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "anyOf". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsAnyOfPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsAnyOfPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsAnyOfPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "anyOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "anyOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "anyOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "anyOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "anyOf". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "anyOf". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "anyOf". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "anyOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "anyOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "anyOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "anyOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "anyOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "anyOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "anyOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "anyOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "anyOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "anyOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "anyOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "anyOf". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "anyOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "anyOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "anyOf". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "anyOf" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAnyOfProperty) bool - // Name returns the name of this property ("anyOf") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "anyOf". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "anyOf". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "anyOf". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "anyOf". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "anyOf". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "anyOf". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "anyOf". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "anyOf". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "anyOf". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "anyOf". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "anyOf". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "anyOf". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "anyOf". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "anyOf". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "anyOf". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "anyOf". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "anyOf". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "anyOf", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "anyOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "anyOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "anyOf". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "anyOf". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "anyOf". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "anyOf". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "anyOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "anyOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "anyOf". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "anyOf". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "anyOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "anyOf". Panics if the index is out of bounds. Invalidates - // all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "anyOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "anyOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "anyOf". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "anyOf". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "anyOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "anyOf". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "anyOf" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go deleted file mode 100644 index 2773f9130..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go +++ /dev/null @@ -1,1800 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsAttachmentPropertyIterator represents a single value for the -// "attachment" property. -type ActivityStreamsAttachmentPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAttachmentPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsAttachment". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsAttachmentPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsAttachmentPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies a resource attached or related to an object that potentially -// requires special handling. The intent is to provide a model that is at -// least semantically similar to attachments in email. -// -// Example 66 (https://www.w3.org/TR/activitystreams-vocabulary/#ex64-jsonld): -// { -// "attachment": { -// "content": "This is what he looks like.", -// "type": "Image", -// "url": "http://example.org/cat.jpeg" -// }, -// "name": "Have you seen my cat?", -// "type": "Note" -// } -type ActivityStreamsAttachmentProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "attachment". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "attachment". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "attachment". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "attachment". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "attachment". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "attachment". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "attachment". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "attachment". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "attachment". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "attachment". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "attachment". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "attachment". Invalidates iterators - // that are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "attachment" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "attachment". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "attachment". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "attachment". Invalidates iterators that are - // traversing using Prev. Returns an error if the type is not a valid - // one to set for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsAttachmentPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsAttachmentPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsAttachmentPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "attachment". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "attachment". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "attachment". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "attachment". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "attachment". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "attachment". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "attachment". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "attachment". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "attachment". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "attachment". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "attachment". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "attachment". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "attachment". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "attachment". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "attachment". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "attachment". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "attachment". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "attachment". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "attachment". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "attachment". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "attachment". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "attachment". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "attachment" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAttachmentProperty) bool - // Name returns the name of this property ("attachment") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "attachment". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "attachment". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "attachment". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "attachment". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "attachment". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "attachment". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "attachment". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "attachment". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "attachment". Invalidates - // all iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "attachment". Invalidates - // all iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "attachment". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "attachment". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "attachment". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "attachment". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "attachment". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "attachment". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "attachment". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "attachment". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "attachment". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "attachment". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "attachment". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "attachment", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "attachment". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "attachment". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "attachment". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "attachment". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "attachment". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "attachment". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "attachment". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "attachment". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "attachment". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "attachment". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "attachment". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "attachment". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "attachment". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "attachment". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "attachment". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "attachment". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "attachment". Panics if the index - // is out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "attachment". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "attachment". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "attachment". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "attachment". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. Panics if - // the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "attachment" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go deleted file mode 100644 index 21fc973c4..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go +++ /dev/null @@ -1,1816 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsAttributedToPropertyIterator represents a single value for the -// "attributedTo" property. -type ActivityStreamsAttributedToPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAttributedToPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsAttributedTo". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsAttributedToPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsAttributedToPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies one or more entities to which this object is attributed. The -// attributed entities might not be Actors. For instance, an object might be -// attributed to the completion of another activity. -// -// Example 67 (https://www.w3.org/TR/activitystreams-vocabulary/#ex65-jsonld): -// { -// "attributedTo": { -// "name": "Sally", -// "type": "Person" -// }, -// "name": "My cat taking a nap", -// "type": "Image", -// "url": "http://example.org/cat.jpeg" -// } -// -// Example 68 (https://www.w3.org/TR/activitystreams-vocabulary/#ex66-jsonld): -// { -// "attributedTo": [ -// "http://joe.example.org", -// { -// "name": "Sally", -// "type": "Person" -// } -// ], -// "name": "My cat taking a nap", -// "type": "Image", -// "url": "http://example.org/cat.jpeg" -// } -type ActivityStreamsAttributedToProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "attributedTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "attributedTo". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "attributedTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "attributedTo". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "attributedTo". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "attributedTo". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "attributedTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "attributedTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "attributedTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "attributedTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "attributedTo". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "attributedTo". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "attributedTo". Invalidates - // iterators that are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "attributedTo" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "attributedTo". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "attributedTo". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "attributedTo". Invalidates iterators that are - // traversing using Prev. Returns an error if the type is not a valid - // one to set for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsAttributedToPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsAttributedToPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsAttributedToPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "attributedTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "attributedTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "attributedTo". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "attributedTo". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "attributedTo". - // Existing elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "attributedTo". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "attributedTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "attributedTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "attributedTo". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "attributedTo". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "attributedTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "attributedTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "attributedTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "attributedTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "attributedTo". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "attributedTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "attributedTo". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "attributedTo". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "attributedTo" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAttributedToProperty) bool - // Name returns the name of this property ("attributedTo") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "attributedTo". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "attributedTo". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "attributedTo". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "attributedTo". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "attributedTo". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "attributedTo". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "attributedTo". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "attributedTo". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "attributedTo". Invalidates - // all iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "attributedTo". Invalidates - // all iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "attributedTo". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "attributedTo". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "attributedTo". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "attributedTo". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "attributedTo". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "attributedTo". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "attributedTo". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "attributedTo". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "attributedTo". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "attributedTo". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "attributedTo". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "attributedTo", regardless of its type. Panics if the - // index is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "attributedTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "attributedTo". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "attributedTo". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "attributedTo". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "attributedTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "attributedTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "attributedTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "attributedTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "attributedTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "attributedTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "attributedTo". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "attributedTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "attributedTo". Panics if the index is out - // of bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "attributedTo". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - // Panics if the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "attributedTo" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_audience_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_audience_interface.go deleted file mode 100644 index 4cab35481..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_audience_interface.go +++ /dev/null @@ -1,1799 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsAudiencePropertyIterator represents a single value for the -// "audience" property. -type ActivityStreamsAudiencePropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAudiencePropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsAudience". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsAudiencePropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsAudiencePropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies one or more entities that represent the total population of entities -// for which the object can considered to be relevant. -// -// Example 69 (https://www.w3.org/TR/activitystreams-vocabulary/#ex113-jsonld): -// { -// "audience": { -// "name": "ExampleCo LLC", -// "type": "http://example.org/Organization" -// }, -// "content": "Thursday will be a company-wide holiday. Enjoy your day -// off!", -// "name": "Holiday announcement", -// "type": "Note" -// } -type ActivityStreamsAudienceProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "audience". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "audience". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "audience". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "audience". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "audience". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "audience". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "audience". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "audience". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "audience". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "audience". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "audience". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "audience". Invalidates iterators - // that are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "audience" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "audience". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "audience". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "audience". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsAudiencePropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsAudiencePropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsAudiencePropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "audience". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "audience". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "audience". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "audience". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "audience". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "audience". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "audience". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "audience". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "audience". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "audience". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "audience". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "audience". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "audience". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "audience". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "audience" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsAudienceProperty) bool - // Name returns the name of this property ("audience") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "audience". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "audience". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "audience". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "audience". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "audience". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "audience". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "audience". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "audience". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "audience". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "audience". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "audience". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "audience". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "audience". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "audience". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "audience". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "audience". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "audience". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "audience". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "audience". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "audience". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "audience". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "audience". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "audience", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "audience". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "audience". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "audience". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "audience". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "audience". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "audience". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "audience". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "audience". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "audience". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "audience". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "audience". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "audience". Panics if the index is - // out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "audience". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "audience". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "audience". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "audience". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "audience" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go deleted file mode 100644 index 8ba50913c..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go +++ /dev/null @@ -1,1783 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsBccPropertyIterator represents a single value for the "bcc" -// property. -type ActivityStreamsBccPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsBccPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsBcc". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsBccPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsBccPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies one or more Objects that are part of the private secondary audience -// of this Object. -// -// Example 70 (https://www.w3.org/TR/activitystreams-vocabulary/#ex68-jsonld): -// { -// "actor": "http://sally.example.org", -// "bcc": "http://joe.example.org", -// "object": "http://example.org/posts/1", -// "summary": "Sally offered a post to John", -// "target": "http://john.example.org", -// "type": "Offer" -// } -type ActivityStreamsBccProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "bcc". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "bcc". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "bcc". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "bcc". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "bcc". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "bcc". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "bcc". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "bcc". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "bcc". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "bcc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "bcc". Invalidates iterators that - // are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "bcc" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "bcc". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "bcc". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "bcc". Invalidates iterators that are traversing using - // Prev. Returns an error if the type is not a valid one to set for - // this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsBccPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsBccPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsBccPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "bcc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "bcc". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "bcc". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "bcc". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "bcc". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "bcc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "bcc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "bcc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "bcc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "bcc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "bcc". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "bcc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "bcc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "bcc". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "bcc" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsBccProperty) bool - // Name returns the name of this property ("bcc") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "bcc". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "bcc". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "bcc". Invalidates all - // iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "bcc". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "bcc". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "bcc". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "bcc". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "bcc". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "bcc". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "bcc". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "bcc". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "bcc". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "bcc". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "bcc". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "bcc". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "bcc". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "bcc". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "bcc", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "bcc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "bcc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "bcc". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "bcc". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "bcc". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "bcc". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "bcc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "bcc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "bcc". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "bcc". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "bcc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "bcc". Panics if the index is out of bounds. Invalidates - // all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "bcc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "bcc". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "bcc". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "bcc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "bcc". Invalidates all iterators. Returns an error if the - // type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "bcc" property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_bto_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_bto_interface.go deleted file mode 100644 index db61aac22..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_bto_interface.go +++ /dev/null @@ -1,1783 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsBtoPropertyIterator represents a single value for the "bto" -// property. -type ActivityStreamsBtoPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsBtoPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsBto". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsBtoPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsBtoPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies an Object that is part of the private primary audience of this -// Object. -// -// Example 71 (https://www.w3.org/TR/activitystreams-vocabulary/#ex69-jsonld): -// { -// "actor": "http://sally.example.org", -// "bto": "http://joe.example.org", -// "object": "http://example.org/posts/1", -// "summary": "Sally offered a post to John", -// "target": "http://john.example.org", -// "type": "Offer" -// } -type ActivityStreamsBtoProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "bto". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "bto". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "bto". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "bto". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "bto". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "bto". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "bto". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "bto". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "bto". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "bto". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "bto". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "bto". Invalidates iterators that - // are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "bto" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "bto". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "bto". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "bto". Invalidates iterators that are traversing using - // Prev. Returns an error if the type is not a valid one to set for - // this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsBtoPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsBtoPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsBtoPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "bto". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "bto". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "bto". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "bto". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "bto". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "bto". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "bto". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "bto". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "bto". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "bto". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "bto". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "bto". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "bto". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "bto". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "bto" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsBtoProperty) bool - // Name returns the name of this property ("bto") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "bto". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "bto". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "bto". Invalidates all - // iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "bto". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "bto". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "bto". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "bto". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "bto". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "bto". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "bto". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "bto". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "bto". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "bto". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "bto". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "bto". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "bto". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "bto". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "bto". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "bto", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "bto". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "bto". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "bto". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "bto". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "bto". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "bto". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "bto". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "bto". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "bto". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "bto". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "bto". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "bto". Panics if the index is out of bounds. Invalidates - // all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "bto". Panics if the index is out - // of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "bto". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "bto". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "bto". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "bto". Invalidates all iterators. Returns an error if the - // type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "bto" property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_cc_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_cc_interface.go deleted file mode 100644 index 121769e0f..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_cc_interface.go +++ /dev/null @@ -1,1779 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsCcPropertyIterator represents a single value for the "cc" -// property. -type ActivityStreamsCcPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsCcPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsCc". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsCcPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsCcPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies an Object that is part of the public secondary audience of this -// Object. -// -// Example 72 (https://www.w3.org/TR/activitystreams-vocabulary/#ex70-jsonld): -// { -// "actor": "http://sally.example.org", -// "cc": "http://joe.example.org", -// "object": "http://example.org/posts/1", -// "summary": "Sally offered a post to John", -// "target": "http://john.example.org", -// "type": "Offer" -// } -type ActivityStreamsCcProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "cc". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "cc". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "cc". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "cc". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "cc". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "cc". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "cc". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "cc". Invalidates iterators that are traversing using Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "cc" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "cc". Invalidates iterators that are traversing using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "cc". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "cc". Invalidates iterators that are traversing using - // Prev. Returns an error if the type is not a valid one to set for - // this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsCcPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsCcPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsCcPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "cc". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "cc". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "cc". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "cc". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property "cc". - // Existing elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "cc". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "cc". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "cc". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "cc" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsCcProperty) bool - // Name returns the name of this property ("cc") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "cc". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "cc". Invalidates all - // iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "cc". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "cc". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "cc". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "cc". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "cc". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "cc". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "cc". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "cc". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "cc". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "cc". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "cc". Invalidates all iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "cc". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "cc". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "cc". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "cc". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "cc", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "cc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "cc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "cc". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "cc". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "cc". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "cc". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "cc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "cc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "cc". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "cc". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "cc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "cc". Panics if the index is out of bounds. Invalidates - // all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "cc". Panics if the index is out - // of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "cc". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "cc". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "cc". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "cc". Invalidates all iterators. Returns an error if the - // type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "cc" property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_closed_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_closed_interface.go deleted file mode 100644 index d76858c2e..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_closed_interface.go +++ /dev/null @@ -1,1838 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import ( - "net/url" - "time" -) - -// ActivityStreamsClosedPropertyIterator represents a single value for the -// "closed" property. -type ActivityStreamsClosedPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // GetXMLSchemaBoolean returns the value of this property. When - // IsXMLSchemaBoolean returns false, GetXMLSchemaBoolean will return - // an arbitrary value. - GetXMLSchemaBoolean() bool - // GetXMLSchemaDateTime returns the value of this property. When - // IsXMLSchemaDateTime returns false, GetXMLSchemaDateTime will return - // an arbitrary value. - GetXMLSchemaDateTime() time.Time - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // IsXMLSchemaBoolean returns true if this property has a type of - // "boolean". When true, use the GetXMLSchemaBoolean and - // SetXMLSchemaBoolean methods to access and set this property. - IsXMLSchemaBoolean() bool - // IsXMLSchemaDateTime returns true if this property has a type of - // "dateTime". When true, use the GetXMLSchemaDateTime and - // SetXMLSchemaDateTime methods to access and set this property. - IsXMLSchemaDateTime() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsClosedPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsClosed". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsClosedPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsClosedPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error - // SetXMLSchemaBoolean sets the value of this property. Calling - // IsXMLSchemaBoolean afterwards returns true. - SetXMLSchemaBoolean(v bool) - // SetXMLSchemaDateTime sets the value of this property. Calling - // IsXMLSchemaDateTime afterwards returns true. - SetXMLSchemaDateTime(v time.Time) -} - -// Indicates that a question has been closed, and answers are no longer accepted. -// -// Example 93 (https://www.w3.org/TR/activitystreams-vocabulary/#ex94b-jsonld): -// { -// "closed": "2016-05-10T00:00:00Z", -// "name": "What is the answer?", -// "type": "Question" -// } -type ActivityStreamsClosedProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "closed". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "closed". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "closed". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "closed". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "closed". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "closed". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "closed". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "closed". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "closed". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "closed". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "closed". Invalidates iterators that - // are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "closed" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "closed". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "closed". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // AppendXMLSchemaBoolean appends a boolean value to the back of a list of - // the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendXMLSchemaBoolean(v bool) - // AppendXMLSchemaDateTime appends a dateTime value to the back of a list - // of the property "closed". Invalidates iterators that are traversing - // using Prev. - AppendXMLSchemaDateTime(v time.Time) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsClosedPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsClosedPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsClosedPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "closed". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "closed". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "closed". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "closed". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "closed". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "closed". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "closed". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "closed". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "closed". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "closed". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "closed". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "closed". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "closed". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "closed". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "closed". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "closed". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "closed". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "closed". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "closed". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "closed". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "closed". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // InsertXMLSchemaBoolean inserts a boolean value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertXMLSchemaBoolean(idx int, v bool) - // InsertXMLSchemaDateTime inserts a dateTime value at the specified index - // for a property "closed". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertXMLSchemaDateTime(idx int, v time.Time) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "closed" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsClosedProperty) bool - // Name returns the name of this property ("closed") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "closed". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "closed". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "closed". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "closed". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "closed". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "closed". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "closed". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "closed". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "closed". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "closed". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "closed". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "closed". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "closed". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "closed". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "closed". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "closed". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // PrependXMLSchemaBoolean prepends a boolean value to the front of a list - // of the property "closed". Invalidates all iterators. - PrependXMLSchemaBoolean(v bool) - // PrependXMLSchemaDateTime prepends a dateTime value to the front of a - // list of the property "closed". Invalidates all iterators. - PrependXMLSchemaDateTime(v time.Time) - // Remove deletes an element at the specified index from a list of the - // property "closed", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "closed". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "closed". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "closed". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "closed". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "closed". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "closed". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "closed". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "closed". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "closed". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "closed". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "closed". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "closed". Panics if the index is - // out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "closed". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "closed". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "closed". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // SetXMLSchemaBoolean sets a boolean value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaBoolean(idx int, v bool) - // SetXMLSchemaDateTime sets a dateTime value to be at the specified index - // for the property "closed". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaDateTime(idx int, v time.Time) - // Swap swaps the location of values at two indices for the "closed" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_content_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_content_interface.go deleted file mode 100644 index c7ca5caff..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_content_interface.go +++ /dev/null @@ -1,208 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsContentPropertyIterator represents a single value for the -// "content" property. -type ActivityStreamsContentPropertyIterator interface { - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetLanguage returns the value for the specified BCP47 language code, or - // an empty string if it is either not a language map or no value is - // present. - GetLanguage(bcp47 string) string - // GetRDFLangString returns the value of this property. When - // IsRDFLangString returns false, GetRDFLangString will return an - // arbitrary value. - GetRDFLangString() map[string]string - // GetXMLSchemaString returns the value of this property. When - // IsXMLSchemaString returns false, GetXMLSchemaString will return an - // arbitrary value. - GetXMLSchemaString() string - // HasAny returns true if any of the values are set, except for the - // natural language map. When true, the specific has, getter, and - // setter methods may be used to determine what kind of value there is - // to access and set this property. To determine if the property was - // set as a natural language map, use the IsRDFLangString method - // instead. - HasAny() bool - // HasLanguage returns true if the natural language map has an entry for - // the specified BCP47 language code. - HasLanguage(bcp47 string) bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsRDFLangString returns true if this property has a type of - // "langString". When true, use the GetRDFLangString and - // SetRDFLangString methods to access and set this property.. To - // determine if the property was set as a natural language map, use - // the IsRDFLangString method instead. - IsRDFLangString() bool - // IsXMLSchemaString returns true if this property has a type of "string". - // When true, use the GetXMLSchemaString and SetXMLSchemaString - // methods to access and set this property.. To determine if the - // property was set as a natural language map, use the IsRDFLangString - // method instead. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsContentPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsContent". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsContentPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsContentPropertyIterator - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetLanguage sets the value for the specified BCP47 language code. - SetLanguage(bcp47, value string) - // SetRDFLangString sets the value of this property and clears the natural - // language map. Calling IsRDFLangString afterwards will return true. - // Calling IsRDFLangString afterwards returns false. - SetRDFLangString(v map[string]string) - // SetXMLSchemaString sets the value of this property and clears the - // natural language map. Calling IsXMLSchemaString afterwards will - // return true. Calling IsRDFLangString afterwards returns false. - SetXMLSchemaString(v string) -} - -// The content or textual representation of the Object encoded as a JSON string. -// By default, the value of content is HTML. The mediaType property can be -// used in the object to indicate a different content type. The content MAY be -// expressed using multiple language-tagged values. -// -// Example 114 (https://www.w3.org/TR/activitystreams-vocabulary/#ex130-jsonld): -// { -// "content": "A \u003cem\u003esimple\u003c/em\u003e note", -// "summary": "A simple note", -// "type": "Note" -// } -// -// Example 115 (https://www.w3.org/TR/activitystreams-vocabulary/#ex131-jsonld): -// { -// "contentMap": { -// "en": "A \u003cem\u003esimple\u003c/em\u003e note", -// "es": "Una nota \u003cem\u003esencilla\u003c/em\u003e", -// "zh-hans": "一段\u003cem\u003e简单的\u003c/em\u003e笔记" -// }, -// "summary": "A simple note", -// "type": "Note" -// } -// -// Example 116 (https://www.w3.org/TR/activitystreams-vocabulary/#ex130b-jsonld): -// { -// "content": "## A simple note\nA simple markdown `note`", -// "mediaType": "text/markdown", -// "summary": "A simple note", -// "type": "Note" -// } -type ActivityStreamsContentProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "content" - AppendIRI(v *url.URL) - // AppendRDFLangString appends a langString value to the back of a list of - // the property "content". Invalidates iterators that are traversing - // using Prev. - AppendRDFLangString(v map[string]string) - // AppendXMLSchemaString appends a string value to the back of a list of - // the property "content". Invalidates iterators that are traversing - // using Prev. - AppendXMLSchemaString(v string) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsContentPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsContentPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsContentPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "content". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertRDFLangString inserts a langString value at the specified index - // for a property "content". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertRDFLangString(idx int, v map[string]string) - // InsertXMLSchemaString inserts a string value at the specified index for - // a property "content". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertXMLSchemaString(idx int, v string) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "content" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsContentProperty) bool - // Name returns the name of this property ("content") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "content". - PrependIRI(v *url.URL) - // PrependRDFLangString prepends a langString value to the front of a list - // of the property "content". Invalidates all iterators. - PrependRDFLangString(v map[string]string) - // PrependXMLSchemaString prepends a string value to the front of a list - // of the property "content". Invalidates all iterators. - PrependXMLSchemaString(v string) - // Remove deletes an element at the specified index from a list of the - // property "content", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetIRI sets an IRI value to be at the specified index for the property - // "content". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetRDFLangString sets a langString value to be at the specified index - // for the property "content". Panics if the index is out of bounds. - // Invalidates all iterators. - SetRDFLangString(idx int, v map[string]string) - // SetXMLSchemaString sets a string value to be at the specified index for - // the property "content". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaString(idx int, v string) - // Swap swaps the location of values at two indices for the "content" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_context_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_context_interface.go deleted file mode 100644 index f3c9aacdf..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_context_interface.go +++ /dev/null @@ -1,1805 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsContextPropertyIterator represents a single value for the -// "context" property. -type ActivityStreamsContextPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsContextPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsContext". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsContextPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsContextPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies the context within which the object exists or an activity was -// performed. The notion of "context" used is intentionally vague. The -// intended function is to serve as a means of grouping objects and activities -// that share a common originating context or purpose. An example could be all -// activities relating to a common project or event. -// -// Example 73 (https://www.w3.org/TR/activitystreams-vocabulary/#ex171-jsonld): -// { -// "items": [ -// { -// "actor": "http://sally.example.org", -// "context": "http://example.org/contexts/1", -// "object": "http://example.org/posts/1", -// "target": "http://john.example.org", -// "type": "Offer" -// }, -// { -// "actor": "http://joe.example.org", -// "context": "http://example.org/contexts/1", -// "object": "http://example.org/posts/2", -// "type": "Like" -// } -// ], -// "summary": "Activities in context 1", -// "type": "Collection" -// } -type ActivityStreamsContextProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "context". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "context". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "context". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "context". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "context". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "context". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "context". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "context". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "context". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "context". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "context". Invalidates iterators - // that are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "context" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "context". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "context". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "context". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsContextPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsContextPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsContextPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "context". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "context". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "context". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "context". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "context". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "context". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "context". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "context". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "context". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "context". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "context". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "context". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "context". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "context". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "context". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "context". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "context". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "context". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "context". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "context". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "context". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "context" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsContextProperty) bool - // Name returns the name of this property ("context") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "context". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "context". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "context". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "context". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "context". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "context". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "context". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "context". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "context". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "context". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "context". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "context". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "context". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "context". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "context". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "context". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "context". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "context". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "context". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "context". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "context". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "context". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "context". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "context". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "context". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "context". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "context". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "context". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "context". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "context". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "context". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "context". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "context", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "context". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "context". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "context". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "context". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "context". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "context". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "context". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "context". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "context". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "context". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "context". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "context". Panics if the index is - // out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "context". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "context". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "context". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "context". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "context" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_current_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_current_interface.go deleted file mode 100644 index f866e5b4e..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_current_interface.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// In a paged Collection, indicates the page that contains the most recently -// updated member items. -// -// Example 74 (https://www.w3.org/TR/activitystreams-vocabulary/#ex71-jsonld): -// { -// "current": "http://example.org/collection", -// "items": [ -// "http://example.org/posts/1", -// "http://example.org/posts/2", -// "http://example.org/posts/3" -// ], -// "summary": "Sally's blog posts", -// "totalItems": 3, -// "type": "Collection" -// } -// -// Example 75 (https://www.w3.org/TR/activitystreams-vocabulary/#ex72-jsonld): -// { -// "current": { -// "summary": "Most Recent Items", -// "type": "owl:Class", -// "url": "http://example.org/collection" -// }, -// "items": [ -// "http://example.org/posts/1", -// "http://example.org/posts/2", -// "http://example.org/posts/3" -// ], -// "summary": "Sally's blog posts", -// "totalItems": 3, -// "type": "Collection" -// } -type ActivityStreamsCurrentProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsCurrentProperty) bool - // Name returns the name of this property: "current". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_deleted_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_deleted_interface.go deleted file mode 100644 index 3ea99ed29..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_deleted_interface.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import ( - "net/url" - "time" -) - -// On a Tombstone object, the deleted property is a timestamp for when the object -// was deleted. -// -// Example 143 (https://www.w3.org/TR/activitystreams-vocabulary/#ex185c-jsonld): -// { -// "deleted": "2016-05-03T00:00:00Z", -// "summary": "This image has been deleted", -// "type": "Tombstone" -// } -type ActivityStreamsDeletedProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaDateTime afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaDateTime - // returns false, Get will return any arbitrary value. - Get() time.Time - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaDateTime returns true if this property is set and not an IRI. - IsXMLSchemaDateTime() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsDeletedProperty) bool - // Name returns the name of this property: "deleted". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaDateTime - // afterwards will return true. - Set(v time.Time) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_describes_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_describes_interface.go deleted file mode 100644 index 777dc1218..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_describes_interface.go +++ /dev/null @@ -1,743 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// On a Profile object, the describes property identifies the object described by -// the Profile. -// -// Example 141 (https://www.w3.org/TR/activitystreams-vocabulary/#ex185-jsonld): -// { -// "describes": { -// "name": "Sally", -// "type": "Person" -// }, -// "summary": "Sally's profile", -// "type": "Profile", -// "url": "http://sally.example.org" -// } -type ActivityStreamsDescribesProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsDescribesProperty) bool - // Name returns the name of this property: "describes". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_duration_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_duration_interface.go deleted file mode 100644 index e7ad69e8a..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_duration_interface.go +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import ( - "net/url" - "time" -) - -// When the object describes a time-bound resource, such as an audio or video, a -// meeting, etc, the duration property indicates the object's approximate -// duration. The value MUST be expressed as an xsd:duration as defined by -// [xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented -// as "PT5S"). -// -// Example 119 (https://www.w3.org/TR/activitystreams-vocabulary/#ex134-jsonld): -// { -// "duration": "PT2H", -// "name": "Birds Flying", -// "type": "Video", -// "url": "http://example.org/video.mkv" -// } -type ActivityStreamsDurationProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaDuration afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaDuration - // returns false, Get will return any arbitrary value. - Get() time.Duration - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaDuration returns true if this property is set and not an IRI. - IsXMLSchemaDuration() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsDurationProperty) bool - // Name returns the name of this property: "duration". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaDuration - // afterwards will return true. - Set(v time.Duration) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_endTime_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_endTime_interface.go deleted file mode 100644 index a89c8414b..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_endTime_interface.go +++ /dev/null @@ -1,65 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import ( - "net/url" - "time" -) - -// The date and time describing the actual or expected ending time of the object. -// When used with an Activity object, for instance, the endTime property -// specifies the moment the activity concluded or is expected to conclude. -// -// Example 127 (https://www.w3.org/TR/activitystreams-vocabulary/#ex144-jsonld): -// { -// "endTime": "2015-01-01T06:00:00-08:00", -// "name": "Going-Away Party for Jim", -// "startTime": "2014-12-31T23:00:00-08:00", -// "type": "Event" -// } -type ActivityStreamsEndTimeProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaDateTime afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaDateTime - // returns false, Get will return any arbitrary value. - Get() time.Time - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaDateTime returns true if this property is set and not an IRI. - IsXMLSchemaDateTime() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsEndTimeProperty) bool - // Name returns the name of this property: "endTime". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaDateTime - // afterwards will return true. - Set(v time.Time) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_first_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_first_interface.go deleted file mode 100644 index 4c5ddc1c8..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_first_interface.go +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// In a paged Collection, indicates the furthest preceeding page of items in the -// collection. -// -// Example 76 (https://www.w3.org/TR/activitystreams-vocabulary/#ex73-jsonld): -// { -// "first": "http://example.org/collection?page=0", -// "summary": "Sally's blog posts", -// "totalItems": 3, -// "type": "Collection" -// } -// -// Example 77 (https://www.w3.org/TR/activitystreams-vocabulary/#ex74-jsonld): -// { -// "first": { -// "summary": "First Page", -// "type": "owl:Class", -// "url": "http://example.org/collection?page=0" -// }, -// "summary": "Sally's blog posts", -// "totalItems": 3, -// "type": "Collection" -// } -type ActivityStreamsFirstProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsFirstProperty) bool - // Name returns the name of this property: "first". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_followers_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_followers_interface.go deleted file mode 100644 index 76fa32a4b..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_followers_interface.go +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// A link to an ActivityStreams collection of the actors that follow this actor -// -// Example 9 (https://www.w3.org/TR/activitypub/#example9): -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// { -// "@language": "ja" -// } -// ], -// "followers": "https://kenzoishii.example.com/followers.json", -// "following": "https://kenzoishii.example.com/following.json", -// "icon": [ -// "https://kenzoishii.example.com/image/165987aklre4" -// ], -// "id": "https://kenzoishii.example.com/", -// "inbox": "https://kenzoishii.example.com/inbox.json", -// "liked": "https://kenzoishii.example.com/liked.json", -// "name": "石井健蔵", -// "outbox": "https://kenzoishii.example.com/feed.json", -// "preferredUsername": "kenzoishii", -// "summary": "この方はただの例です", -// "type": "Person" -// } -type ActivityStreamsFollowersProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsFollowersProperty) bool - // Name returns the name of this property: "followers". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_following_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_following_interface.go deleted file mode 100644 index c4fe861ca..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_following_interface.go +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// A link to an ActivityStreams collection of the actors that this actor is -// following -// -// Example 9 (https://www.w3.org/TR/activitypub/#example9): -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// { -// "@language": "ja" -// } -// ], -// "followers": "https://kenzoishii.example.com/followers.json", -// "following": "https://kenzoishii.example.com/following.json", -// "icon": [ -// "https://kenzoishii.example.com/image/165987aklre4" -// ], -// "id": "https://kenzoishii.example.com/", -// "inbox": "https://kenzoishii.example.com/inbox.json", -// "liked": "https://kenzoishii.example.com/liked.json", -// "name": "石井健蔵", -// "outbox": "https://kenzoishii.example.com/feed.json", -// "preferredUsername": "kenzoishii", -// "summary": "この方はただの例です", -// "type": "Person" -// } -type ActivityStreamsFollowingProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsFollowingProperty) bool - // Name returns the name of this property: "following". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go deleted file mode 100644 index 61a066c37..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go +++ /dev/null @@ -1,1770 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsFormerTypePropertyIterator represents a single value for the -// "formerType" property. -type ActivityStreamsFormerTypePropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // GetXMLSchemaString returns the value of this property. When - // IsXMLSchemaString returns false, GetXMLSchemaString will return an - // arbitrary value. - GetXMLSchemaString() string - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // IsXMLSchemaString returns true if this property has a type of "string". - // When true, use the GetXMLSchemaString and SetXMLSchemaString - // methods to access and set this property. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsFormerTypePropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsFormerType". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsFormerTypePropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsFormerTypePropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error - // SetXMLSchemaString sets the value of this property. Calling - // IsXMLSchemaString afterwards returns true. - SetXMLSchemaString(v string) -} - -// On a Tombstone object, the formerType property identifies the type of the -// object that was deleted. -// -// Example 142 (https://www.w3.org/TR/activitystreams-vocabulary/#ex185b-jsonld): -// { -// "formerType": "/Image", -// "summary": "This image has been deleted", -// "type": "Tombstone", -// "url": "http://example.org/image/2" -// } -type ActivityStreamsFormerTypeProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "formerType". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "formerType". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "formerType". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "formerType". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "formerType". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "formerType". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "formerType". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "formerType". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "formerType". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "formerType". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "formerType". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "formerType". Invalidates iterators - // that are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "formerType" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "formerType". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. Returns an error if the type is not a valid - // one to set for this property. - AppendType(t Type) error - // AppendXMLSchemaString appends a string value to the back of a list of - // the property "formerType". Invalidates iterators that are - // traversing using Prev. - AppendXMLSchemaString(v string) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsFormerTypePropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsFormerTypePropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsFormerTypePropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "formerType". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "formerType". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "formerType". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "formerType". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "formerType". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "formerType". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "formerType". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "formerType". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "formerType". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "formerType". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "formerType". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "formerType". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "formerType". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "formerType". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "formerType". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "formerType". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "formerType". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "formerType". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "formerType". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "formerType". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "formerType". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "formerType". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // InsertXMLSchemaString inserts a string value at the specified index for - // a property "formerType". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertXMLSchemaString(idx int, v string) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "formerType" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsFormerTypeProperty) bool - // Name returns the name of this property ("formerType") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "formerType". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "formerType". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "formerType". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "formerType". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "formerType". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "formerType". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "formerType". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "formerType". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "formerType". Invalidates - // all iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "formerType". Invalidates - // all iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "formerType". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "formerType". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "formerType". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "formerType". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "formerType". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "formerType". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "formerType". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "formerType". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "formerType". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "formerType". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // PrependXMLSchemaString prepends a string value to the front of a list - // of the property "formerType". Invalidates all iterators. - PrependXMLSchemaString(v string) - // Remove deletes an element at the specified index from a list of the - // property "formerType", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "formerType". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "formerType". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "formerType". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "formerType". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "formerType". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "formerType". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "formerType". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "formerType". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "formerType". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "formerType". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "formerType". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "formerType". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "formerType". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "formerType". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "formerType". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "formerType". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "formerType". Panics if the index - // is out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "formerType". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "formerType". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "formerType". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "formerType". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. Panics if - // the index is out of bounds. - SetType(idx int, t Type) error - // SetXMLSchemaString sets a string value to be at the specified index for - // the property "formerType". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaString(idx int, v string) - // Swap swaps the location of values at two indices for the "formerType" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_generator_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_generator_interface.go deleted file mode 100644 index 0f9059d10..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_generator_interface.go +++ /dev/null @@ -1,1798 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsGeneratorPropertyIterator represents a single value for the -// "generator" property. -type ActivityStreamsGeneratorPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsGeneratorPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsGenerator". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsGeneratorPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsGeneratorPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies the entity (e.g. an application) that generated the object. -// -// Example 78 (https://www.w3.org/TR/activitystreams-vocabulary/#ex75-jsonld): -// { -// "content": "This is all there is.", -// "generator": { -// "name": "Exampletron 3000", -// "type": "Application" -// }, -// "summary": "A simple note", -// "type": "Note" -// } -type ActivityStreamsGeneratorProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "generator". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "generator". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "generator". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "generator". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "generator". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "generator". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "generator". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "generator". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "generator". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "generator". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "generator". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "generator". Invalidates iterators - // that are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "generator" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "generator". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "generator". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "generator". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsGeneratorPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsGeneratorPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsGeneratorPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "generator". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "generator". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "generator". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "generator". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "generator". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "generator". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "generator". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "generator". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "generator". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "generator". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "generator". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "generator". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "generator". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "generator". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "generator". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "generator". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "generator". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "generator". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "generator". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "generator". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "generator". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "generator". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "generator" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsGeneratorProperty) bool - // Name returns the name of this property ("generator") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "generator". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "generator". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "generator". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "generator". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "generator". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "generator". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "generator". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "generator". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "generator". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "generator". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "generator". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "generator". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "generator". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "generator". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "generator". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "generator". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "generator". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "generator". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "generator". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "generator". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "generator". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "generator". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "generator", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "generator". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "generator". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "generator". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "generator". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "generator". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "generator". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "generator". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "generator". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "generator". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "generator". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "generator". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "generator". Panics if the index - // is out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "generator". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "generator". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "generator". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "generator". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. Panics if - // the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "generator" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_height_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_height_interface.go deleted file mode 100644 index aa0a2eb19..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_height_interface.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// On a Link, specifies a hint as to the rendering height in device-independent -// pixels of the linked resource. -// -// Example 120 (https://www.w3.org/TR/activitystreams-vocabulary/#ex136-jsonld): -// { -// "height": 100, -// "type": "Link", -// "url": "http://example.org/image.png", -// "width": 100 -// } -type ActivityStreamsHeightProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return false. - Clear() - // Get returns the value of this property. When - // IsXMLSchemaNonNegativeInteger returns false, Get will return any - // arbitrary value. - Get() int - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaNonNegativeInteger returns true if this property is set and - // not an IRI. - IsXMLSchemaNonNegativeInteger() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsHeightProperty) bool - // Name returns the name of this property: "height". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return true. - Set(v int) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_href_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_href_interface.go deleted file mode 100644 index fb8a8428c..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_href_interface.go +++ /dev/null @@ -1,60 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// The target resource pointed to by a Link. -// -// Example 121 (https://www.w3.org/TR/activitystreams-vocabulary/#ex137-jsonld): -// { -// "mediaType": "text/html", -// "name": "Previous", -// "type": "Link", -// "url": "http://example.org/abc" -// } -type ActivityStreamsHrefProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaAnyURI afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaAnyURI returns - // false, Get will return any arbitrary value. - Get() *url.URL - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsHrefProperty) bool - // Name returns the name of this property: "href". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaAnyURI - // afterwards will return true. - Set(v *url.URL) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_hreflang_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_hreflang_interface.go deleted file mode 100644 index c7c344467..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_hreflang_interface.go +++ /dev/null @@ -1,62 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Hints as to the language used by the target resource. Value MUST be a [BCP47] -// Language-Tag. -// -// Example 122 (https://www.w3.org/TR/activitystreams-vocabulary/#ex138-jsonld): -// { -// "hreflang": "en", -// "mediaType": "text/html", -// "name": "Previous", -// "type": "Link", -// "url": "http://example.org/abc" -// } -type ActivityStreamsHreflangProperty interface { - // Clear ensures no value of this property is set. Calling IsRFCBcp47 - // afterwards will return false. - Clear() - // Get returns the value of this property. When IsRFCBcp47 returns false, - // Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsRFCBcp47 returns true if this property is set and not an IRI. - IsRFCBcp47() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsHreflangProperty) bool - // Name returns the name of this property: "hreflang". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsRFCBcp47 afterwards will - // return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_icon_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_icon_interface.go deleted file mode 100644 index ea1dc73cb..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_icon_interface.go +++ /dev/null @@ -1,249 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsIconPropertyIterator represents a single value for the "icon" -// property. -type ActivityStreamsIconPropertyIterator interface { - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsIconPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsIcon". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsIconPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsIconPropertyIterator - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Indicates an entity that describes an icon for this object. The image should -// have an aspect ratio of one (horizontal) to one (vertical) and should be -// suitable for presentation at a small size. -// -// Example 79 (https://www.w3.org/TR/activitystreams-vocabulary/#ex77-jsonld): -// { -// "content": "This is all there is.", -// "icon": { -// "height": 16, -// "name": "Note icon", -// "type": "Image", -// "url": "http://example.org/note.png", -// "width": 16 -// }, -// "summary": "A simple note", -// "type": "Note" -// } -// -// Example 80 (https://www.w3.org/TR/activitystreams-vocabulary/#ex78-jsonld): -// { -// "content": "A simple note", -// "icon": [ -// { -// "height": 16, -// "summary": "Note (16x16)", -// "type": "Image", -// "url": "http://example.org/note1.png", -// "width": 16 -// }, -// { -// "height": 32, -// "summary": "Note (32x32)", -// "type": "Image", -// "url": "http://example.org/note2.png", -// "width": 32 -// } -// ], -// "summary": "A simple note", -// "type": "Note" -// } -type ActivityStreamsIconProperty interface { - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "icon". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "icon". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "icon". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendIRI appends an IRI value to the back of a list of the property - // "icon" - AppendIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "icon". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsIconPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsIconPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsIconPropertyIterator - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "icon". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "icon". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "icon". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // Insert inserts an IRI value at the specified index for a property - // "icon". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "icon". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "icon" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsIconProperty) bool - // Name returns the name of this property ("icon") with any alias. - Name() string - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "icon". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "icon". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "icon". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependIRI prepends an IRI value to the front of a list of the property - // "icon". - PrependIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "icon". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "icon", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "icon". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "icon". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "icon". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetIRI sets an IRI value to be at the specified index for the property - // "icon". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetType sets an arbitrary type value to the specified index of the - // property "icon". Invalidates all iterators. Returns an error if the - // type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "icon" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_image_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_image_interface.go deleted file mode 100644 index 3605d6d29..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_image_interface.go +++ /dev/null @@ -1,242 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsImagePropertyIterator represents a single value for the "image" -// property. -type ActivityStreamsImagePropertyIterator interface { - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsImagePropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsImage". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsImagePropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsImagePropertyIterator - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Indicates an entity that describes an image for this object. Unlike the icon -// property, there are no aspect ratio or display size limitations assumed. -// -// Example 81 (https://www.w3.org/TR/activitystreams-vocabulary/#ex80-jsonld): -// { -// "content": "This is all there is.", -// "image": { -// "name": "A Cat", -// "type": "Image", -// "url": "http://example.org/cat.png" -// }, -// "name": "A simple note", -// "type": "Note" -// } -// -// Example 82 (https://www.w3.org/TR/activitystreams-vocabulary/#ex81-jsonld): -// { -// "content": "This is all there is.", -// "image": [ -// { -// "name": "Cat 1", -// "type": "Image", -// "url": "http://example.org/cat1.png" -// }, -// { -// "name": "Cat 2", -// "type": "Image", -// "url": "http://example.org/cat2.png" -// } -// ], -// "name": "A simple note", -// "type": "Note" -// } -type ActivityStreamsImageProperty interface { - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "image". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "image". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "image". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendIRI appends an IRI value to the back of a list of the property - // "image" - AppendIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "image". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsImagePropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsImagePropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsImagePropertyIterator - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "image". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "image". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "image". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // Insert inserts an IRI value at the specified index for a property - // "image". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "image". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "image" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsImageProperty) bool - // Name returns the name of this property ("image") with any alias. - Name() string - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "image". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "image". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "image". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependIRI prepends an IRI value to the front of a list of the property - // "image". - PrependIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "image". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "image", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "image". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "image". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "image". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetIRI sets an IRI value to be at the specified index for the property - // "image". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetType sets an arbitrary type value to the specified index of the - // property "image". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "image" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go deleted file mode 100644 index fbd95d13a..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go +++ /dev/null @@ -1,1807 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsInReplyToPropertyIterator represents a single value for the -// "inReplyTo" property. -type ActivityStreamsInReplyToPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsInReplyToPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsInReplyTo". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsInReplyToPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsInReplyToPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Indicates one or more entities for which this object is considered a response. -// -// Example 83 (https://www.w3.org/TR/activitystreams-vocabulary/#ex83-jsonld): -// { -// "content": "This is all there is.", -// "inReplyTo": { -// "content": "What else is there?", -// "summary": "Previous note", -// "type": "Note" -// }, -// "summary": "A simple note", -// "type": "Note" -// } -// -// Example 84 (https://www.w3.org/TR/activitystreams-vocabulary/#ex84-jsonld): -// { -// "content": "This is all there is.", -// "inReplyTo": "http://example.org/posts/1", -// "summary": "A simple note", -// "type": "Note" -// } -type ActivityStreamsInReplyToProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "inReplyTo". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "inReplyTo". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "inReplyTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "inReplyTo". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "inReplyTo". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "inReplyTo". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "inReplyTo". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "inReplyTo". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "inReplyTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "inReplyTo". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "inReplyTo". Invalidates iterators - // that are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "inReplyTo" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "inReplyTo". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "inReplyTo". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "inReplyTo". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsInReplyToPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsInReplyToPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsInReplyToPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "inReplyTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "inReplyTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "inReplyTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "inReplyTo". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "inReplyTo". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "inReplyTo". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "inReplyTo". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "inReplyTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "inReplyTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "inReplyTo". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "inReplyTo". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "inReplyTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "inReplyTo". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "inReplyTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "inReplyTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "inReplyTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "inReplyTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "inReplyTo". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "inReplyTo". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "inReplyTo". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "inReplyTo". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "inReplyTo". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "inReplyTo" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsInReplyToProperty) bool - // Name returns the name of this property ("inReplyTo") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "inReplyTo". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "inReplyTo". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "inReplyTo". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "inReplyTo". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "inReplyTo". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "inReplyTo". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "inReplyTo". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "inReplyTo". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "inReplyTo". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "inReplyTo". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "inReplyTo". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "inReplyTo". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "inReplyTo". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "inReplyTo". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "inReplyTo", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "inReplyTo". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "inReplyTo". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "inReplyTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "inReplyTo". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "inReplyTo". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "inReplyTo". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "inReplyTo". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "inReplyTo". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "inReplyTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "inReplyTo". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "inReplyTo". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "inReplyTo". Panics if the index - // is out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "inReplyTo". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "inReplyTo". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "inReplyTo". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "inReplyTo". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. Panics if - // the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "inReplyTo" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_inbox_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_inbox_interface.go deleted file mode 100644 index 94692cbe6..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_inbox_interface.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// A reference to an ActivityStreams OrderedCollection comprised of all the -// messages received by the actor. -// -// Example 9 (https://www.w3.org/TR/activitypub/#example9): -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// { -// "@language": "ja" -// } -// ], -// "followers": "https://kenzoishii.example.com/followers.json", -// "following": "https://kenzoishii.example.com/following.json", -// "icon": [ -// "https://kenzoishii.example.com/image/165987aklre4" -// ], -// "id": "https://kenzoishii.example.com/", -// "inbox": "https://kenzoishii.example.com/inbox.json", -// "liked": "https://kenzoishii.example.com/liked.json", -// "name": "石井健蔵", -// "outbox": "https://kenzoishii.example.com/feed.json", -// "preferredUsername": "kenzoishii", -// "summary": "この方はただの例です", -// "type": "Person" -// } -type ActivityStreamsInboxProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsInboxProperty) bool - // Name returns the name of this property: "inbox". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go deleted file mode 100644 index d89ec6208..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go +++ /dev/null @@ -1,1804 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsInstrumentPropertyIterator represents a single value for the -// "instrument" property. -type ActivityStreamsInstrumentPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsInstrumentPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsInstrument". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsInstrumentPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsInstrumentPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies one or more objects used (or to be used) in the completion of an -// Activity. -// -// Example 85 (https://www.w3.org/TR/activitystreams-vocabulary/#ex101-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "instrument": { -// "name": "Acme Music Service", -// "type": "Service" -// }, -// "object": "http://example.org/foo.mp3", -// "summary": "Sally listened to a piece of music on the Acme Music -// Service", -// "type": "Listen" -// } -type ActivityStreamsInstrumentProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "instrument". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "instrument". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "instrument". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "instrument". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "instrument". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "instrument". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "instrument". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "instrument". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "instrument". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "instrument". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "instrument". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "instrument". Invalidates iterators - // that are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "instrument" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "instrument". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "instrument". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "instrument". Invalidates iterators that are - // traversing using Prev. Returns an error if the type is not a valid - // one to set for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsInstrumentPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsInstrumentPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsInstrumentPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "instrument". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "instrument". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "instrument". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "instrument". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "instrument". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "instrument". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "instrument". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "instrument". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "instrument". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "instrument". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "instrument". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "instrument". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "instrument". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "instrument". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "instrument". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "instrument". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "instrument". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "instrument". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "instrument". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "instrument". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "instrument". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "instrument". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "instrument" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsInstrumentProperty) bool - // Name returns the name of this property ("instrument") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "instrument". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "instrument". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "instrument". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "instrument". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "instrument". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "instrument". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "instrument". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "instrument". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "instrument". Invalidates - // all iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "instrument". Invalidates - // all iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "instrument". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "instrument". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "instrument". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "instrument". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "instrument". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "instrument". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "instrument". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "instrument". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "instrument". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "instrument". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "instrument". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "instrument", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "instrument". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "instrument". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "instrument". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "instrument". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "instrument". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "instrument". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "instrument". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "instrument". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "instrument". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "instrument". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "instrument". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "instrument". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "instrument". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "instrument". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "instrument". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "instrument". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "instrument". Panics if the index - // is out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "instrument". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "instrument". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "instrument". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "instrument". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. Panics if - // the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "instrument" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_items_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_items_interface.go deleted file mode 100644 index f5b0ee06d..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_items_interface.go +++ /dev/null @@ -1,1794 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsItemsPropertyIterator represents a single value for the "items" -// property. -type ActivityStreamsItemsPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsItemsPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsItems". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsItemsPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsItemsPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies the items contained in a collection. The items might be ordered or -// unordered. -// -// Example 89 (https://www.w3.org/TR/activitystreams-vocabulary/#ex91-jsonld): -// { -// "items": [ -// { -// "name": "Reminder for Going-Away Party", -// "type": "Note" -// }, -// { -// "name": "Meeting 2016-11-17", -// "type": "Note" -// } -// ], -// "summary": "Sally's notes", -// "totalItems": 2, -// "type": "Collection" -// } -type ActivityStreamsItemsProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "items". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "items". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "items". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "items". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "items". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "items". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "items". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "items". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "items". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "items". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "items". Invalidates iterators that - // are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "items" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "items". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "items". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "items". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsItemsPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsItemsPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsItemsPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "items". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "items". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "items". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "items". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "items". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "items". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "items". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "items". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "items". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "items". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "items". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "items". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "items". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "items". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "items". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "items". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "items". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "items". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "items". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "items". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "items". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "items". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "items" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsItemsProperty) bool - // Name returns the name of this property ("items") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "items". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "items". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "items". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "items". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "items". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "items". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "items". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "items". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "items". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "items". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "items". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "items". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "items". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "items". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "items". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "items". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "items". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "items". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "items". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "items". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "items". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "items". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "items". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "items". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "items", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "items". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "items". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "items". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "items". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "items". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "items". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "items". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "items". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "items". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "items". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "items". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "items". Panics if the index is out of bounds. Invalidates - // all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "items". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "items". Panics if the index is - // out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "items". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "items". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "items". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "items". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "items" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_last_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_last_interface.go deleted file mode 100644 index 4a5806fc8..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_last_interface.go +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// In a paged Collection, indicates the furthest proceeding page of the collection. -// -// Example 86 (https://www.w3.org/TR/activitystreams-vocabulary/#ex87-jsonld): -// { -// "last": "http://example.org/collection?page=1", -// "summary": "A collection", -// "totalItems": 3, -// "type": "Collection" -// } -// -// Example 87 (https://www.w3.org/TR/activitystreams-vocabulary/#ex88-jsonld): -// { -// "last": { -// "summary": "Last Page", -// "type": "owl:Class", -// "url": "http://example.org/collection?page=1" -// }, -// "summary": "A collection", -// "totalItems": 5, -// "type": "Collection" -// } -type ActivityStreamsLastProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsLastProperty) bool - // Name returns the name of this property: "last". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_latitude_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_latitude_interface.go deleted file mode 100644 index 18f1e92ff..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_latitude_interface.go +++ /dev/null @@ -1,62 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// The latitude of a place -// -// Example 124 (https://www.w3.org/TR/activitystreams-vocabulary/#ex140-jsonld): -// { -// "latitude": 36.75, -// "longitude": 119.7667, -// "name": "Fresno Area", -// "radius": 15, -// "type": "Place", -// "units": "miles" -// } -type ActivityStreamsLatitudeProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaFloat afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaFloat returns - // false, Get will return any arbitrary value. - Get() float64 - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaFloat returns true if this property is set and not an IRI. - IsXMLSchemaFloat() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsLatitudeProperty) bool - // Name returns the name of this property: "latitude". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaFloat - // afterwards will return true. - Set(v float64) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_liked_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_liked_interface.go deleted file mode 100644 index 58ecd0466..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_liked_interface.go +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// A link to an ActivityStreams collection of objects this actor has liked -// -// Example 9 (https://www.w3.org/TR/activitypub/#example9): -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// { -// "@language": "ja" -// } -// ], -// "followers": "https://kenzoishii.example.com/followers.json", -// "following": "https://kenzoishii.example.com/following.json", -// "icon": [ -// "https://kenzoishii.example.com/image/165987aklre4" -// ], -// "id": "https://kenzoishii.example.com/", -// "inbox": "https://kenzoishii.example.com/inbox.json", -// "liked": "https://kenzoishii.example.com/liked.json", -// "name": "石井健蔵", -// "outbox": "https://kenzoishii.example.com/feed.json", -// "preferredUsername": "kenzoishii", -// "summary": "この方はただの例です", -// "type": "Person" -// } -type ActivityStreamsLikedProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsLikedProperty) bool - // Name returns the name of this property: "liked". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_likes_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_likes_interface.go deleted file mode 100644 index fac33a4e0..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_likes_interface.go +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// This is a list of all Like activities with this object as the object property -type ActivityStreamsLikesProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsLikesProperty) bool - // Name returns the name of this property: "likes". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_location_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_location_interface.go deleted file mode 100644 index ca310a438..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_location_interface.go +++ /dev/null @@ -1,1801 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsLocationPropertyIterator represents a single value for the -// "location" property. -type ActivityStreamsLocationPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsLocationPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsLocation". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsLocationPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsLocationPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Indicates one or more physical or logical locations associated with the object. -// -// Example 88 (https://www.w3.org/TR/activitystreams-vocabulary/#ex89-jsonld): -// { -// "location": { -// "altitude": 90, -// "latitude": 56.78, -// "longitude": 12.34, -// "name": "Over the Arabian Sea, east of Socotra Island Nature -// Sanctuary", -// "type": "Place", -// "units": "m" -// }, -// "name": "Sally", -// "type": "Person" -// } -type ActivityStreamsLocationProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "location". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "location". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "location". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "location". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "location". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "location". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "location". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "location". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "location". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "location". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "location". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "location". Invalidates iterators - // that are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "location" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "location". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "location". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "location". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsLocationPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsLocationPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsLocationPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "location". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "location". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "location". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "location". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "location". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "location". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "location". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "location". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "location". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "location". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "location". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "location". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "location". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "location". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "location" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsLocationProperty) bool - // Name returns the name of this property ("location") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "location". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "location". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "location". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "location". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "location". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "location". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "location". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "location". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "location". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "location". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "location". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "location". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "location". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "location". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "location". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "location". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "location". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "location". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "location". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "location". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "location". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "location". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "location". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "location". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "location". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "location". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "location". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "location". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "location". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "location". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "location". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "location". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "location", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "location". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "location". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "location". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "location". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "location". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "location". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "location". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "location". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "location". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "location". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "location". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "location". Panics if the index is - // out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "location". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "location". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "location". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "location". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "location" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_longitude_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_longitude_interface.go deleted file mode 100644 index 43a2c437e..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_longitude_interface.go +++ /dev/null @@ -1,62 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// The longitude of a place -// -// Example 125 (https://www.w3.org/TR/activitystreams-vocabulary/#ex141-jsonld): -// { -// "latitude": 36.75, -// "longitude": 119.7667, -// "name": "Fresno Area", -// "radius": 15, -// "type": "Place", -// "units": "miles" -// } -type ActivityStreamsLongitudeProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaFloat afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaFloat returns - // false, Get will return any arbitrary value. - Get() float64 - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaFloat returns true if this property is set and not an IRI. - IsXMLSchemaFloat() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsLongitudeProperty) bool - // Name returns the name of this property: "longitude". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaFloat - // afterwards will return true. - Set(v float64) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_manuallyApprovesFollowers_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_manuallyApprovesFollowers_interface.go deleted file mode 100644 index c66ff0ae1..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_manuallyApprovesFollowers_interface.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Indicates that the actor manually approves Follow activities and that an -// automatic Accept should not be expected. -type ActivityStreamsManuallyApprovesFollowersProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaBoolean afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaBoolean returns - // false, Get will return any arbitrary value. - Get() bool - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaBoolean returns true if this property is set and not an IRI. - IsXMLSchemaBoolean() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsManuallyApprovesFollowersProperty) bool - // Name returns the name of this property: "manuallyApprovesFollowers". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaBoolean - // afterwards will return true. - Set(v bool) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_mediaType_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_mediaType_interface.go deleted file mode 100644 index a379e4a67..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_mediaType_interface.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// When used on a Link, identifies the MIME media type of the referenced resource. -// When used on an Object, identifies the MIME media type of the value of the -// content property. If not specified, the content property is assumed to -// contain text/html content. -// -// Example 126 (https://www.w3.org/TR/activitystreams-vocabulary/#ex142-jsonld): -// { -// "hreflang": "en", -// "mediaType": "text/html", -// "name": "Next", -// "type": "Link", -// "url": "http://example.org/abc" -// } -type ActivityStreamsMediaTypeProperty interface { - // Clear ensures no value of this property is set. Calling IsRFCRfc2045 - // afterwards will return false. - Clear() - // Get returns the value of this property. When IsRFCRfc2045 returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsRFCRfc2045 returns true if this property is set and not an IRI. - IsRFCRfc2045() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsMediaTypeProperty) bool - // Name returns the name of this property: "mediaType". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsRFCRfc2045 afterwards - // will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_name_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_name_interface.go deleted file mode 100644 index 14ce0164c..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_name_interface.go +++ /dev/null @@ -1,197 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsNamePropertyIterator represents a single value for the "name" -// property. -type ActivityStreamsNamePropertyIterator interface { - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetLanguage returns the value for the specified BCP47 language code, or - // an empty string if it is either not a language map or no value is - // present. - GetLanguage(bcp47 string) string - // GetRDFLangString returns the value of this property. When - // IsRDFLangString returns false, GetRDFLangString will return an - // arbitrary value. - GetRDFLangString() map[string]string - // GetXMLSchemaString returns the value of this property. When - // IsXMLSchemaString returns false, GetXMLSchemaString will return an - // arbitrary value. - GetXMLSchemaString() string - // HasAny returns true if any of the values are set, except for the - // natural language map. When true, the specific has, getter, and - // setter methods may be used to determine what kind of value there is - // to access and set this property. To determine if the property was - // set as a natural language map, use the IsRDFLangString method - // instead. - HasAny() bool - // HasLanguage returns true if the natural language map has an entry for - // the specified BCP47 language code. - HasLanguage(bcp47 string) bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsRDFLangString returns true if this property has a type of - // "langString". When true, use the GetRDFLangString and - // SetRDFLangString methods to access and set this property.. To - // determine if the property was set as a natural language map, use - // the IsRDFLangString method instead. - IsRDFLangString() bool - // IsXMLSchemaString returns true if this property has a type of "string". - // When true, use the GetXMLSchemaString and SetXMLSchemaString - // methods to access and set this property.. To determine if the - // property was set as a natural language map, use the IsRDFLangString - // method instead. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsNamePropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsName". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsNamePropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsNamePropertyIterator - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetLanguage sets the value for the specified BCP47 language code. - SetLanguage(bcp47, value string) - // SetRDFLangString sets the value of this property and clears the natural - // language map. Calling IsRDFLangString afterwards will return true. - // Calling IsRDFLangString afterwards returns false. - SetRDFLangString(v map[string]string) - // SetXMLSchemaString sets the value of this property and clears the - // natural language map. Calling IsXMLSchemaString afterwards will - // return true. Calling IsRDFLangString afterwards returns false. - SetXMLSchemaString(v string) -} - -// A simple, human-readable, plain-text name for the object. HTML markup MUST NOT -// be included. The name MAY be expressed using multiple language-tagged -// values. -// -// Example 117 (https://www.w3.org/TR/activitystreams-vocabulary/#ex132-jsonld): -// { -// "name": "A simple note", -// "type": "Note" -// } -// -// Example 118 (https://www.w3.org/TR/activitystreams-vocabulary/#ex133-jsonld): -// { -// "nameMap": { -// "en": "A simple note", -// "es": "Una nota sencilla", -// "zh-hans": "一段简单的笔记" -// }, -// "type": "Note" -// } -type ActivityStreamsNameProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "name" - AppendIRI(v *url.URL) - // AppendRDFLangString appends a langString value to the back of a list of - // the property "name". Invalidates iterators that are traversing - // using Prev. - AppendRDFLangString(v map[string]string) - // AppendXMLSchemaString appends a string value to the back of a list of - // the property "name". Invalidates iterators that are traversing - // using Prev. - AppendXMLSchemaString(v string) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsNamePropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsNamePropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsNamePropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "name". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertRDFLangString inserts a langString value at the specified index - // for a property "name". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertRDFLangString(idx int, v map[string]string) - // InsertXMLSchemaString inserts a string value at the specified index for - // a property "name". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertXMLSchemaString(idx int, v string) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "name" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsNameProperty) bool - // Name returns the name of this property ("name") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "name". - PrependIRI(v *url.URL) - // PrependRDFLangString prepends a langString value to the front of a list - // of the property "name". Invalidates all iterators. - PrependRDFLangString(v map[string]string) - // PrependXMLSchemaString prepends a string value to the front of a list - // of the property "name". Invalidates all iterators. - PrependXMLSchemaString(v string) - // Remove deletes an element at the specified index from a list of the - // property "name", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetIRI sets an IRI value to be at the specified index for the property - // "name". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetRDFLangString sets a langString value to be at the specified index - // for the property "name". Panics if the index is out of bounds. - // Invalidates all iterators. - SetRDFLangString(idx int, v map[string]string) - // SetXMLSchemaString sets a string value to be at the specified index for - // the property "name". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaString(idx int, v string) - // Swap swaps the location of values at two indices for the "name" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_next_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_next_interface.go deleted file mode 100644 index 82bd7925c..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_next_interface.go +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// In a paged Collection, indicates the next page of items. -// -// Example 95 (https://www.w3.org/TR/activitystreams-vocabulary/#ex96-jsonld): -// { -// "items": [ -// "http://example.org/posts/1", -// "http://example.org/posts/2", -// "http://example.org/posts/3" -// ], -// "next": "http://example.org/collection?page=2", -// "summary": "Page 2 of Sally's blog posts", -// "type": "CollectionPage" -// } -// -// Example 96 (https://www.w3.org/TR/activitystreams-vocabulary/#ex97-jsonld): -// { -// "items": [ -// "http://example.org/posts/1", -// "http://example.org/posts/2", -// "http://example.org/posts/3" -// ], -// "next": { -// "name": "Next Page", -// "type": "owl:Class", -// "url": "http://example.org/collection?page=2" -// }, -// "summary": "Page 2 of Sally's blog posts", -// "type": "CollectionPage" -// } -type ActivityStreamsNextProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsNextProperty) bool - // Name returns the name of this property: "next". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_object_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_object_interface.go deleted file mode 100644 index 6feaa13b2..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_object_interface.go +++ /dev/null @@ -1,1812 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsObjectPropertyIterator represents a single value for the -// "object" property. -type ActivityStreamsObjectPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsObjectPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsObject". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsObjectPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsObjectPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// When used within an Activity, describes the direct object of the activity. For -// instance, in the activity "John added a movie to his wishlist", the object -// of the activity is the movie added. When used within a Relationship -// describes the entity to which the subject is related. -// -// Example 97 (https://www.w3.org/TR/activitystreams-vocabulary/#ex98-jsonld): -// { -// "actor": "http://sally.example.org", -// "object": "http://example.org/posts/1", -// "summary": "Sally liked a post", -// "type": "Like" -// } -// -// Example 98 (https://www.w3.org/TR/activitystreams-vocabulary/#ex99-jsonld): -// { -// "actor": "http://sally.example.org", -// "object": { -// "content": "A simple note", -// "type": "Note" -// }, -// "type": "Like" -// } -// -// Example 99 (https://www.w3.org/TR/activitystreams-vocabulary/#ex100-jsonld): -// { -// "actor": "http://sally.example.org", -// "object": [ -// "http://example.org/posts/1", -// { -// "content": "That is a tree.", -// "summary": "A simple note", -// "type": "Note" -// } -// ], -// "summary": "Sally liked a note", -// "type": "Like" -// } -type ActivityStreamsObjectProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "object". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "object". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "object". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "object". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "object". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "object". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "object". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "object". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "object". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "object". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "object". Invalidates iterators that - // are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "object" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "object". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "object". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "object". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsObjectPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsObjectPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsObjectPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "object". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "object". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "object". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "object". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "object". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "object". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "object". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "object". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "object". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "object". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "object". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "object". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "object". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "object". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "object". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "object". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "object". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "object". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "object". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "object". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "object". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "object". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "object" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsObjectProperty) bool - // Name returns the name of this property ("object") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "object". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "object". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "object". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "object". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "object". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "object". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "object". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "object". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "object". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "object". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "object". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "object". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "object". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "object". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "object". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "object". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "object". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "object". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "object". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "object". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "object". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "object". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "object". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "object". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "object", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "object". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "object". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "object". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "object". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "object". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "object". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "object". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "object". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "object". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "object". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "object". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "object". Panics if the index is - // out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "object". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "object". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "object". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "object". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "object" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go deleted file mode 100644 index e8c8fa9ce..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go +++ /dev/null @@ -1,1794 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsOneOfPropertyIterator represents a single value for the "oneOf" -// property. -type ActivityStreamsOneOfPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsOneOfPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsOneOf". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsOneOfPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsOneOfPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies an exclusive option for a Question. Use of oneOf implies that the -// Question can have only a single answer. To indicate that a Question can -// have multiple answers, use anyOf. -// -// Example 91 (https://www.w3.org/TR/activitystreams-vocabulary/#ex93-jsonld): -// { -// "name": "What is the answer?", -// "oneOf": [ -// { -// "name": "Option A", -// "type": "Note" -// }, -// { -// "name": "Option B", -// "type": "Note" -// } -// ], -// "type": "Question" -// } -type ActivityStreamsOneOfProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "oneOf". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "oneOf". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "oneOf". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "oneOf". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "oneOf". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "oneOf". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "oneOf". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "oneOf". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "oneOf". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "oneOf". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "oneOf". Invalidates iterators that - // are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "oneOf" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "oneOf". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "oneOf". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "oneOf". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsOneOfPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsOneOfPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsOneOfPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "oneOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "oneOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "oneOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "oneOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "oneOf". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "oneOf". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "oneOf". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "oneOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "oneOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "oneOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "oneOf". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "oneOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "oneOf". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "oneOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "oneOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "oneOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "oneOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "oneOf". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "oneOf". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "oneOf". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "oneOf". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "oneOf". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "oneOf" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsOneOfProperty) bool - // Name returns the name of this property ("oneOf") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "oneOf". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "oneOf". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "oneOf". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "oneOf". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "oneOf". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "oneOf". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "oneOf". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "oneOf". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "oneOf". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "oneOf". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "oneOf". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "oneOf". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "oneOf". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "oneOf". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "oneOf". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "oneOf". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "oneOf". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "oneOf", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "oneOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "oneOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "oneOf". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "oneOf". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "oneOf". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "oneOf". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "oneOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "oneOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "oneOf". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "oneOf". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "oneOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "oneOf". Panics if the index is out of bounds. Invalidates - // all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "oneOf". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "oneOf". Panics if the index is - // out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "oneOf". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "oneOf". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "oneOf". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "oneOf". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "oneOf" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go deleted file mode 100644 index a5ef17c0c..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go +++ /dev/null @@ -1,1806 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsOrderedItemsPropertyIterator represents a single value for the -// "orderedItems" property. -type ActivityStreamsOrderedItemsPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsOrderedItemsPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsOrderedItems". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsOrderedItemsPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsOrderedItemsPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies the items contained in an ordered collection. The items are ordered. -// -// Example 90 (https://www.w3.org/TR/activitystreams-vocabulary/#ex92-jsonld): -// { -// "orderedItems": [ -// { -// "name": "Meeting 2016-11-17", -// "type": "Note" -// }, -// { -// "name": "Reminder for Going-Away Party", -// "type": "Note" -// } -// ], -// "summary": "Sally's notes", -// "totalItems": 2, -// "type": "OrderedCollection" -// } -type ActivityStreamsOrderedItemsProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "orderedItems". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "orderedItems". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "orderedItems". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "orderedItems". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "orderedItems". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "orderedItems". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "orderedItems". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "orderedItems". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "orderedItems". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "orderedItems". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "orderedItems". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "orderedItems". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "orderedItems". Invalidates - // iterators that are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "orderedItems" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "orderedItems". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "orderedItems". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "orderedItems". Invalidates iterators that are - // traversing using Prev. Returns an error if the type is not a valid - // one to set for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsOrderedItemsPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsOrderedItemsPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsOrderedItemsPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "orderedItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "orderedItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "orderedItems". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "orderedItems". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "orderedItems". - // Existing elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "orderedItems". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "orderedItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "orderedItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "orderedItems". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "orderedItems". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "orderedItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "orderedItems". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "orderedItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "orderedItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "orderedItems". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "orderedItems". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "orderedItems". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "orderedItems". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "orderedItems" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsOrderedItemsProperty) bool - // Name returns the name of this property ("orderedItems") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "orderedItems". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "orderedItems". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "orderedItems". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "orderedItems". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "orderedItems". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "orderedItems". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "orderedItems". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "orderedItems". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "orderedItems". Invalidates - // all iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "orderedItems". Invalidates - // all iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "orderedItems". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "orderedItems". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "orderedItems". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "orderedItems". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "orderedItems". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "orderedItems". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "orderedItems". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "orderedItems". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "orderedItems". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "orderedItems". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "orderedItems". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "orderedItems", regardless of its type. Panics if the - // index is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "orderedItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "orderedItems". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "orderedItems". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "orderedItems". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "orderedItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "orderedItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "orderedItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "orderedItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "orderedItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "orderedItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "orderedItems". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "orderedItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "orderedItems". Panics if the index is out - // of bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "orderedItems". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - // Panics if the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "orderedItems" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_origin_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_origin_interface.go deleted file mode 100644 index 3fb7edc53..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_origin_interface.go +++ /dev/null @@ -1,1795 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsOriginPropertyIterator represents a single value for the -// "origin" property. -type ActivityStreamsOriginPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsOriginPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsOrigin". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsOriginPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsOriginPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Describes an indirect object of the activity from which the activity is -// directed. The precise meaning of the origin is the object of the English -// preposition "from". For instance, in the activity "John moved an item to -// List B from List A", the origin of the activity is "List A". -// -// Example 94 (https://www.w3.org/TR/activitystreams-vocabulary/#ex166-jsonld): -// { -// "actor": "http://sally.example.org", -// "object": "http://example.org/posts/1", -// "origin": { -// "name": "List A", -// "type": "Collection" -// }, -// "summary": "Sally moved a post from List A to List B", -// "target": { -// "name": "List B", -// "type": "Collection" -// }, -// "type": "Move" -// } -type ActivityStreamsOriginProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "origin". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "origin". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "origin". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "origin". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "origin". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "origin". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "origin". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "origin". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "origin". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "origin". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "origin". Invalidates iterators that - // are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "origin" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "origin". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "origin". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "origin". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsOriginPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsOriginPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsOriginPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "origin". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "origin". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "origin". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "origin". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "origin". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "origin". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "origin". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "origin". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "origin". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "origin". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "origin". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "origin". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "origin". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "origin". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "origin". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "origin". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "origin". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "origin". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "origin". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "origin". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "origin". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "origin". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "origin" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsOriginProperty) bool - // Name returns the name of this property ("origin") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "origin". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "origin". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "origin". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "origin". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "origin". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "origin". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "origin". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "origin". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "origin". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "origin". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "origin". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "origin". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "origin". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "origin". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "origin". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "origin". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "origin". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "origin". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "origin", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "origin". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "origin". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "origin". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "origin". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "origin". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "origin". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "origin". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "origin". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "origin". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "origin". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "origin". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "origin". Panics if the index is - // out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "origin". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "origin". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "origin". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "origin". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "origin" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_outbox_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_outbox_interface.go deleted file mode 100644 index 6638bdcde..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_outbox_interface.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// An ActivityStreams OrderedCollection comprised of all the messages produced by -// the actor -// -// Example 9 (https://www.w3.org/TR/activitypub/#example9): -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// { -// "@language": "ja" -// } -// ], -// "followers": "https://kenzoishii.example.com/followers.json", -// "following": "https://kenzoishii.example.com/following.json", -// "icon": [ -// "https://kenzoishii.example.com/image/165987aklre4" -// ], -// "id": "https://kenzoishii.example.com/", -// "inbox": "https://kenzoishii.example.com/inbox.json", -// "liked": "https://kenzoishii.example.com/liked.json", -// "name": "石井健蔵", -// "outbox": "https://kenzoishii.example.com/feed.json", -// "preferredUsername": "kenzoishii", -// "summary": "この方はただの例です", -// "type": "Person" -// } -type ActivityStreamsOutboxProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsOutboxProperty) bool - // Name returns the name of this property: "outbox". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_partOf_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_partOf_interface.go deleted file mode 100644 index 0da6db8e5..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_partOf_interface.go +++ /dev/null @@ -1,145 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Identifies the Collection to which a CollectionPage objects items belong. -// -// Example 123 (https://www.w3.org/TR/activitystreams-vocabulary/#ex139-jsonld): -// { -// "id": "http://example.org/collection?page=1", -// "items": [ -// { -// "name": "Pizza Toppings to Try", -// "type": "Note" -// }, -// { -// "name": "Thought about California", -// "type": "Note" -// } -// ], -// "partOf": "http://example.org/collection", -// "summary": "Page 1 of Sally's notes", -// "type": "CollectionPage" -// } -type ActivityStreamsPartOfProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsPartOfProperty) bool - // Name returns the name of this property: "partOf". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_preferredUsername_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_preferredUsername_interface.go deleted file mode 100644 index 3cc09f68d..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_preferredUsername_interface.go +++ /dev/null @@ -1,89 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// A short username which may be used to refer to the actor, with no uniqueness -// guarantees -type ActivityStreamsPreferredUsernameProperty interface { - // Clear ensures no value and no language map for this property is set. - // Calling HasAny or any of the 'Is' methods afterwards will return - // false. - Clear() - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetLanguage returns the value for the specified BCP47 language code, or - // an empty string if it is either not a language map or no value is - // present. - GetLanguage(bcp47 string) string - // GetRDFLangString returns the value of this property. When - // IsRDFLangString returns false, GetRDFLangString will return an - // arbitrary value. - GetRDFLangString() map[string]string - // GetXMLSchemaString returns the value of this property. When - // IsXMLSchemaString returns false, GetXMLSchemaString will return an - // arbitrary value. - GetXMLSchemaString() string - // HasAny returns true if any of the values are set, except for the - // natural language map. When true, the specific has, getter, and - // setter methods may be used to determine what kind of value there is - // to access and set this property. To determine if the property was - // set as a natural language map, use the IsRDFLangString method - // instead. - HasAny() bool - // HasLanguage returns true if the natural language map has an entry for - // the specified BCP47 language code. - HasLanguage(bcp47 string) bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsRDFLangString returns true if this property has a type of - // "langString". When true, use the GetRDFLangString and - // SetRDFLangString methods to access and set this property.. To - // determine if the property was set as a natural language map, use - // the IsRDFLangString method instead. - IsRDFLangString() bool - // IsXMLSchemaString returns true if this property has a type of "string". - // When true, use the GetXMLSchemaString and SetXMLSchemaString - // methods to access and set this property.. To determine if the - // property was set as a natural language map, use the IsRDFLangString - // method instead. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsPreferredUsernameProperty) bool - // Name returns the name of this property: "preferredUsername". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetLanguage sets the value for the specified BCP47 language code. - SetLanguage(bcp47, value string) - // SetRDFLangString sets the value of this property and clears the natural - // language map. Calling IsRDFLangString afterwards will return true. - // Calling IsRDFLangString afterwards returns false. - SetRDFLangString(v map[string]string) - // SetXMLSchemaString sets the value of this property and clears the - // natural language map. Calling IsXMLSchemaString afterwards will - // return true. Calling IsRDFLangString afterwards returns false. - SetXMLSchemaString(v string) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_prev_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_prev_interface.go deleted file mode 100644 index b7b4567e8..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_prev_interface.go +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// In a paged Collection, identifies the previous page of items. -// -// Example 100 (https://www.w3.org/TR/activitystreams-vocabulary/#ex104-jsonld): -// { -// "items": [ -// "http://example.org/posts/1", -// "http://example.org/posts/2", -// "http://example.org/posts/3" -// ], -// "prev": "http://example.org/collection?page=1", -// "summary": "Page 1 of Sally's blog posts", -// "type": "CollectionPage" -// } -// -// Example 101 (https://www.w3.org/TR/activitystreams-vocabulary/#ex105-jsonld): -// { -// "items": [ -// "http://example.org/posts/1", -// "http://example.org/posts/2", -// "http://example.org/posts/3" -// ], -// "prev": { -// "name": "Previous Page", -// "type": "owl:Class", -// "url": "http://example.org/collection?page=1" -// }, -// "summary": "Page 1 of Sally's blog posts", -// "type": "CollectionPage" -// } -type ActivityStreamsPrevProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsPrevProperty) bool - // Name returns the name of this property: "prev". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_preview_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_preview_interface.go deleted file mode 100644 index d7045f9c9..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_preview_interface.go +++ /dev/null @@ -1,1796 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsPreviewPropertyIterator represents a single value for the -// "preview" property. -type ActivityStreamsPreviewPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsPreviewPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsPreview". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsPreviewPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsPreviewPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies an entity that provides a preview of this object. -// -// Example 102 (https://www.w3.org/TR/activitystreams-vocabulary/#ex106-jsonld): -// { -// "duration": "PT2H30M", -// "name": "Cool New Movie", -// "preview": { -// "duration": "PT1M", -// "name": "Trailer", -// "type": "Video", -// "url": { -// "mediaType": "video/mkv", -// "url": "http://example.org/trailer.mkv" -// } -// }, -// "type": "Video" -// } -type ActivityStreamsPreviewProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "preview". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "preview". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "preview". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "preview". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "preview". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "preview". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "preview". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "preview". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "preview". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "preview". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "preview". Invalidates iterators - // that are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "preview" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "preview". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "preview". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "preview". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsPreviewPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsPreviewPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsPreviewPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "preview". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "preview". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "preview". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "preview". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "preview". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "preview". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "preview". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "preview". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "preview". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "preview". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "preview". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "preview". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "preview". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "preview". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "preview". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "preview". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "preview". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "preview". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "preview". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "preview". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "preview". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "preview" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsPreviewProperty) bool - // Name returns the name of this property ("preview") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "preview". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "preview". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "preview". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "preview". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "preview". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "preview". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "preview". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "preview". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "preview". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "preview". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "preview". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "preview". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "preview". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "preview". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "preview". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "preview". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "preview". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "preview". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "preview". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "preview". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "preview". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "preview". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "preview", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "preview". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "preview". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "preview". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "preview". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "preview". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "preview". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "preview". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "preview". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "preview". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "preview". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "preview". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "preview". Panics if the index is - // out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "preview". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "preview". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "preview". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "preview". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "preview" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_published_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_published_interface.go deleted file mode 100644 index 360a43837..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_published_interface.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import ( - "net/url" - "time" -) - -// The date and time at which the object was published -// -// Example 128 (https://www.w3.org/TR/activitystreams-vocabulary/#ex145-jsonld): -// { -// "content": "Fish swim.", -// "published": "2014-12-12T12:12:12Z", -// "summary": "A simple note", -// "type": "Note" -// } -type ActivityStreamsPublishedProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaDateTime afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaDateTime - // returns false, Get will return any arbitrary value. - Get() time.Time - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaDateTime returns true if this property is set and not an IRI. - IsXMLSchemaDateTime() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsPublishedProperty) bool - // Name returns the name of this property: "published". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaDateTime - // afterwards will return true. - Set(v time.Time) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_radius_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_radius_interface.go deleted file mode 100644 index 9ddde511e..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_radius_interface.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// The radius from the given latitude and longitude for a Place. The units is -// expressed by the units property. If units is not specified, the default is -// assumed to be "m" indicating "meters". -// -// Example 130 (https://www.w3.org/TR/activitystreams-vocabulary/#ex147-jsonld): -// { -// "latitude": 36.75, -// "longitude": 119.7667, -// "name": "Fresno Area", -// "radius": 15, -// "type": "Place", -// "units": "miles" -// } -type ActivityStreamsRadiusProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaFloat afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaFloat returns - // false, Get will return any arbitrary value. - Get() float64 - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaFloat returns true if this property is set and not an IRI. - IsXMLSchemaFloat() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsRadiusProperty) bool - // Name returns the name of this property: "radius". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaFloat - // afterwards will return true. - Set(v float64) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_rel_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_rel_interface.go deleted file mode 100644 index 0d3f0956d..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_rel_interface.go +++ /dev/null @@ -1,145 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsRelPropertyIterator represents a single value for the "rel" -// property. -type ActivityStreamsRelPropertyIterator interface { - // Get returns the value of this property. When IsRFCRfc5988 returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsRFCRfc5988 returns true if this property is set and not an IRI. - IsRFCRfc5988() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsRelPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsRel". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsRelPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsRelPropertyIterator - // Set sets the value of this property. Calling IsRFCRfc5988 afterwards - // will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} - -// A link relation associated with a Link. The value MUST conform to both the -// [HTML5] and [RFC5988] "link relation" definitions. In the [HTML5], any -// string not containing the "space" U+0020, "tab" (U+0009), "LF" (U+000A), -// "FF" (U+000C), "CR" (U+000D) or "," (U+002C) characters can be used as a -// valid link relation. -// -// Example 131 (https://www.w3.org/TR/activitystreams-vocabulary/#ex149-jsonld): -// { -// "hreflang": "en", -// "mediaType": "text/html", -// "name": "Preview", -// "rel": [ -// "canonical", -// "preview" -// ], -// "type": "Link", -// "url": "http://example.org/abc" -// } -type ActivityStreamsRelProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "rel" - AppendIRI(v *url.URL) - // AppendRFCRfc5988 appends a rfc5988 value to the back of a list of the - // property "rel". Invalidates iterators that are traversing using - // Prev. - AppendRFCRfc5988(v string) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsRelPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsRelPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsRelPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "rel". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertRFCRfc5988 inserts a rfc5988 value at the specified index for a - // property "rel". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertRFCRfc5988(idx int, v string) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "rel" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsRelProperty) bool - // Name returns the name of this property ("rel") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "rel". - PrependIRI(v *url.URL) - // PrependRFCRfc5988 prepends a rfc5988 value to the front of a list of - // the property "rel". Invalidates all iterators. - PrependRFCRfc5988(v string) - // Remove deletes an element at the specified index from a list of the - // property "rel", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a rfc5988 value to be at the specified index for the property - // "rel". Panics if the index is out of bounds. Invalidates all - // iterators. - Set(idx int, v string) - // SetIRI sets an IRI value to be at the specified index for the property - // "rel". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // Swap swaps the location of values at two indices for the "rel" property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go deleted file mode 100644 index 25aeb00e0..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go +++ /dev/null @@ -1,1753 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsRelationshipPropertyIterator represents a single value for the -// "relationship" property. -type ActivityStreamsRelationshipPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsRelationshipPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsRelationship". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsRelationshipPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsRelationshipPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// On a Relationship object, the relationship property identifies the kind of -// relationship that exists between subject and object. -// -// Example 140 (https://www.w3.org/TR/activitystreams-vocabulary/#ex22c-jsonld): -// { -// "object": { -// "name": "John", -// "type": "Person" -// }, -// "relationship": "http://purl.org/vocab/relationship/acquaintanceOf", -// "subject": { -// "name": "Sally", -// "type": "Person" -// }, -// "summary": "Sally is an acquaintance of John's", -// "type": "Relationship" -// } -type ActivityStreamsRelationshipProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "relationship". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "relationship". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "relationship". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "relationship". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "relationship". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "relationship". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "relationship". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "relationship". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "relationship". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "relationship". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "relationship". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "relationship". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "relationship". Invalidates - // iterators that are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "relationship" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "relationship". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "relationship". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "relationship". Invalidates iterators that are - // traversing using Prev. Returns an error if the type is not a valid - // one to set for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsRelationshipPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsRelationshipPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsRelationshipPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "relationship". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "relationship". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "relationship". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "relationship". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "relationship". - // Existing elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "relationship". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "relationship". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "relationship". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "relationship". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "relationship". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "relationship". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "relationship". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "relationship". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "relationship". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "relationship". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "relationship". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "relationship". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "relationship". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "relationship" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsRelationshipProperty) bool - // Name returns the name of this property ("relationship") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "relationship". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "relationship". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "relationship". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "relationship". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "relationship". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "relationship". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "relationship". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "relationship". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "relationship". Invalidates - // all iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "relationship". Invalidates - // all iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "relationship". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "relationship". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "relationship". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "relationship". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "relationship". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "relationship". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "relationship". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "relationship". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "relationship". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "relationship". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "relationship". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "relationship", regardless of its type. Panics if the - // index is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "relationship". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "relationship". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "relationship". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "relationship". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "relationship". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "relationship". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "relationship". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "relationship". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "relationship". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "relationship". Panics if the - // index is out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "relationship". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "relationship". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "relationship". Panics if the index is out - // of bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "relationship". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - // Panics if the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "relationship" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_replies_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_replies_interface.go deleted file mode 100644 index 89ab2ec45..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_replies_interface.go +++ /dev/null @@ -1,124 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Identifies a Collection containing objects considered to be responses to this -// object. -// -// Example 104 (https://www.w3.org/TR/activitystreams-vocabulary/#ex112-jsonld): -// { -// "content": "I am fine.", -// "id": "http://www.test.example/notes/1", -// "replies": { -// "items": { -// "content": "I am glad to hear it.", -// "inReplyTo": "http://www.test.example/notes/1", -// "summary": "A response to the note", -// "type": "Note" -// }, -// "totalItems": 1, -// "type": "Collection" -// }, -// "summary": "A simple note", -// "type": "Note" -// } -type ActivityStreamsRepliesProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsRepliesProperty) bool - // Name returns the name of this property: "replies". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_result_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_result_interface.go deleted file mode 100644 index d028b6b48..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_result_interface.go +++ /dev/null @@ -1,1793 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsResultPropertyIterator represents a single value for the -// "result" property. -type ActivityStreamsResultPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsResultPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsResult". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsResultPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsResultPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Describes the result of the activity. For instance, if a particular action -// results in the creation of a new resource, the result property can be used -// to describe that new resource. -// -// Example 103 (https://www.w3.org/TR/activitystreams-vocabulary/#ex108-jsonld): -// { -// "actor": "http://sally.example.org", -// "object": "http://example.org/flights/1", -// "result": { -// "name": "On Time", -// "type": "http://www.types.example/flightstatus" -// }, -// "summary": "Sally checked that her flight was on time", -// "type": [ -// "Activity", -// "http://www.verbs.example/Check" -// ] -// } -type ActivityStreamsResultProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "result". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "result". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "result". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "result". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "result". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "result". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "result". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "result". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "result". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "result". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "result". Invalidates iterators that - // are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "result" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "result". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "result". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "result". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsResultPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsResultPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsResultPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "result". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "result". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "result". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "result". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "result". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "result". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "result". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "result". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "result". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "result". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "result". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "result". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "result". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "result". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "result". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "result". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "result". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "result". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "result". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "result". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "result". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "result". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "result" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsResultProperty) bool - // Name returns the name of this property ("result") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "result". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "result". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "result". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "result". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "result". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "result". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "result". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "result". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "result". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "result". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "result". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "result". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "result". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "result". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "result". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "result". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "result". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "result". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "result". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "result". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "result". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "result". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "result". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "result". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "result", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "result". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "result". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "result". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "result". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "result". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "result". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "result". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "result". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "result". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "result". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "result". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "result". Panics if the index is - // out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "result". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "result". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "result". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "result". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "result" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_shares_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_shares_interface.go deleted file mode 100644 index f0eafd3e9..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_shares_interface.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// This is a list of all Announce activities with this object as the object -// property -type ActivityStreamsSharesProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsSharesProperty) bool - // Name returns the name of this property: "shares". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_source_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_source_interface.go deleted file mode 100644 index 546bfe82e..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_source_interface.go +++ /dev/null @@ -1,773 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// The source property is intended to convey some sort of source from which the -// content markup was derived, as a form of provenance, or to support future -// editing by clients. -// -// Example 8 (https://www.w3.org/TR/activitypub/#source-property): -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// { -// "@language": "en" -// } -// ], -// "content": "\u003cp\u003eI \u003cem\u003ereally\u003c/em\u003e like -// strawberries!\u003c/p\u003e", -// "id": "http://postparty.example/p/2415", -// "source": { -// "content": "I *really* like strawberries!", -// "mediaType": "text/markdown" -// }, -// "type": "Note" -// } -type ActivityStreamsSourceProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsSourceProperty) bool - // Name returns the name of this property: "source". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_startIndex_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_startIndex_interface.go deleted file mode 100644 index 32b6fe4cd..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_startIndex_interface.go +++ /dev/null @@ -1,72 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// A non-negative integer value identifying the relative position within the -// logical view of a strictly ordered collection. -// -// Example 132 (https://www.w3.org/TR/activitystreams-vocabulary/#ex150-jsonld): -// { -// "orderedItems": [ -// { -// "name": "Density of Water", -// "type": "Note" -// }, -// { -// "name": "Air Mattress Idea", -// "type": "Note" -// } -// ], -// "startIndex": 0, -// "summary": "Page 1 of Sally's notes", -// "type": "OrderedCollectionPage" -// } -type ActivityStreamsStartIndexProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return false. - Clear() - // Get returns the value of this property. When - // IsXMLSchemaNonNegativeInteger returns false, Get will return any - // arbitrary value. - Get() int - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaNonNegativeInteger returns true if this property is set and - // not an IRI. - IsXMLSchemaNonNegativeInteger() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsStartIndexProperty) bool - // Name returns the name of this property: "startIndex". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return true. - Set(v int) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_startTime_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_startTime_interface.go deleted file mode 100644 index a843b07c7..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_startTime_interface.go +++ /dev/null @@ -1,65 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import ( - "net/url" - "time" -) - -// The date and time describing the actual or expected starting time of the -// object. When used with an Activity object, for instance, the startTime -// property specifies the moment the activity began or is scheduled to begin. -// -// Example 129 (https://www.w3.org/TR/activitystreams-vocabulary/#ex146-jsonld): -// { -// "endTime": "2015-01-01T06:00:00-08:00", -// "name": "Going-Away Party for Jim", -// "startTime": "2014-12-31T23:00:00-08:00", -// "type": "Event" -// } -type ActivityStreamsStartTimeProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaDateTime afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaDateTime - // returns false, Get will return any arbitrary value. - Get() time.Time - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaDateTime returns true if this property is set and not an IRI. - IsXMLSchemaDateTime() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsStartTimeProperty) bool - // Name returns the name of this property: "startTime". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaDateTime - // afterwards will return true. - Set(v time.Time) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_streams_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_streams_interface.go deleted file mode 100644 index 1a1814f3a..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_streams_interface.go +++ /dev/null @@ -1,252 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsStreamsPropertyIterator represents a single value for the -// "streams" property. -type ActivityStreamsStreamsPropertyIterator interface { - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsStreamsPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsStreams". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsStreamsPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsStreamsPropertyIterator - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// A list of supplementary Collections which may be of interest -type ActivityStreamsStreamsProperty interface { - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "streams". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "streams". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "streams". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "streams". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendIRI appends an IRI value to the back of a list of the property - // "streams" - AppendIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "streams". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsStreamsPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsStreamsPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsStreamsPropertyIterator - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "streams". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "streams". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "streams". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "streams". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // Insert inserts an IRI value at the specified index for a property - // "streams". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "streams". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "streams" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsStreamsProperty) bool - // Name returns the name of this property ("streams") with any alias. - Name() string - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "streams". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "streams". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "streams". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "streams". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependIRI prepends an IRI value to the front of a list of the property - // "streams". - PrependIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "streams". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "streams", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "streams". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "streams". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "streams". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "streams". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetIRI sets an IRI value to be at the specified index for the property - // "streams". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetType sets an arbitrary type value to the specified index of the - // property "streams". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "streams" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_subject_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_subject_interface.go deleted file mode 100644 index 897cb3259..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_subject_interface.go +++ /dev/null @@ -1,770 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// On a Relationship object, the subject property identifies one of the connected -// individuals. For instance, for a Relationship object describing "John is -// related to Sally", subject would refer to John. -// -// Example 139 (https://www.w3.org/TR/activitystreams-vocabulary/#ex22a-jsonld): -// { -// "object": { -// "name": "John", -// "type": "Person" -// }, -// "relationship": "http://purl.org/vocab/relationship/acquaintanceOf", -// "subject": { -// "name": "Sally", -// "type": "Person" -// }, -// "summary": "Sally is an acquaintance of John's", -// "type": "Relationship" -// } -type ActivityStreamsSubjectProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsSubjectProperty) bool - // Name returns the name of this property: "subject". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_summary_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_summary_interface.go deleted file mode 100644 index 2fe7238b6..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_summary_interface.go +++ /dev/null @@ -1,198 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsSummaryPropertyIterator represents a single value for the -// "summary" property. -type ActivityStreamsSummaryPropertyIterator interface { - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetLanguage returns the value for the specified BCP47 language code, or - // an empty string if it is either not a language map or no value is - // present. - GetLanguage(bcp47 string) string - // GetRDFLangString returns the value of this property. When - // IsRDFLangString returns false, GetRDFLangString will return an - // arbitrary value. - GetRDFLangString() map[string]string - // GetXMLSchemaString returns the value of this property. When - // IsXMLSchemaString returns false, GetXMLSchemaString will return an - // arbitrary value. - GetXMLSchemaString() string - // HasAny returns true if any of the values are set, except for the - // natural language map. When true, the specific has, getter, and - // setter methods may be used to determine what kind of value there is - // to access and set this property. To determine if the property was - // set as a natural language map, use the IsRDFLangString method - // instead. - HasAny() bool - // HasLanguage returns true if the natural language map has an entry for - // the specified BCP47 language code. - HasLanguage(bcp47 string) bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsRDFLangString returns true if this property has a type of - // "langString". When true, use the GetRDFLangString and - // SetRDFLangString methods to access and set this property.. To - // determine if the property was set as a natural language map, use - // the IsRDFLangString method instead. - IsRDFLangString() bool - // IsXMLSchemaString returns true if this property has a type of "string". - // When true, use the GetXMLSchemaString and SetXMLSchemaString - // methods to access and set this property.. To determine if the - // property was set as a natural language map, use the IsRDFLangString - // method instead. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsSummaryPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsSummary". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsSummaryPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsSummaryPropertyIterator - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetLanguage sets the value for the specified BCP47 language code. - SetLanguage(bcp47, value string) - // SetRDFLangString sets the value of this property and clears the natural - // language map. Calling IsRDFLangString afterwards will return true. - // Calling IsRDFLangString afterwards returns false. - SetRDFLangString(v map[string]string) - // SetXMLSchemaString sets the value of this property and clears the - // natural language map. Calling IsXMLSchemaString afterwards will - // return true. Calling IsRDFLangString afterwards returns false. - SetXMLSchemaString(v string) -} - -// A natural language summarization of the object encoded as HTML. Multiple -// language tagged summaries MAY be provided. -// -// Example 133 (https://www.w3.org/TR/activitystreams-vocabulary/#ex152-jsonld): -// { -// "name": "Cane Sugar Processing", -// "summary": "A simple \u003cem\u003enote\u003c/em\u003e", -// "type": "Note" -// } -// -// Example 134 (https://www.w3.org/TR/activitystreams-vocabulary/#ex153-jsonld): -// { -// "name": "Cane Sugar Processing", -// "summaryMap": { -// "en": "A simple \u003cem\u003enote\u003c/em\u003e", -// "es": "Una \u003cem\u003enota\u003c/em\u003e sencilla", -// "zh-hans": "一段\u003cem\u003e简单的\u003c/em\u003e笔记" -// }, -// "type": "Note" -// } -type ActivityStreamsSummaryProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "summary" - AppendIRI(v *url.URL) - // AppendRDFLangString appends a langString value to the back of a list of - // the property "summary". Invalidates iterators that are traversing - // using Prev. - AppendRDFLangString(v map[string]string) - // AppendXMLSchemaString appends a string value to the back of a list of - // the property "summary". Invalidates iterators that are traversing - // using Prev. - AppendXMLSchemaString(v string) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsSummaryPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsSummaryPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsSummaryPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "summary". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertRDFLangString inserts a langString value at the specified index - // for a property "summary". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertRDFLangString(idx int, v map[string]string) - // InsertXMLSchemaString inserts a string value at the specified index for - // a property "summary". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertXMLSchemaString(idx int, v string) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "summary" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsSummaryProperty) bool - // Name returns the name of this property ("summary") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "summary". - PrependIRI(v *url.URL) - // PrependRDFLangString prepends a langString value to the front of a list - // of the property "summary". Invalidates all iterators. - PrependRDFLangString(v map[string]string) - // PrependXMLSchemaString prepends a string value to the front of a list - // of the property "summary". Invalidates all iterators. - PrependXMLSchemaString(v string) - // Remove deletes an element at the specified index from a list of the - // property "summary", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetIRI sets an IRI value to be at the specified index for the property - // "summary". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetRDFLangString sets a langString value to be at the specified index - // for the property "summary". Panics if the index is out of bounds. - // Invalidates all iterators. - SetRDFLangString(idx int, v map[string]string) - // SetXMLSchemaString sets a string value to be at the specified index for - // the property "summary". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaString(idx int, v string) - // Swap swaps the location of values at two indices for the "summary" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_tag_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_tag_interface.go deleted file mode 100644 index 9b6d5b857..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_tag_interface.go +++ /dev/null @@ -1,1787 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsTagPropertyIterator represents a single value for the "tag" -// property. -type ActivityStreamsTagPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsTagPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsTag". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsTagPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsTagPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// One or more "tags" that have been associated with an objects. A tag can be any -// kind of Object. The key difference between attachment and tag is that the -// former implies association by inclusion, while the latter implies -// associated by reference. -// -// Example 105 (https://www.w3.org/TR/activitystreams-vocabulary/#ex118-jsonld): -// { -// "summary": "Picture of Sally", -// "tag": { -// "id": "http://sally.example.org", -// "name": "Sally", -// "type": "Person" -// }, -// "type": "Image", -// "url": "http://example.org/sally.jpg" -// } -type ActivityStreamsTagProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "tag". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "tag". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "tag". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "tag". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "tag". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "tag". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "tag". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "tag". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "tag". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "tag". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "tag". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "tag". Invalidates iterators that - // are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "tag" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "tag". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "tag". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "tag". Invalidates iterators that are traversing using - // Prev. Returns an error if the type is not a valid one to set for - // this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsTagPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsTagPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsTagPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "tag". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "tag". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "tag". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "tag". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "tag". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "tag". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "tag". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "tag". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "tag". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "tag". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "tag". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "tag". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "tag". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "tag". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "tag" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsTagProperty) bool - // Name returns the name of this property ("tag") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "tag". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "tag". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "tag". Invalidates all - // iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "tag". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "tag". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "tag". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "tag". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "tag". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "tag". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "tag". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "tag". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "tag". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "tag". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "tag". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "tag". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "tag". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "tag". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "tag". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "tag", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "tag". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "tag". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "tag". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "tag". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "tag". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "tag". Panics - // if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "tag". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "tag". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "tag". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "tag". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "tag". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "tag". Panics if the index is out of bounds. Invalidates - // all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "tag". Panics if the index is out - // of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "tag". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "tag". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "tag". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "tag". Invalidates all iterators. Returns an error if the - // type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "tag" property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_target_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_target_interface.go deleted file mode 100644 index 4d84262c0..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_target_interface.go +++ /dev/null @@ -1,1801 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsTargetPropertyIterator represents a single value for the -// "target" property. -type ActivityStreamsTargetPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsTargetPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsTarget". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsTargetPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsTargetPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Describes the indirect object, or target, of the activity. The precise meaning -// of the target is largely dependent on the type of action being described -// but will often be the object of the English preposition "to". For instance, -// in the activity "John added a movie to his wishlist", the target of the -// activity is John's wishlist. An activity can have more than one target. -// -// Example 106 (https://www.w3.org/TR/activitystreams-vocabulary/#ex120-jsonld): -// { -// "actor": "http://sally.example.org", -// "object": "http://example.org/posts/1", -// "summary": "Sally offered the post to John", -// "target": "http://john.example.org", -// "type": "Offer" -// } -// -// Example 107 (https://www.w3.org/TR/activitystreams-vocabulary/#ex121-jsonld): -// { -// "actor": "http://sally.example.org", -// "object": "http://example.org/posts/1", -// "summary": "Sally offered the post to John", -// "target": { -// "name": "John", -// "type": "Person" -// }, -// "type": "Offer" -// } -type ActivityStreamsTargetProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "target". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "target". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "target". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "target". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "target". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "target". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "target". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "target". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "target". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "target". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "target". Invalidates iterators that - // are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "target" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "target". Invalidates iterators that are traversing using - // Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "target". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "target". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsTargetPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsTargetPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsTargetPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "target". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "target". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "target". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "target". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "target". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "target". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "target". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "target". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "target". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "target". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "target". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "target". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "target". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "target". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "target". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "target". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "target". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "target". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "target". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "target". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "target". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "target". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "target" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsTargetProperty) bool - // Name returns the name of this property ("target") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "target". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "target". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "target". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "target". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "target". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "target". Invalidates - // all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "target". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "target". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "target". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "target". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "target". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "target". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "target". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "target". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "target". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "target". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "target". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "target". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "target". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "target". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "target". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "target". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "target". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "target". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "target", regardless of its type. Panics if the index is - // out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "target". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "target". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "target". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "target". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "target". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "target". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "target". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "target". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "target". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "target". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "target". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "target". Panics if the index is - // out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "target". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "target". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "target". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "target". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "target" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_to_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_to_interface.go deleted file mode 100644 index 8c7ffc0fd..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_to_interface.go +++ /dev/null @@ -1,1779 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsToPropertyIterator represents a single value for the "to" -// property. -type ActivityStreamsToPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsToPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsTo". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsToPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsToPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies an entity considered to be part of the public primary audience of an -// Object -// -// Example 108 (https://www.w3.org/TR/activitystreams-vocabulary/#ex123-jsonld): -// { -// "actor": "http://sally.example.org", -// "object": "http://example.org/posts/1", -// "summary": "Sally offered the post to John", -// "target": "http://john.example.org", -// "to": "http://joe.example.org", -// "type": "Offer" -// } -type ActivityStreamsToProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "to". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "to". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "to". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "to". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "to". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "to". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "to". Invalidates iterators that are traversing - // using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "to". Invalidates iterators that are traversing using Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "to" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "to". Invalidates iterators that are traversing using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "to". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "to". Invalidates iterators that are traversing using - // Prev. Returns an error if the type is not a valid one to set for - // this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsToPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsToPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsToPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "to". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "to". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "to". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "to". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property "to". - // Existing elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "to". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "to". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "to". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "to" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsToProperty) bool - // Name returns the name of this property ("to") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "to". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "to". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "to". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "to". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "to". Invalidates all - // iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "to". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "to". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "to". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "to". Invalidates all - // iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "to". Invalidates all - // iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "to". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "to". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "to". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "to". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "to". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "to". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "to". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "to". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "to". Invalidates all iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "to". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "to". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "to". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "to". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "to", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "to". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "to". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "to". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "to". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "to". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "to". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "to". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "to". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "to". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "to". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "to". Panics if the index is out - // of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "to". Panics if the index is out of bounds. Invalidates - // all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "to". Panics if the index is out - // of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "to". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "to". Panics if the index is out of bounds. Invalidates - // all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "to". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "to". Invalidates all iterators. Returns an error if the - // type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "to" property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_totalItems_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_totalItems_interface.go deleted file mode 100644 index 314d53d38..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_totalItems_interface.go +++ /dev/null @@ -1,73 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// A non-negative integer specifying the total number of objects contained by the -// logical view of the collection. This number might not reflect the actual -// number of items serialized within the Collection object instance. -// -// Example 135 (https://www.w3.org/TR/activitystreams-vocabulary/#ex156-jsonld): -// { -// "items": [ -// { -// "name": "Which Staircase Should I Use", -// "type": "Note" -// }, -// { -// "name": "Something to Remember", -// "type": "Note" -// } -// ], -// "summary": "Sally's notes", -// "totalItems": 2, -// "type": "Collection" -// } -type ActivityStreamsTotalItemsProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return false. - Clear() - // Get returns the value of this property. When - // IsXMLSchemaNonNegativeInteger returns false, Get will return any - // arbitrary value. - Get() int - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaNonNegativeInteger returns true if this property is set and - // not an IRI. - IsXMLSchemaNonNegativeInteger() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsTotalItemsProperty) bool - // Name returns the name of this property: "totalItems". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return true. - Set(v int) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_units_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_units_interface.go deleted file mode 100644 index 9bdb22734..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_units_interface.go +++ /dev/null @@ -1,79 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Specifies the measurement units for the radius and altitude properties on a -// Place object. If not specified, the default is assumed to be "m" for -// "meters". -// -// Example 136 (https://www.w3.org/TR/activitystreams-vocabulary/#ex157-jsonld): -// { -// "latitude": 36.75, -// "longitude": 119.7667, -// "name": "Fresno Area", -// "radius": 15, -// "type": "Place", -// "units": "miles" -// } -type ActivityStreamsUnitsProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetXMLSchemaAnyURI returns the value of this property. When - // IsXMLSchemaAnyURI returns false, GetXMLSchemaAnyURI will return an - // arbitrary value. - GetXMLSchemaAnyURI() *url.URL - // GetXMLSchemaString returns the value of this property. When - // IsXMLSchemaString returns false, GetXMLSchemaString will return an - // arbitrary value. - GetXMLSchemaString() string - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property has a type of "anyURI". - // When true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI - // methods to access and set this property. - IsXMLSchemaAnyURI() bool - // IsXMLSchemaString returns true if this property has a type of "string". - // When true, use the GetXMLSchemaString and SetXMLSchemaString - // methods to access and set this property. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsUnitsProperty) bool - // Name returns the name of this property: "units". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetXMLSchemaAnyURI sets the value of this property. Calling - // IsXMLSchemaAnyURI afterwards returns true. - SetXMLSchemaAnyURI(v *url.URL) - // SetXMLSchemaString sets the value of this property. Calling - // IsXMLSchemaString afterwards returns true. - SetXMLSchemaString(v string) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_updated_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_updated_interface.go deleted file mode 100644 index c17b1e77a..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_updated_interface.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import ( - "net/url" - "time" -) - -// The date and time at which the object was updated -// -// Example 137 (https://www.w3.org/TR/activitystreams-vocabulary/#ex158-jsonld): -// { -// "content": "Mush it up so it does not have the same shape as the can.", -// "name": "Cranberry Sauce Idea", -// "type": "Note", -// "updated": "2014-12-12T12:12:12Z" -// } -type ActivityStreamsUpdatedProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaDateTime afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaDateTime - // returns false, Get will return any arbitrary value. - Get() time.Time - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaDateTime returns true if this property is set and not an IRI. - IsXMLSchemaDateTime() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsUpdatedProperty) bool - // Name returns the name of this property: "updated". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaDateTime - // afterwards will return true. - Set(v time.Time) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_url_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_url_interface.go deleted file mode 100644 index e54dc09d8..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_url_interface.go +++ /dev/null @@ -1,244 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ActivityStreamsUrlPropertyIterator represents a single value for the "url" -// property. -type ActivityStreamsUrlPropertyIterator interface { - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // GetXMLSchemaAnyURI returns the value of this property. When - // IsXMLSchemaAnyURI returns false, GetXMLSchemaAnyURI will return an - // arbitrary value. - GetXMLSchemaAnyURI() *url.URL - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property has a type of "anyURI". - // When true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI - // methods to access and set this property. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsUrlPropertyIterator) bool - // Name returns the name of this property: "ActivityStreamsUrl". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ActivityStreamsUrlPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ActivityStreamsUrlPropertyIterator - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error - // SetXMLSchemaAnyURI sets the value of this property. Calling - // IsXMLSchemaAnyURI afterwards returns true. - SetXMLSchemaAnyURI(v *url.URL) -} - -// Identifies one or more links to representations of the object -// -// Example 109 (https://www.w3.org/TR/activitystreams-vocabulary/#ex124-jsonld): -// { -// "name": "4Q Sales Forecast", -// "type": "Document", -// "url": "http://example.org/4q-sales-forecast.pdf" -// } -// -// Example 110 (https://www.w3.org/TR/activitystreams-vocabulary/#ex125-jsonld): -// { -// "name": "4Q Sales Forecast", -// "type": "Document", -// "url": { -// "type": "owl:Class", -// "url": "http://example.org/4q-sales-forecast.pdf" -// } -// } -// -// Example 111 (https://www.w3.org/TR/activitystreams-vocabulary/#ex126-jsonld): -// { -// "name": "4Q Sales Forecast", -// "type": "Document", -// "url": [ -// { -// "mediaType": "application/pdf", -// "type": "owl:Class", -// "url": "http://example.org/4q-sales-forecast.pdf" -// }, -// { -// "mediaType": "text/html", -// "type": "owl:Class", -// "url": "http://example.org/4q-sales-forecast.html" -// } -// ] -// } -type ActivityStreamsUrlProperty interface { - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "url". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "url". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendIRI appends an IRI value to the back of a list of the property - // "url" - AppendIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "url". Invalidates iterators that are traversing using - // Prev. Returns an error if the type is not a valid one to set for - // this property. - AppendType(t Type) error - // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of - // the property "url". Invalidates iterators that are traversing using - // Prev. - AppendXMLSchemaAnyURI(v *url.URL) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ActivityStreamsUrlPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ActivityStreamsUrlPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ActivityStreamsUrlPropertyIterator - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "url". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "url". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // Insert inserts an IRI value at the specified index for a property - // "url". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "url". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for - // a property "url". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertXMLSchemaAnyURI(idx int, v *url.URL) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "url" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsUrlProperty) bool - // Name returns the name of this property ("url") with any alias. - Name() string - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "url". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "url". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependIRI prepends an IRI value to the front of a list of the property - // "url". - PrependIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "url". Invalidates all iterators. Returns an error if - // the type is not a valid one to set for this property. - PrependType(t Type) error - // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list - // of the property "url". Invalidates all iterators. - PrependXMLSchemaAnyURI(v *url.URL) - // Remove deletes an element at the specified index from a list of the - // property "url", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "url". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "url". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetIRI sets an IRI value to be at the specified index for the property - // "url". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetType sets an arbitrary type value to the specified index of the - // property "url". Invalidates all iterators. Returns an error if the - // type is not a valid one to set for this property. Panics if the - // index is out of bounds. - SetType(idx int, t Type) error - // SetXMLSchemaAnyURI sets a anyURI value to be at the specified index for - // the property "url". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaAnyURI(idx int, v *url.URL) - // Swap swaps the location of values at two indices for the "url" property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_width_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_width_interface.go deleted file mode 100644 index 6341cea53..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_activitystreams_width_interface.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// On a Link, specifies a hint as to the rendering width in device-independent -// pixels of the linked resource. -// -// Example 138 (https://www.w3.org/TR/activitystreams-vocabulary/#ex159-jsonld): -// { -// "height": 100, -// "type": "Link", -// "url": "http://example.org/image.png", -// "width": 100 -// } -type ActivityStreamsWidthProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return false. - Clear() - // Get returns the value of this property. When - // IsXMLSchemaNonNegativeInteger returns false, Get will return any - // arbitrary value. - Get() int - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaNonNegativeInteger returns true if this property is set and - // not an IRI. - IsXMLSchemaNonNegativeInteger() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ActivityStreamsWidthProperty) bool - // Name returns the name of this property: "width". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return true. - Set(v int) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_assignedTo_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_assignedTo_interface.go deleted file mode 100644 index b3076aa7a..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_assignedTo_interface.go +++ /dev/null @@ -1,60 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Identifies the Person assigned to work on this Ticket. -type ForgeFedAssignedToProperty interface { - // Clear ensures no value of this property is set. Calling - // IsActivityStreamsPerson afterwards will return false. - Clear() - // Get returns the value of this property. When IsActivityStreamsPerson - // returns false, Get will return any arbitrary value. - Get() ActivityStreamsPerson - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsActivityStreamsPerson returns true if this property is set and not an - // IRI. - IsActivityStreamsPerson() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedAssignedToProperty) bool - // Name returns the name of this property: "assignedTo". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsActivityStreamsPerson - // afterwards will return true. - Set(v ActivityStreamsPerson) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_committedBy_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_committedBy_interface.go deleted file mode 100644 index c7a896eca..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_committedBy_interface.go +++ /dev/null @@ -1,738 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Identifies the actor (usually a person, but could be something else, e.g. a -// bot) that added a set of changes to the version-control Repository. -// Sometimes the author of the changes and the committer of those changes -// aren’t the same actor, in which case the committedBy property can be used -// to specify who added the changes to the repository. For example, when -// applying a patch to a repository, e.g. a Git repository, the author would -// be the person who made the patch, and the committer would be the person who -// applied the patch to their copy of the repository. -type ForgeFedCommittedByProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedCommittedByProperty) bool - // Name returns the name of this property: "committedBy". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_committed_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_committed_interface.go deleted file mode 100644 index d413e4bb8..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_committed_interface.go +++ /dev/null @@ -1,60 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import ( - "net/url" - "time" -) - -// Specifies the time that a set of changes was committed into the Repository and -// became a Commit in it. This can be different from the time the set of -// changes was produced, e.g. if one person creates a patch and sends to -// another, and the other person then applies the patch to their copy of the -// repository. We call the former event "created" and the latter event -// "committed", and this latter event is specified by the committed property. -type ForgeFedCommittedProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaDateTime afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaDateTime - // returns false, Get will return any arbitrary value. - Get() time.Time - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaDateTime returns true if this property is set and not an IRI. - IsXMLSchemaDateTime() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedCommittedProperty) bool - // Name returns the name of this property: "committed". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaDateTime - // afterwards will return true. - Set(v time.Time) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_dependants_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_dependants_interface.go deleted file mode 100644 index b35ca2f5c..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_dependants_interface.go +++ /dev/null @@ -1,82 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Identifies a Collection of TicketDependency which specify tickets that depends -// on this Ticket, i.e. this ticket is the object of the dependsOn -// relationship. Often called "reverse dependencies". -type ForgeFedDependantsProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedDependantsProperty) bool - // Name returns the name of this property: "dependants". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_dependedBy_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_dependedBy_interface.go deleted file mode 100644 index c16581397..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_dependedBy_interface.go +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ForgeFedDependedByPropertyIterator represents a single value for the -// "dependedBy" property. -type ForgeFedDependedByPropertyIterator interface { - // Get returns the value of this property. When IsForgeFedTicket returns - // false, Get will return any arbitrary value. - Get() ForgeFedTicket - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsForgeFedTicket returns true if this property is set and not an IRI. - IsForgeFedTicket() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedDependedByPropertyIterator) bool - // Name returns the name of this property: "ForgeFedDependedBy". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ForgeFedDependedByPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ForgeFedDependedByPropertyIterator - // Set sets the value of this property. Calling IsForgeFedTicket - // afterwards will return true. - Set(v ForgeFedTicket) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies one or more tickets which depend on this Ticket, i.e. they can’t -// be resolved without this tickets being resolved too. -type ForgeFedDependedByProperty interface { - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "dependedBy". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendIRI appends an IRI value to the back of a list of the property - // "dependedBy" - AppendIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "dependedBy". Invalidates iterators that are - // traversing using Prev. Returns an error if the type is not a valid - // one to set for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ForgeFedDependedByPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ForgeFedDependedByPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ForgeFedDependedByPropertyIterator - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "dependedBy". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // Insert inserts an IRI value at the specified index for a property - // "dependedBy". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "dependedBy". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "dependedBy" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedDependedByProperty) bool - // Name returns the name of this property ("dependedBy") with any alias. - Name() string - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "dependedBy". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependIRI prepends an IRI value to the front of a list of the property - // "dependedBy". - PrependIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "dependedBy". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "dependedBy", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a Ticket value to be at the specified index for the property - // "dependedBy". Panics if the index is out of bounds. Invalidates all - // iterators. - Set(idx int, v ForgeFedTicket) - // SetIRI sets an IRI value to be at the specified index for the property - // "dependedBy". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetType sets an arbitrary type value to the specified index of the - // property "dependedBy". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. Panics if - // the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "dependedBy" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_dependencies_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_dependencies_interface.go deleted file mode 100644 index e7ef8d85e..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_dependencies_interface.go +++ /dev/null @@ -1,82 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Identifies a Collection of TicketDependency which specify tickets that this -// Ticket depends on, i.e. this ticket is the subject of the dependsOn -// relationship. -type ForgeFedDependenciesProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedDependenciesProperty) bool - // Name returns the name of this property: "dependencies". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_dependsOn_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_dependsOn_interface.go deleted file mode 100644 index fcee3af60..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_dependsOn_interface.go +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ForgeFedDependsOnPropertyIterator represents a single value for the "dependsOn" -// property. -type ForgeFedDependsOnPropertyIterator interface { - // Get returns the value of this property. When IsForgeFedTicket returns - // false, Get will return any arbitrary value. - Get() ForgeFedTicket - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsForgeFedTicket returns true if this property is set and not an IRI. - IsForgeFedTicket() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedDependsOnPropertyIterator) bool - // Name returns the name of this property: "ForgeFedDependsOn". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ForgeFedDependsOnPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ForgeFedDependsOnPropertyIterator - // Set sets the value of this property. Calling IsForgeFedTicket - // afterwards will return true. - Set(v ForgeFedTicket) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies one or more tickets on which this Ticket depends, i.e. it can’t be -// resolved without those tickets being resolved too. -type ForgeFedDependsOnProperty interface { - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "dependsOn". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendIRI appends an IRI value to the back of a list of the property - // "dependsOn" - AppendIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "dependsOn". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ForgeFedDependsOnPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ForgeFedDependsOnPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ForgeFedDependsOnPropertyIterator - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "dependsOn". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // Insert inserts an IRI value at the specified index for a property - // "dependsOn". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "dependsOn". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "dependsOn" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedDependsOnProperty) bool - // Name returns the name of this property ("dependsOn") with any alias. - Name() string - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "dependsOn". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependIRI prepends an IRI value to the front of a list of the property - // "dependsOn". - PrependIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "dependsOn". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "dependsOn", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a Ticket value to be at the specified index for the property - // "dependsOn". Panics if the index is out of bounds. Invalidates all - // iterators. - Set(idx int, v ForgeFedTicket) - // SetIRI sets an IRI value to be at the specified index for the property - // "dependsOn". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetType sets an arbitrary type value to the specified index of the - // property "dependsOn". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. Panics if - // the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "dependsOn" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_description_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_description_interface.go deleted file mode 100644 index 5ceba68d7..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_description_interface.go +++ /dev/null @@ -1,752 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Specifies the description text of a Commit, which is an optional possibly -// multi-line text provided in addition to the one-line commit title. The -// range of the description property works the same way the range of the -// ActivityPub source property works. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://forgefed.peers.community/ns" -// ], -// "attributedTo": "https://example.org/bob", -// "context": "https://example.org/alice/myrepo", -// "created": "2019-07-11T12:34:56Z", -// "description": { -// "content": "It's about time people can install on their computers!", -// "mediaType": "text/plain" -// }, -// "hash": "109ec9a09c7df7fec775d2ba0b9d466e5643ec8c", -// "id": "https://example.org/alice/myrepo/commits/109ec9a09c7df7fec775d2ba0b9d466e5643ec8c", -// "summary": "Add an installation script, fixes issue #89", -// "type": "Commit" -// } -type ForgeFedDescriptionProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedDescriptionProperty) bool - // Name returns the name of this property: "description". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_earlyItems_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_earlyItems_interface.go deleted file mode 100644 index df1ef96f7..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_earlyItems_interface.go +++ /dev/null @@ -1,1813 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ForgeFedEarlyItemsPropertyIterator represents a single value for the -// "earlyItems" property. -type ForgeFedEarlyItemsPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsLink returns the value of this property. When - // IsActivityStreamsLink returns false, GetActivityStreamsLink will - // return an arbitrary value. - GetActivityStreamsLink() ActivityStreamsLink - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMention returns the value of this property. When - // IsActivityStreamsMention returns false, GetActivityStreamsMention - // will return an arbitrary value. - GetActivityStreamsMention() ActivityStreamsMention - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsLink returns true if this property has a type of - // "Link". When true, use the GetActivityStreamsLink and - // SetActivityStreamsLink methods to access and set this property. - IsActivityStreamsLink() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMention returns true if this property has a type of - // "Mention". When true, use the GetActivityStreamsMention and - // SetActivityStreamsMention methods to access and set this property. - IsActivityStreamsMention() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedEarlyItemsPropertyIterator) bool - // Name returns the name of this property: "ForgeFedEarlyItems". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ForgeFedEarlyItemsPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ForgeFedEarlyItemsPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsLink sets the value of this property. Calling - // IsActivityStreamsLink afterwards returns true. - SetActivityStreamsLink(v ActivityStreamsLink) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMention sets the value of this property. Calling - // IsActivityStreamsMention afterwards returns true. - SetActivityStreamsMention(v ActivityStreamsMention) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// In an ordered collection (or an ordered collection page) in which items (or -// orderedItems) contains a continuous subset of the collection’s items from -// one end, earlyItems identifiers a continuous subset from the other end. For -// example, if items lists the chronologically latest items, earlyItems would -// list the chrologically earliest items. The ordering rule for items in -// earlyItems MUST be the same as in items. For examle, if items lists items -// in reverse chronogical order, then so does earlyItems. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://forgefed.peers.community/ns" -// ], -// "earlyItems": [ -// "https://dev.example/aviva/outbox/3", -// "https://dev.example/aviva/outbox/2", -// "https://dev.example/aviva/outbox/1" -// ], -// "id": "https://dev.example/aviva/outbox", -// "orderedItems": [ -// "https://dev.example/aviva/outbox/712", -// "https://dev.example/aviva/outbox/711", -// "https://dev.example/aviva/outbox/710" -// ], -// "totalItems": 712, -// "type": "OrderedCollection" -// } -type ForgeFedEarlyItemsProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "earlyItems". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "earlyItems". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "earlyItems". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "earlyItems". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsLink appends a Link value to the back of a list of - // the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLink(v ActivityStreamsLink) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMention appends a Mention value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMention(v ActivityStreamsMention) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "earlyItems". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "earlyItems". Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "earlyItems". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "earlyItems". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "earlyItems". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "earlyItems". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "earlyItems". Invalidates iterators that are traversing - // using Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "earlyItems". Invalidates iterators - // that are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "earlyItems" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "earlyItems". Invalidates iterators that are traversing - // using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "earlyItems". Invalidates iterators that are - // traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "earlyItems". Invalidates iterators that are - // traversing using Prev. Returns an error if the type is not a valid - // one to set for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ForgeFedEarlyItemsPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ForgeFedEarlyItemsPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ForgeFedEarlyItemsPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "earlyItems". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "earlyItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "earlyItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "earlyItems". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "earlyItems". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsLink inserts a Link value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLink(idx int, v ActivityStreamsLink) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMention inserts a Mention value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMention(idx int, v ActivityStreamsMention) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "earlyItems". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "earlyItems". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "earlyItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "earlyItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "earlyItems". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "earlyItems". Existing elements - // at that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "earlyItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "earlyItems". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "earlyItems". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "earlyItems". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "earlyItems". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "earlyItems". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "earlyItems". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "earlyItems". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "earlyItems". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "earlyItems". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "earlyItems". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "earlyItems" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedEarlyItemsProperty) bool - // Name returns the name of this property ("earlyItems") with any alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "earlyItems". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "earlyItems". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "earlyItems". Invalidates all - // iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "earlyItems". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsLink prepends a Link value to the front of a list - // of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsLink(v ActivityStreamsLink) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMention prepends a Mention value to the front of - // a list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsMention(v ActivityStreamsMention) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "earlyItems". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "earlyItems". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "earlyItems". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "earlyItems". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "earlyItems". Invalidates - // all iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "earlyItems". Invalidates - // all iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "earlyItems". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "earlyItems". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "earlyItems". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "earlyItems". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "earlyItems". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "earlyItems". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "earlyItems". Invalidates all - // iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "earlyItems". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "earlyItems". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "earlyItems". Invalidates all iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "earlyItems". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "earlyItems", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "earlyItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "earlyItems". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "earlyItems". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "earlyItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property "earlyItems". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsLink sets a Link value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLink(idx int, v ActivityStreamsLink) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMention sets a Mention value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMention(idx int, v ActivityStreamsMention) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "earlyItems". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property "earlyItems". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "earlyItems". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "earlyItems". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "earlyItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "earlyItems". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "earlyItems". Panics if the index - // is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "earlyItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "earlyItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "earlyItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "earlyItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "earlyItems". Panics if the index - // is out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "earlyItems". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "earlyItems". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "earlyItems". Panics if the index is out of - // bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "earlyItems". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. Panics if - // the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "earlyItems" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_filesAdded_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_filesAdded_interface.go deleted file mode 100644 index b7c567cba..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_filesAdded_interface.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ForgeFedFilesAddedPropertyIterator represents a single value for the -// "filesAdded" property. -type ForgeFedFilesAddedPropertyIterator interface { - // Get returns the value of this property. When IsXMLSchemaString returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaString returns true if this property is set and not an IRI. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedFilesAddedPropertyIterator) bool - // Name returns the name of this property: "ForgeFedFilesAdded". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ForgeFedFilesAddedPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ForgeFedFilesAddedPropertyIterator - // Set sets the value of this property. Calling IsXMLSchemaString - // afterwards will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} - -// Specifies a filename, as a relative path, relative to the top of the tree of -// files in the Repository, of a file that got added in this Commit, and -// didn’t exist in the previous version of the tree. -type ForgeFedFilesAddedProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "filesAdded" - AppendIRI(v *url.URL) - // AppendXMLSchemaString appends a string value to the back of a list of - // the property "filesAdded". Invalidates iterators that are - // traversing using Prev. - AppendXMLSchemaString(v string) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ForgeFedFilesAddedPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ForgeFedFilesAddedPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ForgeFedFilesAddedPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "filesAdded". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertXMLSchemaString inserts a string value at the specified index for - // a property "filesAdded". Existing elements at that index and higher - // are shifted back once. Invalidates all iterators. - InsertXMLSchemaString(idx int, v string) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "filesAdded" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedFilesAddedProperty) bool - // Name returns the name of this property ("filesAdded") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "filesAdded". - PrependIRI(v *url.URL) - // PrependXMLSchemaString prepends a string value to the front of a list - // of the property "filesAdded". Invalidates all iterators. - PrependXMLSchemaString(v string) - // Remove deletes an element at the specified index from a list of the - // property "filesAdded", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a string value to be at the specified index for the property - // "filesAdded". Panics if the index is out of bounds. Invalidates all - // iterators. - Set(idx int, v string) - // SetIRI sets an IRI value to be at the specified index for the property - // "filesAdded". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // Swap swaps the location of values at two indices for the "filesAdded" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_filesModified_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_filesModified_interface.go deleted file mode 100644 index 928818716..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_filesModified_interface.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ForgeFedFilesModifiedPropertyIterator represents a single value for the -// "filesModified" property. -type ForgeFedFilesModifiedPropertyIterator interface { - // Get returns the value of this property. When IsXMLSchemaString returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaString returns true if this property is set and not an IRI. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedFilesModifiedPropertyIterator) bool - // Name returns the name of this property: "ForgeFedFilesModified". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ForgeFedFilesModifiedPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ForgeFedFilesModifiedPropertyIterator - // Set sets the value of this property. Calling IsXMLSchemaString - // afterwards will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} - -// Specifies a filename, as a relative path, relative to the top of the tree of -// files in the Repository, of a file that existed in the previous version of -// the tree, and its contents got modified in this Commit. -type ForgeFedFilesModifiedProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "filesModified" - AppendIRI(v *url.URL) - // AppendXMLSchemaString appends a string value to the back of a list of - // the property "filesModified". Invalidates iterators that are - // traversing using Prev. - AppendXMLSchemaString(v string) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ForgeFedFilesModifiedPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ForgeFedFilesModifiedPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ForgeFedFilesModifiedPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "filesModified". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertXMLSchemaString inserts a string value at the specified index for - // a property "filesModified". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertXMLSchemaString(idx int, v string) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "filesModified" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedFilesModifiedProperty) bool - // Name returns the name of this property ("filesModified") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "filesModified". - PrependIRI(v *url.URL) - // PrependXMLSchemaString prepends a string value to the front of a list - // of the property "filesModified". Invalidates all iterators. - PrependXMLSchemaString(v string) - // Remove deletes an element at the specified index from a list of the - // property "filesModified", regardless of its type. Panics if the - // index is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a string value to be at the specified index for the property - // "filesModified". Panics if the index is out of bounds. Invalidates - // all iterators. - Set(idx int, v string) - // SetIRI sets an IRI value to be at the specified index for the property - // "filesModified". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // Swap swaps the location of values at two indices for the - // "filesModified" property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_filesRemoved_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_filesRemoved_interface.go deleted file mode 100644 index ecbbe8170..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_filesRemoved_interface.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ForgeFedFilesRemovedPropertyIterator represents a single value for the -// "filesRemoved" property. -type ForgeFedFilesRemovedPropertyIterator interface { - // Get returns the value of this property. When IsXMLSchemaString returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaString returns true if this property is set and not an IRI. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedFilesRemovedPropertyIterator) bool - // Name returns the name of this property: "ForgeFedFilesRemoved". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ForgeFedFilesRemovedPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ForgeFedFilesRemovedPropertyIterator - // Set sets the value of this property. Calling IsXMLSchemaString - // afterwards will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} - -// Specifies a filename, as a relative path, relative to the top of the tree of -// files in the Repository, of a file that existed in the previous version of -// the tree, and got removed from the tree in this Commit. -type ForgeFedFilesRemovedProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "filesRemoved" - AppendIRI(v *url.URL) - // AppendXMLSchemaString appends a string value to the back of a list of - // the property "filesRemoved". Invalidates iterators that are - // traversing using Prev. - AppendXMLSchemaString(v string) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ForgeFedFilesRemovedPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ForgeFedFilesRemovedPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ForgeFedFilesRemovedPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "filesRemoved". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertXMLSchemaString inserts a string value at the specified index for - // a property "filesRemoved". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertXMLSchemaString(idx int, v string) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "filesRemoved" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedFilesRemovedProperty) bool - // Name returns the name of this property ("filesRemoved") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "filesRemoved". - PrependIRI(v *url.URL) - // PrependXMLSchemaString prepends a string value to the front of a list - // of the property "filesRemoved". Invalidates all iterators. - PrependXMLSchemaString(v string) - // Remove deletes an element at the specified index from a list of the - // property "filesRemoved", regardless of its type. Panics if the - // index is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a string value to be at the specified index for the property - // "filesRemoved". Panics if the index is out of bounds. Invalidates - // all iterators. - Set(idx int, v string) - // SetIRI sets an IRI value to be at the specified index for the property - // "filesRemoved". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // Swap swaps the location of values at two indices for the "filesRemoved" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_forks_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_forks_interface.go deleted file mode 100644 index 545c08b83..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_forks_interface.go +++ /dev/null @@ -1,82 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Identifies an OrderedCollection of Repositorys which were created as forks of -// this Repository, i.e. by cloning it. The order of the collection items is -// by reverse chronological order of the forking events. -type ForgeFedForksProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedForksProperty) bool - // Name returns the name of this property: "forks". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_hash_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_hash_interface.go deleted file mode 100644 index 4f1a0b924..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_hash_interface.go +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Specifies the hash associated with a Commit, which is a unique identifier of -// the commit within the Repository, usually generated as a cryptographic hash -// function of some (or all) of the commit’s data or metadata. For example, -// in Git it would be the SHA1 hash of the commit; in Darcs it would be the -// SHA1 hash of the patch info. -type ForgeFedHashProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaString afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaString returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaString returns true if this property is set and not an IRI. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedHashProperty) bool - // Name returns the name of this property: "hash". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaString - // afterwards will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_isResolved_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_isResolved_interface.go deleted file mode 100644 index 2567d86fa..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_isResolved_interface.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Specifies whether the Ticket is closed, i.e. the work on it is done and it -// doesn’t need to attract attention anymore. -type ForgeFedIsResolvedProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaBoolean afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaBoolean returns - // false, Get will return any arbitrary value. - Get() bool - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaBoolean returns true if this property is set and not an IRI. - IsXMLSchemaBoolean() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedIsResolvedProperty) bool - // Name returns the name of this property: "isResolved". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaBoolean - // afterwards will return true. - Set(v bool) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_ref_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_ref_interface.go deleted file mode 100644 index bedabcadc..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_ref_interface.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Specifies an identifier for a Branch, that is used in the Repository to -// uniquely refer to it. For example, in Git, "refs/heads/master" would be the -// ref of the master branch. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://forgefed.peers.community/ns" -// ], -// "context": "https://example.org/luke/myrepo", -// "id": "https://example.org/luke/myrepo/branches/master", -// "name": "master", -// "ref": "refs/heads/master", -// "type": "Branch" -// } -type ForgeFedRefProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaString afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaString returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaString returns true if this property is set and not an IRI. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedRefProperty) bool - // Name returns the name of this property: "ref". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaString - // afterwards will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_team_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_team_interface.go deleted file mode 100644 index 9e8d88b26..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_team_interface.go +++ /dev/null @@ -1,142 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Specifies a Collection of actors who are working on the object, or responsible -// for it, or managing or administrating it, or having edit access to it. For -// example, for a Repository, it could be the people who have push/edit -// access, the "collaborators" of the repository. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://w3id.org/security/v1", -// "https://forgefed.peers.community/ns" -// ], -// "followers": "https://dev.example/aviva/treesim/followers", -// "id": "https://dev.example/aviva/treesim", -// "inbox": "https://dev.example/aviva/treesim/inbox", -// "name": "Tree Growth 3D Simulation", -// "outbox": "https://dev.example/aviva/treesim/outbox", -// "publicKey": { -// "id": "https://dev.example/aviva/treesim#main-key", -// "owner": "https://dev.example/aviva/treesim", -// "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhki....." -// }, -// "summary": "\u003cp\u003eTree growth 3D simulator for my nature -// exploration game\u003c/p\u003e", -// "team": "https://dev.example/aviva/treesim/team", -// "type": "Repository" -// } -// -// { -// "@context": "https://www.w3.org/ns/activitystreams", -// "id": "https://dev.example/aviva/treesim/team", -// "items": [ -// "https://dev.example/aviva", -// "https://dev.example/luke", -// "https://code.community/users/lorax" -// ], -// "totalItems": 3, -// "type": "Collection" -// } -type ForgeFedTeamProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedTeamProperty) bool - // Name returns the name of this property: "team". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_ticketsTrackedBy_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_ticketsTrackedBy_interface.go deleted file mode 100644 index 3ca4a901f..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_ticketsTrackedBy_interface.go +++ /dev/null @@ -1,745 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Identifies the actor which tracks tickets related to the given object. This is -// the actor to whom you send tickets you’d like to open against the object. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://forgefed.peers.community/ns" -// ], -// "id": "https://dev.example/aviva/treesim", -// "name": "Tree Growth 3D Simulation", -// "summary": "\u003cp\u003eTree growth 3D simulator for my nature -// exploration game\u003c/p\u003e", -// "ticketsTrackedBy": "https://bugs.example/projects/treesim", -// "type": "Repository" -// } -type ForgeFedTicketsTrackedByProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedTicketsTrackedByProperty) bool - // Name returns the name of this property: "ticketsTrackedBy". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_tracksTicketsFor_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_tracksTicketsFor_interface.go deleted file mode 100644 index 65471e630..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_forgefed_tracksTicketsFor_interface.go +++ /dev/null @@ -1,1766 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// ForgeFedTracksTicketsForPropertyIterator represents a single value for the -// "tracksTicketsFor" property. -type ForgeFedTracksTicketsForPropertyIterator interface { - // GetActivityStreamsAccept returns the value of this property. When - // IsActivityStreamsAccept returns false, GetActivityStreamsAccept - // will return an arbitrary value. - GetActivityStreamsAccept() ActivityStreamsAccept - // GetActivityStreamsActivity returns the value of this property. When - // IsActivityStreamsActivity returns false, GetActivityStreamsActivity - // will return an arbitrary value. - GetActivityStreamsActivity() ActivityStreamsActivity - // GetActivityStreamsAdd returns the value of this property. When - // IsActivityStreamsAdd returns false, GetActivityStreamsAdd will - // return an arbitrary value. - GetActivityStreamsAdd() ActivityStreamsAdd - // GetActivityStreamsAnnounce returns the value of this property. When - // IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce - // will return an arbitrary value. - GetActivityStreamsAnnounce() ActivityStreamsAnnounce - // GetActivityStreamsApplication returns the value of this property. When - // IsActivityStreamsApplication returns false, - // GetActivityStreamsApplication will return an arbitrary value. - GetActivityStreamsApplication() ActivityStreamsApplication - // GetActivityStreamsArrive returns the value of this property. When - // IsActivityStreamsArrive returns false, GetActivityStreamsArrive - // will return an arbitrary value. - GetActivityStreamsArrive() ActivityStreamsArrive - // GetActivityStreamsArticle returns the value of this property. When - // IsActivityStreamsArticle returns false, GetActivityStreamsArticle - // will return an arbitrary value. - GetActivityStreamsArticle() ActivityStreamsArticle - // GetActivityStreamsAudio returns the value of this property. When - // IsActivityStreamsAudio returns false, GetActivityStreamsAudio will - // return an arbitrary value. - GetActivityStreamsAudio() ActivityStreamsAudio - // GetActivityStreamsBlock returns the value of this property. When - // IsActivityStreamsBlock returns false, GetActivityStreamsBlock will - // return an arbitrary value. - GetActivityStreamsBlock() ActivityStreamsBlock - // GetActivityStreamsCollection returns the value of this property. When - // IsActivityStreamsCollection returns false, - // GetActivityStreamsCollection will return an arbitrary value. - GetActivityStreamsCollection() ActivityStreamsCollection - // GetActivityStreamsCollectionPage returns the value of this property. - // When IsActivityStreamsCollectionPage returns false, - // GetActivityStreamsCollectionPage will return an arbitrary value. - GetActivityStreamsCollectionPage() ActivityStreamsCollectionPage - // GetActivityStreamsCreate returns the value of this property. When - // IsActivityStreamsCreate returns false, GetActivityStreamsCreate - // will return an arbitrary value. - GetActivityStreamsCreate() ActivityStreamsCreate - // GetActivityStreamsDelete returns the value of this property. When - // IsActivityStreamsDelete returns false, GetActivityStreamsDelete - // will return an arbitrary value. - GetActivityStreamsDelete() ActivityStreamsDelete - // GetActivityStreamsDislike returns the value of this property. When - // IsActivityStreamsDislike returns false, GetActivityStreamsDislike - // will return an arbitrary value. - GetActivityStreamsDislike() ActivityStreamsDislike - // GetActivityStreamsDocument returns the value of this property. When - // IsActivityStreamsDocument returns false, GetActivityStreamsDocument - // will return an arbitrary value. - GetActivityStreamsDocument() ActivityStreamsDocument - // GetActivityStreamsEvent returns the value of this property. When - // IsActivityStreamsEvent returns false, GetActivityStreamsEvent will - // return an arbitrary value. - GetActivityStreamsEvent() ActivityStreamsEvent - // GetActivityStreamsFlag returns the value of this property. When - // IsActivityStreamsFlag returns false, GetActivityStreamsFlag will - // return an arbitrary value. - GetActivityStreamsFlag() ActivityStreamsFlag - // GetActivityStreamsFollow returns the value of this property. When - // IsActivityStreamsFollow returns false, GetActivityStreamsFollow - // will return an arbitrary value. - GetActivityStreamsFollow() ActivityStreamsFollow - // GetActivityStreamsGroup returns the value of this property. When - // IsActivityStreamsGroup returns false, GetActivityStreamsGroup will - // return an arbitrary value. - GetActivityStreamsGroup() ActivityStreamsGroup - // GetActivityStreamsIgnore returns the value of this property. When - // IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore - // will return an arbitrary value. - GetActivityStreamsIgnore() ActivityStreamsIgnore - // GetActivityStreamsImage returns the value of this property. When - // IsActivityStreamsImage returns false, GetActivityStreamsImage will - // return an arbitrary value. - GetActivityStreamsImage() ActivityStreamsImage - // GetActivityStreamsIntransitiveActivity returns the value of this - // property. When IsActivityStreamsIntransitiveActivity returns false, - // GetActivityStreamsIntransitiveActivity will return an arbitrary - // value. - GetActivityStreamsIntransitiveActivity() ActivityStreamsIntransitiveActivity - // GetActivityStreamsInvite returns the value of this property. When - // IsActivityStreamsInvite returns false, GetActivityStreamsInvite - // will return an arbitrary value. - GetActivityStreamsInvite() ActivityStreamsInvite - // GetActivityStreamsJoin returns the value of this property. When - // IsActivityStreamsJoin returns false, GetActivityStreamsJoin will - // return an arbitrary value. - GetActivityStreamsJoin() ActivityStreamsJoin - // GetActivityStreamsLeave returns the value of this property. When - // IsActivityStreamsLeave returns false, GetActivityStreamsLeave will - // return an arbitrary value. - GetActivityStreamsLeave() ActivityStreamsLeave - // GetActivityStreamsLike returns the value of this property. When - // IsActivityStreamsLike returns false, GetActivityStreamsLike will - // return an arbitrary value. - GetActivityStreamsLike() ActivityStreamsLike - // GetActivityStreamsListen returns the value of this property. When - // IsActivityStreamsListen returns false, GetActivityStreamsListen - // will return an arbitrary value. - GetActivityStreamsListen() ActivityStreamsListen - // GetActivityStreamsMove returns the value of this property. When - // IsActivityStreamsMove returns false, GetActivityStreamsMove will - // return an arbitrary value. - GetActivityStreamsMove() ActivityStreamsMove - // GetActivityStreamsNote returns the value of this property. When - // IsActivityStreamsNote returns false, GetActivityStreamsNote will - // return an arbitrary value. - GetActivityStreamsNote() ActivityStreamsNote - // GetActivityStreamsObject returns the value of this property. When - // IsActivityStreamsObject returns false, GetActivityStreamsObject - // will return an arbitrary value. - GetActivityStreamsObject() ActivityStreamsObject - // GetActivityStreamsOffer returns the value of this property. When - // IsActivityStreamsOffer returns false, GetActivityStreamsOffer will - // return an arbitrary value. - GetActivityStreamsOffer() ActivityStreamsOffer - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetActivityStreamsOrganization returns the value of this property. When - // IsActivityStreamsOrganization returns false, - // GetActivityStreamsOrganization will return an arbitrary value. - GetActivityStreamsOrganization() ActivityStreamsOrganization - // GetActivityStreamsPage returns the value of this property. When - // IsActivityStreamsPage returns false, GetActivityStreamsPage will - // return an arbitrary value. - GetActivityStreamsPage() ActivityStreamsPage - // GetActivityStreamsPerson returns the value of this property. When - // IsActivityStreamsPerson returns false, GetActivityStreamsPerson - // will return an arbitrary value. - GetActivityStreamsPerson() ActivityStreamsPerson - // GetActivityStreamsPlace returns the value of this property. When - // IsActivityStreamsPlace returns false, GetActivityStreamsPlace will - // return an arbitrary value. - GetActivityStreamsPlace() ActivityStreamsPlace - // GetActivityStreamsProfile returns the value of this property. When - // IsActivityStreamsProfile returns false, GetActivityStreamsProfile - // will return an arbitrary value. - GetActivityStreamsProfile() ActivityStreamsProfile - // GetActivityStreamsQuestion returns the value of this property. When - // IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion - // will return an arbitrary value. - GetActivityStreamsQuestion() ActivityStreamsQuestion - // GetActivityStreamsRead returns the value of this property. When - // IsActivityStreamsRead returns false, GetActivityStreamsRead will - // return an arbitrary value. - GetActivityStreamsRead() ActivityStreamsRead - // GetActivityStreamsReject returns the value of this property. When - // IsActivityStreamsReject returns false, GetActivityStreamsReject - // will return an arbitrary value. - GetActivityStreamsReject() ActivityStreamsReject - // GetActivityStreamsRelationship returns the value of this property. When - // IsActivityStreamsRelationship returns false, - // GetActivityStreamsRelationship will return an arbitrary value. - GetActivityStreamsRelationship() ActivityStreamsRelationship - // GetActivityStreamsRemove returns the value of this property. When - // IsActivityStreamsRemove returns false, GetActivityStreamsRemove - // will return an arbitrary value. - GetActivityStreamsRemove() ActivityStreamsRemove - // GetActivityStreamsService returns the value of this property. When - // IsActivityStreamsService returns false, GetActivityStreamsService - // will return an arbitrary value. - GetActivityStreamsService() ActivityStreamsService - // GetActivityStreamsTentativeAccept returns the value of this property. - // When IsActivityStreamsTentativeAccept returns false, - // GetActivityStreamsTentativeAccept will return an arbitrary value. - GetActivityStreamsTentativeAccept() ActivityStreamsTentativeAccept - // GetActivityStreamsTentativeReject returns the value of this property. - // When IsActivityStreamsTentativeReject returns false, - // GetActivityStreamsTentativeReject will return an arbitrary value. - GetActivityStreamsTentativeReject() ActivityStreamsTentativeReject - // GetActivityStreamsTombstone returns the value of this property. When - // IsActivityStreamsTombstone returns false, - // GetActivityStreamsTombstone will return an arbitrary value. - GetActivityStreamsTombstone() ActivityStreamsTombstone - // GetActivityStreamsTravel returns the value of this property. When - // IsActivityStreamsTravel returns false, GetActivityStreamsTravel - // will return an arbitrary value. - GetActivityStreamsTravel() ActivityStreamsTravel - // GetActivityStreamsUndo returns the value of this property. When - // IsActivityStreamsUndo returns false, GetActivityStreamsUndo will - // return an arbitrary value. - GetActivityStreamsUndo() ActivityStreamsUndo - // GetActivityStreamsUpdate returns the value of this property. When - // IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate - // will return an arbitrary value. - GetActivityStreamsUpdate() ActivityStreamsUpdate - // GetActivityStreamsVideo returns the value of this property. When - // IsActivityStreamsVideo returns false, GetActivityStreamsVideo will - // return an arbitrary value. - GetActivityStreamsVideo() ActivityStreamsVideo - // GetActivityStreamsView returns the value of this property. When - // IsActivityStreamsView returns false, GetActivityStreamsView will - // return an arbitrary value. - GetActivityStreamsView() ActivityStreamsView - // GetForgeFedBranch returns the value of this property. When - // IsForgeFedBranch returns false, GetForgeFedBranch will return an - // arbitrary value. - GetForgeFedBranch() ForgeFedBranch - // GetForgeFedCommit returns the value of this property. When - // IsForgeFedCommit returns false, GetForgeFedCommit will return an - // arbitrary value. - GetForgeFedCommit() ForgeFedCommit - // GetForgeFedPush returns the value of this property. When IsForgeFedPush - // returns false, GetForgeFedPush will return an arbitrary value. - GetForgeFedPush() ForgeFedPush - // GetForgeFedRepository returns the value of this property. When - // IsForgeFedRepository returns false, GetForgeFedRepository will - // return an arbitrary value. - GetForgeFedRepository() ForgeFedRepository - // GetForgeFedTicket returns the value of this property. When - // IsForgeFedTicket returns false, GetForgeFedTicket will return an - // arbitrary value. - GetForgeFedTicket() ForgeFedTicket - // GetForgeFedTicketDependency returns the value of this property. When - // IsForgeFedTicketDependency returns false, - // GetForgeFedTicketDependency will return an arbitrary value. - GetForgeFedTicketDependency() ForgeFedTicketDependency - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetTootEmoji returns the value of this property. When IsTootEmoji - // returns false, GetTootEmoji will return an arbitrary value. - GetTootEmoji() TootEmoji - // GetTootIdentityProof returns the value of this property. When - // IsTootIdentityProof returns false, GetTootIdentityProof will return - // an arbitrary value. - GetTootIdentityProof() TootIdentityProof - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsAccept returns true if this property has a type of - // "Accept". When true, use the GetActivityStreamsAccept and - // SetActivityStreamsAccept methods to access and set this property. - IsActivityStreamsAccept() bool - // IsActivityStreamsActivity returns true if this property has a type of - // "Activity". When true, use the GetActivityStreamsActivity and - // SetActivityStreamsActivity methods to access and set this property. - IsActivityStreamsActivity() bool - // IsActivityStreamsAdd returns true if this property has a type of "Add". - // When true, use the GetActivityStreamsAdd and SetActivityStreamsAdd - // methods to access and set this property. - IsActivityStreamsAdd() bool - // IsActivityStreamsAnnounce returns true if this property has a type of - // "Announce". When true, use the GetActivityStreamsAnnounce and - // SetActivityStreamsAnnounce methods to access and set this property. - IsActivityStreamsAnnounce() bool - // IsActivityStreamsApplication returns true if this property has a type - // of "Application". When true, use the GetActivityStreamsApplication - // and SetActivityStreamsApplication methods to access and set this - // property. - IsActivityStreamsApplication() bool - // IsActivityStreamsArrive returns true if this property has a type of - // "Arrive". When true, use the GetActivityStreamsArrive and - // SetActivityStreamsArrive methods to access and set this property. - IsActivityStreamsArrive() bool - // IsActivityStreamsArticle returns true if this property has a type of - // "Article". When true, use the GetActivityStreamsArticle and - // SetActivityStreamsArticle methods to access and set this property. - IsActivityStreamsArticle() bool - // IsActivityStreamsAudio returns true if this property has a type of - // "Audio". When true, use the GetActivityStreamsAudio and - // SetActivityStreamsAudio methods to access and set this property. - IsActivityStreamsAudio() bool - // IsActivityStreamsBlock returns true if this property has a type of - // "Block". When true, use the GetActivityStreamsBlock and - // SetActivityStreamsBlock methods to access and set this property. - IsActivityStreamsBlock() bool - // IsActivityStreamsCollection returns true if this property has a type of - // "Collection". When true, use the GetActivityStreamsCollection and - // SetActivityStreamsCollection methods to access and set this - // property. - IsActivityStreamsCollection() bool - // IsActivityStreamsCollectionPage returns true if this property has a - // type of "CollectionPage". When true, use the - // GetActivityStreamsCollectionPage and - // SetActivityStreamsCollectionPage methods to access and set this - // property. - IsActivityStreamsCollectionPage() bool - // IsActivityStreamsCreate returns true if this property has a type of - // "Create". When true, use the GetActivityStreamsCreate and - // SetActivityStreamsCreate methods to access and set this property. - IsActivityStreamsCreate() bool - // IsActivityStreamsDelete returns true if this property has a type of - // "Delete". When true, use the GetActivityStreamsDelete and - // SetActivityStreamsDelete methods to access and set this property. - IsActivityStreamsDelete() bool - // IsActivityStreamsDislike returns true if this property has a type of - // "Dislike". When true, use the GetActivityStreamsDislike and - // SetActivityStreamsDislike methods to access and set this property. - IsActivityStreamsDislike() bool - // IsActivityStreamsDocument returns true if this property has a type of - // "Document". When true, use the GetActivityStreamsDocument and - // SetActivityStreamsDocument methods to access and set this property. - IsActivityStreamsDocument() bool - // IsActivityStreamsEvent returns true if this property has a type of - // "Event". When true, use the GetActivityStreamsEvent and - // SetActivityStreamsEvent methods to access and set this property. - IsActivityStreamsEvent() bool - // IsActivityStreamsFlag returns true if this property has a type of - // "Flag". When true, use the GetActivityStreamsFlag and - // SetActivityStreamsFlag methods to access and set this property. - IsActivityStreamsFlag() bool - // IsActivityStreamsFollow returns true if this property has a type of - // "Follow". When true, use the GetActivityStreamsFollow and - // SetActivityStreamsFollow methods to access and set this property. - IsActivityStreamsFollow() bool - // IsActivityStreamsGroup returns true if this property has a type of - // "Group". When true, use the GetActivityStreamsGroup and - // SetActivityStreamsGroup methods to access and set this property. - IsActivityStreamsGroup() bool - // IsActivityStreamsIgnore returns true if this property has a type of - // "Ignore". When true, use the GetActivityStreamsIgnore and - // SetActivityStreamsIgnore methods to access and set this property. - IsActivityStreamsIgnore() bool - // IsActivityStreamsImage returns true if this property has a type of - // "Image". When true, use the GetActivityStreamsImage and - // SetActivityStreamsImage methods to access and set this property. - IsActivityStreamsImage() bool - // IsActivityStreamsIntransitiveActivity returns true if this property has - // a type of "IntransitiveActivity". When true, use the - // GetActivityStreamsIntransitiveActivity and - // SetActivityStreamsIntransitiveActivity methods to access and set - // this property. - IsActivityStreamsIntransitiveActivity() bool - // IsActivityStreamsInvite returns true if this property has a type of - // "Invite". When true, use the GetActivityStreamsInvite and - // SetActivityStreamsInvite methods to access and set this property. - IsActivityStreamsInvite() bool - // IsActivityStreamsJoin returns true if this property has a type of - // "Join". When true, use the GetActivityStreamsJoin and - // SetActivityStreamsJoin methods to access and set this property. - IsActivityStreamsJoin() bool - // IsActivityStreamsLeave returns true if this property has a type of - // "Leave". When true, use the GetActivityStreamsLeave and - // SetActivityStreamsLeave methods to access and set this property. - IsActivityStreamsLeave() bool - // IsActivityStreamsLike returns true if this property has a type of - // "Like". When true, use the GetActivityStreamsLike and - // SetActivityStreamsLike methods to access and set this property. - IsActivityStreamsLike() bool - // IsActivityStreamsListen returns true if this property has a type of - // "Listen". When true, use the GetActivityStreamsListen and - // SetActivityStreamsListen methods to access and set this property. - IsActivityStreamsListen() bool - // IsActivityStreamsMove returns true if this property has a type of - // "Move". When true, use the GetActivityStreamsMove and - // SetActivityStreamsMove methods to access and set this property. - IsActivityStreamsMove() bool - // IsActivityStreamsNote returns true if this property has a type of - // "Note". When true, use the GetActivityStreamsNote and - // SetActivityStreamsNote methods to access and set this property. - IsActivityStreamsNote() bool - // IsActivityStreamsObject returns true if this property has a type of - // "Object". When true, use the GetActivityStreamsObject and - // SetActivityStreamsObject methods to access and set this property. - IsActivityStreamsObject() bool - // IsActivityStreamsOffer returns true if this property has a type of - // "Offer". When true, use the GetActivityStreamsOffer and - // SetActivityStreamsOffer methods to access and set this property. - IsActivityStreamsOffer() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsActivityStreamsOrganization returns true if this property has a type - // of "Organization". When true, use the - // GetActivityStreamsOrganization and SetActivityStreamsOrganization - // methods to access and set this property. - IsActivityStreamsOrganization() bool - // IsActivityStreamsPage returns true if this property has a type of - // "Page". When true, use the GetActivityStreamsPage and - // SetActivityStreamsPage methods to access and set this property. - IsActivityStreamsPage() bool - // IsActivityStreamsPerson returns true if this property has a type of - // "Person". When true, use the GetActivityStreamsPerson and - // SetActivityStreamsPerson methods to access and set this property. - IsActivityStreamsPerson() bool - // IsActivityStreamsPlace returns true if this property has a type of - // "Place". When true, use the GetActivityStreamsPlace and - // SetActivityStreamsPlace methods to access and set this property. - IsActivityStreamsPlace() bool - // IsActivityStreamsProfile returns true if this property has a type of - // "Profile". When true, use the GetActivityStreamsProfile and - // SetActivityStreamsProfile methods to access and set this property. - IsActivityStreamsProfile() bool - // IsActivityStreamsQuestion returns true if this property has a type of - // "Question". When true, use the GetActivityStreamsQuestion and - // SetActivityStreamsQuestion methods to access and set this property. - IsActivityStreamsQuestion() bool - // IsActivityStreamsRead returns true if this property has a type of - // "Read". When true, use the GetActivityStreamsRead and - // SetActivityStreamsRead methods to access and set this property. - IsActivityStreamsRead() bool - // IsActivityStreamsReject returns true if this property has a type of - // "Reject". When true, use the GetActivityStreamsReject and - // SetActivityStreamsReject methods to access and set this property. - IsActivityStreamsReject() bool - // IsActivityStreamsRelationship returns true if this property has a type - // of "Relationship". When true, use the - // GetActivityStreamsRelationship and SetActivityStreamsRelationship - // methods to access and set this property. - IsActivityStreamsRelationship() bool - // IsActivityStreamsRemove returns true if this property has a type of - // "Remove". When true, use the GetActivityStreamsRemove and - // SetActivityStreamsRemove methods to access and set this property. - IsActivityStreamsRemove() bool - // IsActivityStreamsService returns true if this property has a type of - // "Service". When true, use the GetActivityStreamsService and - // SetActivityStreamsService methods to access and set this property. - IsActivityStreamsService() bool - // IsActivityStreamsTentativeAccept returns true if this property has a - // type of "TentativeAccept". When true, use the - // GetActivityStreamsTentativeAccept and - // SetActivityStreamsTentativeAccept methods to access and set this - // property. - IsActivityStreamsTentativeAccept() bool - // IsActivityStreamsTentativeReject returns true if this property has a - // type of "TentativeReject". When true, use the - // GetActivityStreamsTentativeReject and - // SetActivityStreamsTentativeReject methods to access and set this - // property. - IsActivityStreamsTentativeReject() bool - // IsActivityStreamsTombstone returns true if this property has a type of - // "Tombstone". When true, use the GetActivityStreamsTombstone and - // SetActivityStreamsTombstone methods to access and set this property. - IsActivityStreamsTombstone() bool - // IsActivityStreamsTravel returns true if this property has a type of - // "Travel". When true, use the GetActivityStreamsTravel and - // SetActivityStreamsTravel methods to access and set this property. - IsActivityStreamsTravel() bool - // IsActivityStreamsUndo returns true if this property has a type of - // "Undo". When true, use the GetActivityStreamsUndo and - // SetActivityStreamsUndo methods to access and set this property. - IsActivityStreamsUndo() bool - // IsActivityStreamsUpdate returns true if this property has a type of - // "Update". When true, use the GetActivityStreamsUpdate and - // SetActivityStreamsUpdate methods to access and set this property. - IsActivityStreamsUpdate() bool - // IsActivityStreamsVideo returns true if this property has a type of - // "Video". When true, use the GetActivityStreamsVideo and - // SetActivityStreamsVideo methods to access and set this property. - IsActivityStreamsVideo() bool - // IsActivityStreamsView returns true if this property has a type of - // "View". When true, use the GetActivityStreamsView and - // SetActivityStreamsView methods to access and set this property. - IsActivityStreamsView() bool - // IsForgeFedBranch returns true if this property has a type of "Branch". - // When true, use the GetForgeFedBranch and SetForgeFedBranch methods - // to access and set this property. - IsForgeFedBranch() bool - // IsForgeFedCommit returns true if this property has a type of "Commit". - // When true, use the GetForgeFedCommit and SetForgeFedCommit methods - // to access and set this property. - IsForgeFedCommit() bool - // IsForgeFedPush returns true if this property has a type of "Push". When - // true, use the GetForgeFedPush and SetForgeFedPush methods to access - // and set this property. - IsForgeFedPush() bool - // IsForgeFedRepository returns true if this property has a type of - // "Repository". When true, use the GetForgeFedRepository and - // SetForgeFedRepository methods to access and set this property. - IsForgeFedRepository() bool - // IsForgeFedTicket returns true if this property has a type of "Ticket". - // When true, use the GetForgeFedTicket and SetForgeFedTicket methods - // to access and set this property. - IsForgeFedTicket() bool - // IsForgeFedTicketDependency returns true if this property has a type of - // "TicketDependency". When true, use the GetForgeFedTicketDependency - // and SetForgeFedTicketDependency methods to access and set this - // property. - IsForgeFedTicketDependency() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsTootEmoji returns true if this property has a type of "Emoji". When - // true, use the GetTootEmoji and SetTootEmoji methods to access and - // set this property. - IsTootEmoji() bool - // IsTootIdentityProof returns true if this property has a type of - // "IdentityProof". When true, use the GetTootIdentityProof and - // SetTootIdentityProof methods to access and set this property. - IsTootIdentityProof() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedTracksTicketsForPropertyIterator) bool - // Name returns the name of this property: "ForgeFedTracksTicketsFor". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() ForgeFedTracksTicketsForPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() ForgeFedTracksTicketsForPropertyIterator - // SetActivityStreamsAccept sets the value of this property. Calling - // IsActivityStreamsAccept afterwards returns true. - SetActivityStreamsAccept(v ActivityStreamsAccept) - // SetActivityStreamsActivity sets the value of this property. Calling - // IsActivityStreamsActivity afterwards returns true. - SetActivityStreamsActivity(v ActivityStreamsActivity) - // SetActivityStreamsAdd sets the value of this property. Calling - // IsActivityStreamsAdd afterwards returns true. - SetActivityStreamsAdd(v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets the value of this property. Calling - // IsActivityStreamsAnnounce afterwards returns true. - SetActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets the value of this property. Calling - // IsActivityStreamsApplication afterwards returns true. - SetActivityStreamsApplication(v ActivityStreamsApplication) - // SetActivityStreamsArrive sets the value of this property. Calling - // IsActivityStreamsArrive afterwards returns true. - SetActivityStreamsArrive(v ActivityStreamsArrive) - // SetActivityStreamsArticle sets the value of this property. Calling - // IsActivityStreamsArticle afterwards returns true. - SetActivityStreamsArticle(v ActivityStreamsArticle) - // SetActivityStreamsAudio sets the value of this property. Calling - // IsActivityStreamsAudio afterwards returns true. - SetActivityStreamsAudio(v ActivityStreamsAudio) - // SetActivityStreamsBlock sets the value of this property. Calling - // IsActivityStreamsBlock afterwards returns true. - SetActivityStreamsBlock(v ActivityStreamsBlock) - // SetActivityStreamsCollection sets the value of this property. Calling - // IsActivityStreamsCollection afterwards returns true. - SetActivityStreamsCollection(v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets the value of this property. - // Calling IsActivityStreamsCollectionPage afterwards returns true. - SetActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets the value of this property. Calling - // IsActivityStreamsCreate afterwards returns true. - SetActivityStreamsCreate(v ActivityStreamsCreate) - // SetActivityStreamsDelete sets the value of this property. Calling - // IsActivityStreamsDelete afterwards returns true. - SetActivityStreamsDelete(v ActivityStreamsDelete) - // SetActivityStreamsDislike sets the value of this property. Calling - // IsActivityStreamsDislike afterwards returns true. - SetActivityStreamsDislike(v ActivityStreamsDislike) - // SetActivityStreamsDocument sets the value of this property. Calling - // IsActivityStreamsDocument afterwards returns true. - SetActivityStreamsDocument(v ActivityStreamsDocument) - // SetActivityStreamsEvent sets the value of this property. Calling - // IsActivityStreamsEvent afterwards returns true. - SetActivityStreamsEvent(v ActivityStreamsEvent) - // SetActivityStreamsFlag sets the value of this property. Calling - // IsActivityStreamsFlag afterwards returns true. - SetActivityStreamsFlag(v ActivityStreamsFlag) - // SetActivityStreamsFollow sets the value of this property. Calling - // IsActivityStreamsFollow afterwards returns true. - SetActivityStreamsFollow(v ActivityStreamsFollow) - // SetActivityStreamsGroup sets the value of this property. Calling - // IsActivityStreamsGroup afterwards returns true. - SetActivityStreamsGroup(v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets the value of this property. Calling - // IsActivityStreamsIgnore afterwards returns true. - SetActivityStreamsIgnore(v ActivityStreamsIgnore) - // SetActivityStreamsImage sets the value of this property. Calling - // IsActivityStreamsImage afterwards returns true. - SetActivityStreamsImage(v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets the value of this property. - // Calling IsActivityStreamsIntransitiveActivity afterwards returns - // true. - SetActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets the value of this property. Calling - // IsActivityStreamsInvite afterwards returns true. - SetActivityStreamsInvite(v ActivityStreamsInvite) - // SetActivityStreamsJoin sets the value of this property. Calling - // IsActivityStreamsJoin afterwards returns true. - SetActivityStreamsJoin(v ActivityStreamsJoin) - // SetActivityStreamsLeave sets the value of this property. Calling - // IsActivityStreamsLeave afterwards returns true. - SetActivityStreamsLeave(v ActivityStreamsLeave) - // SetActivityStreamsLike sets the value of this property. Calling - // IsActivityStreamsLike afterwards returns true. - SetActivityStreamsLike(v ActivityStreamsLike) - // SetActivityStreamsListen sets the value of this property. Calling - // IsActivityStreamsListen afterwards returns true. - SetActivityStreamsListen(v ActivityStreamsListen) - // SetActivityStreamsMove sets the value of this property. Calling - // IsActivityStreamsMove afterwards returns true. - SetActivityStreamsMove(v ActivityStreamsMove) - // SetActivityStreamsNote sets the value of this property. Calling - // IsActivityStreamsNote afterwards returns true. - SetActivityStreamsNote(v ActivityStreamsNote) - // SetActivityStreamsObject sets the value of this property. Calling - // IsActivityStreamsObject afterwards returns true. - SetActivityStreamsObject(v ActivityStreamsObject) - // SetActivityStreamsOffer sets the value of this property. Calling - // IsActivityStreamsOffer afterwards returns true. - SetActivityStreamsOffer(v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets the value of this property. Calling - // IsActivityStreamsOrganization afterwards returns true. - SetActivityStreamsOrganization(v ActivityStreamsOrganization) - // SetActivityStreamsPage sets the value of this property. Calling - // IsActivityStreamsPage afterwards returns true. - SetActivityStreamsPage(v ActivityStreamsPage) - // SetActivityStreamsPerson sets the value of this property. Calling - // IsActivityStreamsPerson afterwards returns true. - SetActivityStreamsPerson(v ActivityStreamsPerson) - // SetActivityStreamsPlace sets the value of this property. Calling - // IsActivityStreamsPlace afterwards returns true. - SetActivityStreamsPlace(v ActivityStreamsPlace) - // SetActivityStreamsProfile sets the value of this property. Calling - // IsActivityStreamsProfile afterwards returns true. - SetActivityStreamsProfile(v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets the value of this property. Calling - // IsActivityStreamsQuestion afterwards returns true. - SetActivityStreamsQuestion(v ActivityStreamsQuestion) - // SetActivityStreamsRead sets the value of this property. Calling - // IsActivityStreamsRead afterwards returns true. - SetActivityStreamsRead(v ActivityStreamsRead) - // SetActivityStreamsReject sets the value of this property. Calling - // IsActivityStreamsReject afterwards returns true. - SetActivityStreamsReject(v ActivityStreamsReject) - // SetActivityStreamsRelationship sets the value of this property. Calling - // IsActivityStreamsRelationship afterwards returns true. - SetActivityStreamsRelationship(v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets the value of this property. Calling - // IsActivityStreamsRemove afterwards returns true. - SetActivityStreamsRemove(v ActivityStreamsRemove) - // SetActivityStreamsService sets the value of this property. Calling - // IsActivityStreamsService afterwards returns true. - SetActivityStreamsService(v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets the value of this property. - // Calling IsActivityStreamsTentativeAccept afterwards returns true. - SetActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets the value of this property. - // Calling IsActivityStreamsTentativeReject afterwards returns true. - SetActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets the value of this property. Calling - // IsActivityStreamsTombstone afterwards returns true. - SetActivityStreamsTombstone(v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets the value of this property. Calling - // IsActivityStreamsTravel afterwards returns true. - SetActivityStreamsTravel(v ActivityStreamsTravel) - // SetActivityStreamsUndo sets the value of this property. Calling - // IsActivityStreamsUndo afterwards returns true. - SetActivityStreamsUndo(v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets the value of this property. Calling - // IsActivityStreamsUpdate afterwards returns true. - SetActivityStreamsUpdate(v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets the value of this property. Calling - // IsActivityStreamsVideo afterwards returns true. - SetActivityStreamsVideo(v ActivityStreamsVideo) - // SetActivityStreamsView sets the value of this property. Calling - // IsActivityStreamsView afterwards returns true. - SetActivityStreamsView(v ActivityStreamsView) - // SetForgeFedBranch sets the value of this property. Calling - // IsForgeFedBranch afterwards returns true. - SetForgeFedBranch(v ForgeFedBranch) - // SetForgeFedCommit sets the value of this property. Calling - // IsForgeFedCommit afterwards returns true. - SetForgeFedCommit(v ForgeFedCommit) - // SetForgeFedPush sets the value of this property. Calling IsForgeFedPush - // afterwards returns true. - SetForgeFedPush(v ForgeFedPush) - // SetForgeFedRepository sets the value of this property. Calling - // IsForgeFedRepository afterwards returns true. - SetForgeFedRepository(v ForgeFedRepository) - // SetForgeFedTicket sets the value of this property. Calling - // IsForgeFedTicket afterwards returns true. - SetForgeFedTicket(v ForgeFedTicket) - // SetForgeFedTicketDependency sets the value of this property. Calling - // IsForgeFedTicketDependency afterwards returns true. - SetForgeFedTicketDependency(v ForgeFedTicketDependency) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetTootEmoji sets the value of this property. Calling IsTootEmoji - // afterwards returns true. - SetTootEmoji(v TootEmoji) - // SetTootIdentityProof sets the value of this property. Calling - // IsTootIdentityProof afterwards returns true. - SetTootIdentityProof(v TootIdentityProof) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// Identifies objects for which which this ticket tracker tracks tickets. When -// you’d like to open a ticket against those objects, you can send them to -// this tracker. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://forgefed.peers.community/ns" -// ], -// "id": "https://bugs.example/treesim", -// "tracksTicketsFor": [ -// "https://dev.example/aviva/liblsystem", -// "https://dev.example/aviva/3d-tree-models", -// "https://dev.example/aviva/treesim" -// ], -// "type": "Project" -// } -type ForgeFedTracksTicketsForProperty interface { - // AppendActivityStreamsAccept appends a Accept value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsAccept(v ActivityStreamsAccept) - // AppendActivityStreamsActivity appends a Activity value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsActivity(v ActivityStreamsActivity) - // AppendActivityStreamsAdd appends a Add value to the back of a list of - // the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAdd(v ActivityStreamsAdd) - // AppendActivityStreamsAnnounce appends a Announce value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // AppendActivityStreamsApplication appends a Application value to the - // back of a list of the property "tracksTicketsFor". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsApplication(v ActivityStreamsApplication) - // AppendActivityStreamsArrive appends a Arrive value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsArrive(v ActivityStreamsArrive) - // AppendActivityStreamsArticle appends a Article value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsArticle(v ActivityStreamsArticle) - // AppendActivityStreamsAudio appends a Audio value to the back of a list - // of the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsAudio(v ActivityStreamsAudio) - // AppendActivityStreamsBlock appends a Block value to the back of a list - // of the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsBlock(v ActivityStreamsBlock) - // AppendActivityStreamsCollection appends a Collection value to the back - // of a list of the property "tracksTicketsFor". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsCollection(v ActivityStreamsCollection) - // AppendActivityStreamsCollectionPage appends a CollectionPage value to - // the back of a list of the property "tracksTicketsFor". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // AppendActivityStreamsCreate appends a Create value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsCreate(v ActivityStreamsCreate) - // AppendActivityStreamsDelete appends a Delete value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsDelete(v ActivityStreamsDelete) - // AppendActivityStreamsDislike appends a Dislike value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsDislike(v ActivityStreamsDislike) - // AppendActivityStreamsDocument appends a Document value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsDocument(v ActivityStreamsDocument) - // AppendActivityStreamsEvent appends a Event value to the back of a list - // of the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsEvent(v ActivityStreamsEvent) - // AppendActivityStreamsFlag appends a Flag value to the back of a list of - // the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsFlag(v ActivityStreamsFlag) - // AppendActivityStreamsFollow appends a Follow value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsFollow(v ActivityStreamsFollow) - // AppendActivityStreamsGroup appends a Group value to the back of a list - // of the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsGroup(v ActivityStreamsGroup) - // AppendActivityStreamsIgnore appends a Ignore value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsIgnore(v ActivityStreamsIgnore) - // AppendActivityStreamsImage appends a Image value to the back of a list - // of the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsImage(v ActivityStreamsImage) - // AppendActivityStreamsIntransitiveActivity appends a - // IntransitiveActivity value to the back of a list of the property - // "tracksTicketsFor". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // AppendActivityStreamsInvite appends a Invite value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsInvite(v ActivityStreamsInvite) - // AppendActivityStreamsJoin appends a Join value to the back of a list of - // the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsJoin(v ActivityStreamsJoin) - // AppendActivityStreamsLeave appends a Leave value to the back of a list - // of the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLeave(v ActivityStreamsLeave) - // AppendActivityStreamsLike appends a Like value to the back of a list of - // the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsLike(v ActivityStreamsLike) - // AppendActivityStreamsListen appends a Listen value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsListen(v ActivityStreamsListen) - // AppendActivityStreamsMove appends a Move value to the back of a list of - // the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsMove(v ActivityStreamsMove) - // AppendActivityStreamsNote appends a Note value to the back of a list of - // the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsNote(v ActivityStreamsNote) - // AppendActivityStreamsObject appends a Object value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsObject(v ActivityStreamsObject) - // AppendActivityStreamsOffer appends a Offer value to the back of a list - // of the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsOffer(v ActivityStreamsOffer) - // AppendActivityStreamsOrderedCollection appends a OrderedCollection - // value to the back of a list of the property "tracksTicketsFor". - // Invalidates iterators that are traversing using Prev. - AppendActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // AppendActivityStreamsOrderedCollectionPage appends a - // OrderedCollectionPage value to the back of a list of the property - // "tracksTicketsFor". Invalidates iterators that are traversing using - // Prev. - AppendActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // AppendActivityStreamsOrganization appends a Organization value to the - // back of a list of the property "tracksTicketsFor". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsOrganization(v ActivityStreamsOrganization) - // AppendActivityStreamsPage appends a Page value to the back of a list of - // the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPage(v ActivityStreamsPage) - // AppendActivityStreamsPerson appends a Person value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsPerson(v ActivityStreamsPerson) - // AppendActivityStreamsPlace appends a Place value to the back of a list - // of the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsPlace(v ActivityStreamsPlace) - // AppendActivityStreamsProfile appends a Profile value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsProfile(v ActivityStreamsProfile) - // AppendActivityStreamsQuestion appends a Question value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsQuestion(v ActivityStreamsQuestion) - // AppendActivityStreamsRead appends a Read value to the back of a list of - // the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsRead(v ActivityStreamsRead) - // AppendActivityStreamsReject appends a Reject value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsReject(v ActivityStreamsReject) - // AppendActivityStreamsRelationship appends a Relationship value to the - // back of a list of the property "tracksTicketsFor". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsRelationship(v ActivityStreamsRelationship) - // AppendActivityStreamsRemove appends a Remove value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsRemove(v ActivityStreamsRemove) - // AppendActivityStreamsService appends a Service value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsService(v ActivityStreamsService) - // AppendActivityStreamsTentativeAccept appends a TentativeAccept value to - // the back of a list of the property "tracksTicketsFor". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // AppendActivityStreamsTentativeReject appends a TentativeReject value to - // the back of a list of the property "tracksTicketsFor". Invalidates - // iterators that are traversing using Prev. - AppendActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // AppendActivityStreamsTombstone appends a Tombstone value to the back of - // a list of the property "tracksTicketsFor". Invalidates iterators - // that are traversing using Prev. - AppendActivityStreamsTombstone(v ActivityStreamsTombstone) - // AppendActivityStreamsTravel appends a Travel value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsTravel(v ActivityStreamsTravel) - // AppendActivityStreamsUndo appends a Undo value to the back of a list of - // the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsUndo(v ActivityStreamsUndo) - // AppendActivityStreamsUpdate appends a Update value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendActivityStreamsUpdate(v ActivityStreamsUpdate) - // AppendActivityStreamsVideo appends a Video value to the back of a list - // of the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsVideo(v ActivityStreamsVideo) - // AppendActivityStreamsView appends a View value to the back of a list of - // the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendActivityStreamsView(v ActivityStreamsView) - // AppendForgeFedBranch appends a Branch value to the back of a list of - // the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedBranch(v ForgeFedBranch) - // AppendForgeFedCommit appends a Commit value to the back of a list of - // the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedCommit(v ForgeFedCommit) - // AppendForgeFedPush appends a Push value to the back of a list of the - // property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedPush(v ForgeFedPush) - // AppendForgeFedRepository appends a Repository value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendForgeFedRepository(v ForgeFedRepository) - // AppendForgeFedTicket appends a Ticket value to the back of a list of - // the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendForgeFedTicket(v ForgeFedTicket) - // AppendForgeFedTicketDependency appends a TicketDependency value to the - // back of a list of the property "tracksTicketsFor". Invalidates - // iterators that are traversing using Prev. - AppendForgeFedTicketDependency(v ForgeFedTicketDependency) - // AppendIRI appends an IRI value to the back of a list of the property - // "tracksTicketsFor" - AppendIRI(v *url.URL) - // AppendTootEmoji appends a Emoji value to the back of a list of the - // property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. - AppendTootEmoji(v TootEmoji) - // AppendTootIdentityProof appends a IdentityProof value to the back of a - // list of the property "tracksTicketsFor". Invalidates iterators that - // are traversing using Prev. - AppendTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "tracksTicketsFor". Invalidates iterators that are - // traversing using Prev. Returns an error if the type is not a valid - // one to set for this property. - AppendType(t Type) error - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) ForgeFedTracksTicketsForPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() ForgeFedTracksTicketsForPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() ForgeFedTracksTicketsForPropertyIterator - // InsertActivityStreamsAccept inserts a Accept value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // InsertActivityStreamsActivity inserts a Activity value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // InsertActivityStreamsAdd inserts a Add value at the specified index for - // a property "tracksTicketsFor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // InsertActivityStreamsAnnounce inserts a Announce value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // InsertActivityStreamsApplication inserts a Application value at the - // specified index for a property "tracksTicketsFor". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // InsertActivityStreamsArrive inserts a Arrive value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // InsertActivityStreamsArticle inserts a Article value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // InsertActivityStreamsAudio inserts a Audio value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // InsertActivityStreamsBlock inserts a Block value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // InsertActivityStreamsCollection inserts a Collection value at the - // specified index for a property "tracksTicketsFor". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // InsertActivityStreamsCollectionPage inserts a CollectionPage value at - // the specified index for a property "tracksTicketsFor". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // InsertActivityStreamsCreate inserts a Create value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // InsertActivityStreamsDelete inserts a Delete value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // InsertActivityStreamsDislike inserts a Dislike value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // InsertActivityStreamsDocument inserts a Document value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // InsertActivityStreamsEvent inserts a Event value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // InsertActivityStreamsFlag inserts a Flag value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // InsertActivityStreamsFollow inserts a Follow value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // InsertActivityStreamsGroup inserts a Group value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // InsertActivityStreamsIgnore inserts a Ignore value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // InsertActivityStreamsImage inserts a Image value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsImage(idx int, v ActivityStreamsImage) - // InsertActivityStreamsIntransitiveActivity inserts a - // IntransitiveActivity value at the specified index for a property - // "tracksTicketsFor". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // InsertActivityStreamsInvite inserts a Invite value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // InsertActivityStreamsJoin inserts a Join value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // InsertActivityStreamsLeave inserts a Leave value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // InsertActivityStreamsLike inserts a Like value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsLike(idx int, v ActivityStreamsLike) - // InsertActivityStreamsListen inserts a Listen value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsListen(idx int, v ActivityStreamsListen) - // InsertActivityStreamsMove inserts a Move value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsMove(idx int, v ActivityStreamsMove) - // InsertActivityStreamsNote inserts a Note value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsNote(idx int, v ActivityStreamsNote) - // InsertActivityStreamsObject inserts a Object value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsObject(idx int, v ActivityStreamsObject) - // InsertActivityStreamsOffer inserts a Offer value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // InsertActivityStreamsOrderedCollection inserts a OrderedCollection - // value at the specified index for a property "tracksTicketsFor". - // Existing elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // InsertActivityStreamsOrderedCollectionPage inserts a - // OrderedCollectionPage value at the specified index for a property - // "tracksTicketsFor". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // InsertActivityStreamsOrganization inserts a Organization value at the - // specified index for a property "tracksTicketsFor". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // InsertActivityStreamsPage inserts a Page value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPage(idx int, v ActivityStreamsPage) - // InsertActivityStreamsPerson inserts a Person value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // InsertActivityStreamsPlace inserts a Place value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // InsertActivityStreamsProfile inserts a Profile value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // InsertActivityStreamsQuestion inserts a Question value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // InsertActivityStreamsRead inserts a Read value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRead(idx int, v ActivityStreamsRead) - // InsertActivityStreamsReject inserts a Reject value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsReject(idx int, v ActivityStreamsReject) - // InsertActivityStreamsRelationship inserts a Relationship value at the - // specified index for a property "tracksTicketsFor". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // InsertActivityStreamsRemove inserts a Remove value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // InsertActivityStreamsService inserts a Service value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsService(idx int, v ActivityStreamsService) - // InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at - // the specified index for a property "tracksTicketsFor". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // InsertActivityStreamsTentativeReject inserts a TentativeReject value at - // the specified index for a property "tracksTicketsFor". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // InsertActivityStreamsTombstone inserts a Tombstone value at the - // specified index for a property "tracksTicketsFor". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // InsertActivityStreamsTravel inserts a Travel value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // InsertActivityStreamsUndo inserts a Undo value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // InsertActivityStreamsUpdate inserts a Update value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // InsertActivityStreamsVideo inserts a Video value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // InsertActivityStreamsView inserts a View value at the specified index - // for a property "tracksTicketsFor". Existing elements at that index - // and higher are shifted back once. Invalidates all iterators. - InsertActivityStreamsView(idx int, v ActivityStreamsView) - // InsertForgeFedBranch inserts a Branch value at the specified index for - // a property "tracksTicketsFor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedBranch(idx int, v ForgeFedBranch) - // InsertForgeFedCommit inserts a Commit value at the specified index for - // a property "tracksTicketsFor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedCommit(idx int, v ForgeFedCommit) - // InsertForgeFedPush inserts a Push value at the specified index for a - // property "tracksTicketsFor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedPush(idx int, v ForgeFedPush) - // InsertForgeFedRepository inserts a Repository value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertForgeFedRepository(idx int, v ForgeFedRepository) - // InsertForgeFedTicket inserts a Ticket value at the specified index for - // a property "tracksTicketsFor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertForgeFedTicket(idx int, v ForgeFedTicket) - // InsertForgeFedTicketDependency inserts a TicketDependency value at the - // specified index for a property "tracksTicketsFor". Existing - // elements at that index and higher are shifted back once. - // Invalidates all iterators. - InsertForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // Insert inserts an IRI value at the specified index for a property - // "tracksTicketsFor". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertTootEmoji inserts a Emoji value at the specified index for a - // property "tracksTicketsFor". Existing elements at that index and - // higher are shifted back once. Invalidates all iterators. - InsertTootEmoji(idx int, v TootEmoji) - // InsertTootIdentityProof inserts a IdentityProof value at the specified - // index for a property "tracksTicketsFor". Existing elements at that - // index and higher are shifted back once. Invalidates all iterators. - InsertTootIdentityProof(idx int, v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "tracksTicketsFor". Invalidates all iterators. Returns - // an error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "tracksTicketsFor" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o ForgeFedTracksTicketsForProperty) bool - // Name returns the name of this property ("tracksTicketsFor") with any - // alias. - Name() string - // PrependActivityStreamsAccept prepends a Accept value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsAccept(v ActivityStreamsAccept) - // PrependActivityStreamsActivity prepends a Activity value to the front - // of a list of the property "tracksTicketsFor". Invalidates all - // iterators. - PrependActivityStreamsActivity(v ActivityStreamsActivity) - // PrependActivityStreamsAdd prepends a Add value to the front of a list - // of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsAdd(v ActivityStreamsAdd) - // PrependActivityStreamsAnnounce prepends a Announce value to the front - // of a list of the property "tracksTicketsFor". Invalidates all - // iterators. - PrependActivityStreamsAnnounce(v ActivityStreamsAnnounce) - // PrependActivityStreamsApplication prepends a Application value to the - // front of a list of the property "tracksTicketsFor". Invalidates all - // iterators. - PrependActivityStreamsApplication(v ActivityStreamsApplication) - // PrependActivityStreamsArrive prepends a Arrive value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsArrive(v ActivityStreamsArrive) - // PrependActivityStreamsArticle prepends a Article value to the front of - // a list of the property "tracksTicketsFor". Invalidates all - // iterators. - PrependActivityStreamsArticle(v ActivityStreamsArticle) - // PrependActivityStreamsAudio prepends a Audio value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsAudio(v ActivityStreamsAudio) - // PrependActivityStreamsBlock prepends a Block value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsBlock(v ActivityStreamsBlock) - // PrependActivityStreamsCollection prepends a Collection value to the - // front of a list of the property "tracksTicketsFor". Invalidates all - // iterators. - PrependActivityStreamsCollection(v ActivityStreamsCollection) - // PrependActivityStreamsCollectionPage prepends a CollectionPage value to - // the front of a list of the property "tracksTicketsFor". Invalidates - // all iterators. - PrependActivityStreamsCollectionPage(v ActivityStreamsCollectionPage) - // PrependActivityStreamsCreate prepends a Create value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsCreate(v ActivityStreamsCreate) - // PrependActivityStreamsDelete prepends a Delete value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsDelete(v ActivityStreamsDelete) - // PrependActivityStreamsDislike prepends a Dislike value to the front of - // a list of the property "tracksTicketsFor". Invalidates all - // iterators. - PrependActivityStreamsDislike(v ActivityStreamsDislike) - // PrependActivityStreamsDocument prepends a Document value to the front - // of a list of the property "tracksTicketsFor". Invalidates all - // iterators. - PrependActivityStreamsDocument(v ActivityStreamsDocument) - // PrependActivityStreamsEvent prepends a Event value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsEvent(v ActivityStreamsEvent) - // PrependActivityStreamsFlag prepends a Flag value to the front of a list - // of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsFlag(v ActivityStreamsFlag) - // PrependActivityStreamsFollow prepends a Follow value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsFollow(v ActivityStreamsFollow) - // PrependActivityStreamsGroup prepends a Group value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsGroup(v ActivityStreamsGroup) - // PrependActivityStreamsIgnore prepends a Ignore value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsIgnore(v ActivityStreamsIgnore) - // PrependActivityStreamsImage prepends a Image value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsImage(v ActivityStreamsImage) - // PrependActivityStreamsIntransitiveActivity prepends a - // IntransitiveActivity value to the front of a list of the property - // "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsIntransitiveActivity(v ActivityStreamsIntransitiveActivity) - // PrependActivityStreamsInvite prepends a Invite value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsInvite(v ActivityStreamsInvite) - // PrependActivityStreamsJoin prepends a Join value to the front of a list - // of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsJoin(v ActivityStreamsJoin) - // PrependActivityStreamsLeave prepends a Leave value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsLeave(v ActivityStreamsLeave) - // PrependActivityStreamsLike prepends a Like value to the front of a list - // of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsLike(v ActivityStreamsLike) - // PrependActivityStreamsListen prepends a Listen value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsListen(v ActivityStreamsListen) - // PrependActivityStreamsMove prepends a Move value to the front of a list - // of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsMove(v ActivityStreamsMove) - // PrependActivityStreamsNote prepends a Note value to the front of a list - // of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsNote(v ActivityStreamsNote) - // PrependActivityStreamsObject prepends a Object value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsObject(v ActivityStreamsObject) - // PrependActivityStreamsOffer prepends a Offer value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsOffer(v ActivityStreamsOffer) - // PrependActivityStreamsOrderedCollection prepends a OrderedCollection - // value to the front of a list of the property "tracksTicketsFor". - // Invalidates all iterators. - PrependActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // PrependActivityStreamsOrderedCollectionPage prepends a - // OrderedCollectionPage value to the front of a list of the property - // "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // PrependActivityStreamsOrganization prepends a Organization value to the - // front of a list of the property "tracksTicketsFor". Invalidates all - // iterators. - PrependActivityStreamsOrganization(v ActivityStreamsOrganization) - // PrependActivityStreamsPage prepends a Page value to the front of a list - // of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsPage(v ActivityStreamsPage) - // PrependActivityStreamsPerson prepends a Person value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsPerson(v ActivityStreamsPerson) - // PrependActivityStreamsPlace prepends a Place value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsPlace(v ActivityStreamsPlace) - // PrependActivityStreamsProfile prepends a Profile value to the front of - // a list of the property "tracksTicketsFor". Invalidates all - // iterators. - PrependActivityStreamsProfile(v ActivityStreamsProfile) - // PrependActivityStreamsQuestion prepends a Question value to the front - // of a list of the property "tracksTicketsFor". Invalidates all - // iterators. - PrependActivityStreamsQuestion(v ActivityStreamsQuestion) - // PrependActivityStreamsRead prepends a Read value to the front of a list - // of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsRead(v ActivityStreamsRead) - // PrependActivityStreamsReject prepends a Reject value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsReject(v ActivityStreamsReject) - // PrependActivityStreamsRelationship prepends a Relationship value to the - // front of a list of the property "tracksTicketsFor". Invalidates all - // iterators. - PrependActivityStreamsRelationship(v ActivityStreamsRelationship) - // PrependActivityStreamsRemove prepends a Remove value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsRemove(v ActivityStreamsRemove) - // PrependActivityStreamsService prepends a Service value to the front of - // a list of the property "tracksTicketsFor". Invalidates all - // iterators. - PrependActivityStreamsService(v ActivityStreamsService) - // PrependActivityStreamsTentativeAccept prepends a TentativeAccept value - // to the front of a list of the property "tracksTicketsFor". - // Invalidates all iterators. - PrependActivityStreamsTentativeAccept(v ActivityStreamsTentativeAccept) - // PrependActivityStreamsTentativeReject prepends a TentativeReject value - // to the front of a list of the property "tracksTicketsFor". - // Invalidates all iterators. - PrependActivityStreamsTentativeReject(v ActivityStreamsTentativeReject) - // PrependActivityStreamsTombstone prepends a Tombstone value to the front - // of a list of the property "tracksTicketsFor". Invalidates all - // iterators. - PrependActivityStreamsTombstone(v ActivityStreamsTombstone) - // PrependActivityStreamsTravel prepends a Travel value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsTravel(v ActivityStreamsTravel) - // PrependActivityStreamsUndo prepends a Undo value to the front of a list - // of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsUndo(v ActivityStreamsUndo) - // PrependActivityStreamsUpdate prepends a Update value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsUpdate(v ActivityStreamsUpdate) - // PrependActivityStreamsVideo prepends a Video value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsVideo(v ActivityStreamsVideo) - // PrependActivityStreamsView prepends a View value to the front of a list - // of the property "tracksTicketsFor". Invalidates all iterators. - PrependActivityStreamsView(v ActivityStreamsView) - // PrependForgeFedBranch prepends a Branch value to the front of a list of - // the property "tracksTicketsFor". Invalidates all iterators. - PrependForgeFedBranch(v ForgeFedBranch) - // PrependForgeFedCommit prepends a Commit value to the front of a list of - // the property "tracksTicketsFor". Invalidates all iterators. - PrependForgeFedCommit(v ForgeFedCommit) - // PrependForgeFedPush prepends a Push value to the front of a list of the - // property "tracksTicketsFor". Invalidates all iterators. - PrependForgeFedPush(v ForgeFedPush) - // PrependForgeFedRepository prepends a Repository value to the front of a - // list of the property "tracksTicketsFor". Invalidates all iterators. - PrependForgeFedRepository(v ForgeFedRepository) - // PrependForgeFedTicket prepends a Ticket value to the front of a list of - // the property "tracksTicketsFor". Invalidates all iterators. - PrependForgeFedTicket(v ForgeFedTicket) - // PrependForgeFedTicketDependency prepends a TicketDependency value to - // the front of a list of the property "tracksTicketsFor". Invalidates - // all iterators. - PrependForgeFedTicketDependency(v ForgeFedTicketDependency) - // PrependIRI prepends an IRI value to the front of a list of the property - // "tracksTicketsFor". - PrependIRI(v *url.URL) - // PrependTootEmoji prepends a Emoji value to the front of a list of the - // property "tracksTicketsFor". Invalidates all iterators. - PrependTootEmoji(v TootEmoji) - // PrependTootIdentityProof prepends a IdentityProof value to the front of - // a list of the property "tracksTicketsFor". Invalidates all - // iterators. - PrependTootIdentityProof(v TootIdentityProof) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "tracksTicketsFor". Invalidates all iterators. Returns - // an error if the type is not a valid one to set for this property. - PrependType(t Type) error - // Remove deletes an element at the specified index from a list of the - // property "tracksTicketsFor", regardless of its type. Panics if the - // index is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsAccept sets a Accept value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsAccept(idx int, v ActivityStreamsAccept) - // SetActivityStreamsActivity sets a Activity value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsActivity(idx int, v ActivityStreamsActivity) - // SetActivityStreamsAdd sets a Add value to be at the specified index for - // the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAdd(idx int, v ActivityStreamsAdd) - // SetActivityStreamsAnnounce sets a Announce value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsAnnounce(idx int, v ActivityStreamsAnnounce) - // SetActivityStreamsApplication sets a Application value to be at the - // specified index for the property "tracksTicketsFor". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsApplication(idx int, v ActivityStreamsApplication) - // SetActivityStreamsArrive sets a Arrive value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsArrive(idx int, v ActivityStreamsArrive) - // SetActivityStreamsArticle sets a Article value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsArticle(idx int, v ActivityStreamsArticle) - // SetActivityStreamsAudio sets a Audio value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsAudio(idx int, v ActivityStreamsAudio) - // SetActivityStreamsBlock sets a Block value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsBlock(idx int, v ActivityStreamsBlock) - // SetActivityStreamsCollection sets a Collection value to be at the - // specified index for the property "tracksTicketsFor". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollection(idx int, v ActivityStreamsCollection) - // SetActivityStreamsCollectionPage sets a CollectionPage value to be at - // the specified index for the property "tracksTicketsFor". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsCollectionPage(idx int, v ActivityStreamsCollectionPage) - // SetActivityStreamsCreate sets a Create value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsCreate(idx int, v ActivityStreamsCreate) - // SetActivityStreamsDelete sets a Delete value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsDelete(idx int, v ActivityStreamsDelete) - // SetActivityStreamsDislike sets a Dislike value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsDislike(idx int, v ActivityStreamsDislike) - // SetActivityStreamsDocument sets a Document value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsDocument(idx int, v ActivityStreamsDocument) - // SetActivityStreamsEvent sets a Event value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsEvent(idx int, v ActivityStreamsEvent) - // SetActivityStreamsFlag sets a Flag value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsFlag(idx int, v ActivityStreamsFlag) - // SetActivityStreamsFollow sets a Follow value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsFollow(idx int, v ActivityStreamsFollow) - // SetActivityStreamsGroup sets a Group value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsGroup(idx int, v ActivityStreamsGroup) - // SetActivityStreamsIgnore sets a Ignore value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsIgnore(idx int, v ActivityStreamsIgnore) - // SetActivityStreamsImage sets a Image value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsImage(idx int, v ActivityStreamsImage) - // SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity - // value to be at the specified index for the property - // "tracksTicketsFor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsIntransitiveActivity(idx int, v ActivityStreamsIntransitiveActivity) - // SetActivityStreamsInvite sets a Invite value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsInvite(idx int, v ActivityStreamsInvite) - // SetActivityStreamsJoin sets a Join value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsJoin(idx int, v ActivityStreamsJoin) - // SetActivityStreamsLeave sets a Leave value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLeave(idx int, v ActivityStreamsLeave) - // SetActivityStreamsLike sets a Like value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsLike(idx int, v ActivityStreamsLike) - // SetActivityStreamsListen sets a Listen value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsListen(idx int, v ActivityStreamsListen) - // SetActivityStreamsMove sets a Move value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsMove(idx int, v ActivityStreamsMove) - // SetActivityStreamsNote sets a Note value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsNote(idx int, v ActivityStreamsNote) - // SetActivityStreamsObject sets a Object value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsObject(idx int, v ActivityStreamsObject) - // SetActivityStreamsOffer sets a Offer value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsOffer(idx int, v ActivityStreamsOffer) - // SetActivityStreamsOrderedCollection sets a OrderedCollection value to - // be at the specified index for the property "tracksTicketsFor". - // Panics if the index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrderedCollection(idx int, v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage - // value to be at the specified index for the property - // "tracksTicketsFor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetActivityStreamsOrderedCollectionPage(idx int, v ActivityStreamsOrderedCollectionPage) - // SetActivityStreamsOrganization sets a Organization value to be at the - // specified index for the property "tracksTicketsFor". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsOrganization(idx int, v ActivityStreamsOrganization) - // SetActivityStreamsPage sets a Page value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPage(idx int, v ActivityStreamsPage) - // SetActivityStreamsPerson sets a Person value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsPerson(idx int, v ActivityStreamsPerson) - // SetActivityStreamsPlace sets a Place value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsPlace(idx int, v ActivityStreamsPlace) - // SetActivityStreamsProfile sets a Profile value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsProfile(idx int, v ActivityStreamsProfile) - // SetActivityStreamsQuestion sets a Question value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsQuestion(idx int, v ActivityStreamsQuestion) - // SetActivityStreamsRead sets a Read value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsRead(idx int, v ActivityStreamsRead) - // SetActivityStreamsReject sets a Reject value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsReject(idx int, v ActivityStreamsReject) - // SetActivityStreamsRelationship sets a Relationship value to be at the - // specified index for the property "tracksTicketsFor". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsRelationship(idx int, v ActivityStreamsRelationship) - // SetActivityStreamsRemove sets a Remove value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsRemove(idx int, v ActivityStreamsRemove) - // SetActivityStreamsService sets a Service value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsService(idx int, v ActivityStreamsService) - // SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at - // the specified index for the property "tracksTicketsFor". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeAccept(idx int, v ActivityStreamsTentativeAccept) - // SetActivityStreamsTentativeReject sets a TentativeReject value to be at - // the specified index for the property "tracksTicketsFor". Panics if - // the index is out of bounds. Invalidates all iterators. - SetActivityStreamsTentativeReject(idx int, v ActivityStreamsTentativeReject) - // SetActivityStreamsTombstone sets a Tombstone value to be at the - // specified index for the property "tracksTicketsFor". Panics if the - // index is out of bounds. Invalidates all iterators. - SetActivityStreamsTombstone(idx int, v ActivityStreamsTombstone) - // SetActivityStreamsTravel sets a Travel value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsTravel(idx int, v ActivityStreamsTravel) - // SetActivityStreamsUndo sets a Undo value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsUndo(idx int, v ActivityStreamsUndo) - // SetActivityStreamsUpdate sets a Update value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetActivityStreamsUpdate(idx int, v ActivityStreamsUpdate) - // SetActivityStreamsVideo sets a Video value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsVideo(idx int, v ActivityStreamsVideo) - // SetActivityStreamsView sets a View value to be at the specified index - // for the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetActivityStreamsView(idx int, v ActivityStreamsView) - // SetForgeFedBranch sets a Branch value to be at the specified index for - // the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedBranch(idx int, v ForgeFedBranch) - // SetForgeFedCommit sets a Commit value to be at the specified index for - // the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedCommit(idx int, v ForgeFedCommit) - // SetForgeFedPush sets a Push value to be at the specified index for the - // property "tracksTicketsFor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetForgeFedPush(idx int, v ForgeFedPush) - // SetForgeFedRepository sets a Repository value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetForgeFedRepository(idx int, v ForgeFedRepository) - // SetForgeFedTicket sets a Ticket value to be at the specified index for - // the property "tracksTicketsFor". Panics if the index is out of - // bounds. Invalidates all iterators. - SetForgeFedTicket(idx int, v ForgeFedTicket) - // SetForgeFedTicketDependency sets a TicketDependency value to be at the - // specified index for the property "tracksTicketsFor". Panics if the - // index is out of bounds. Invalidates all iterators. - SetForgeFedTicketDependency(idx int, v ForgeFedTicketDependency) - // SetIRI sets an IRI value to be at the specified index for the property - // "tracksTicketsFor". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetTootEmoji sets a Emoji value to be at the specified index for the - // property "tracksTicketsFor". Panics if the index is out of bounds. - // Invalidates all iterators. - SetTootEmoji(idx int, v TootEmoji) - // SetTootIdentityProof sets a IdentityProof value to be at the specified - // index for the property "tracksTicketsFor". Panics if the index is - // out of bounds. Invalidates all iterators. - SetTootIdentityProof(idx int, v TootIdentityProof) - // SetType sets an arbitrary type value to the specified index of the - // property "tracksTicketsFor". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - // Panics if the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the - // "tracksTicketsFor" property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_jsonld_id_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_jsonld_id_interface.go deleted file mode 100644 index 289ec2822..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_jsonld_id_interface.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// Provides the globally unique identifier for JSON-LD entities. -type JSONLDIdProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaAnyURI afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaAnyURI returns - // false, Get will return any arbitrary value. - Get() *url.URL - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o JSONLDIdProperty) bool - // Name returns the name of this property: "id". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaAnyURI - // afterwards will return true. - Set(v *url.URL) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_jsonld_type_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_jsonld_type_interface.go deleted file mode 100644 index 6c9e7a07b..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_jsonld_type_interface.go +++ /dev/null @@ -1,158 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// JSONLDTypePropertyIterator represents a single value for the "type" property. -type JSONLDTypePropertyIterator interface { - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetXMLSchemaAnyURI returns the value of this property. When - // IsXMLSchemaAnyURI returns false, GetXMLSchemaAnyURI will return an - // arbitrary value. - GetXMLSchemaAnyURI() *url.URL - // GetXMLSchemaString returns the value of this property. When - // IsXMLSchemaString returns false, GetXMLSchemaString will return an - // arbitrary value. - GetXMLSchemaString() string - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property has a type of "anyURI". - // When true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI - // methods to access and set this property. - IsXMLSchemaAnyURI() bool - // IsXMLSchemaString returns true if this property has a type of "string". - // When true, use the GetXMLSchemaString and SetXMLSchemaString - // methods to access and set this property. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o JSONLDTypePropertyIterator) bool - // Name returns the name of this property: "JSONLDType". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() JSONLDTypePropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() JSONLDTypePropertyIterator - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetXMLSchemaAnyURI sets the value of this property. Calling - // IsXMLSchemaAnyURI afterwards returns true. - SetXMLSchemaAnyURI(v *url.URL) - // SetXMLSchemaString sets the value of this property. Calling - // IsXMLSchemaString afterwards returns true. - SetXMLSchemaString(v string) -} - -// Identifies the schema type(s) of the JSON-LD entity. -type JSONLDTypeProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "type" - AppendIRI(v *url.URL) - // AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of - // the property "type". Invalidates iterators that are traversing - // using Prev. - AppendXMLSchemaAnyURI(v *url.URL) - // AppendXMLSchemaString appends a string value to the back of a list of - // the property "type". Invalidates iterators that are traversing - // using Prev. - AppendXMLSchemaString(v string) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) JSONLDTypePropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() JSONLDTypePropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() JSONLDTypePropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "type". Existing elements at that index and higher are shifted back - // once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for - // a property "type". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertXMLSchemaAnyURI(idx int, v *url.URL) - // InsertXMLSchemaString inserts a string value at the specified index for - // a property "type". Existing elements at that index and higher are - // shifted back once. Invalidates all iterators. - InsertXMLSchemaString(idx int, v string) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "type" property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o JSONLDTypeProperty) bool - // Name returns the name of this property ("type") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "type". - PrependIRI(v *url.URL) - // PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list - // of the property "type". Invalidates all iterators. - PrependXMLSchemaAnyURI(v *url.URL) - // PrependXMLSchemaString prepends a string value to the front of a list - // of the property "type". Invalidates all iterators. - PrependXMLSchemaString(v string) - // Remove deletes an element at the specified index from a list of the - // property "type", regardless of its type. Panics if the index is out - // of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetIRI sets an IRI value to be at the specified index for the property - // "type". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetXMLSchemaAnyURI sets a anyURI value to be at the specified index for - // the property "type". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaAnyURI(idx int, v *url.URL) - // SetXMLSchemaString sets a string value to be at the specified index for - // the property "type". Panics if the index is out of bounds. - // Invalidates all iterators. - SetXMLSchemaString(idx int, v string) - // Swap swaps the location of values at two indices for the "type" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_blurhash_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_blurhash_interface.go deleted file mode 100644 index 94e078550..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_blurhash_interface.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// -// -// null -type TootBlurhashProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaString afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaString returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaString returns true if this property is set and not an IRI. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o TootBlurhashProperty) bool - // Name returns the name of this property: "blurhash". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaString - // afterwards will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_discoverable_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_discoverable_interface.go deleted file mode 100644 index 153c55314..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_discoverable_interface.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// -// -// null -type TootDiscoverableProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaBoolean afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaBoolean returns - // false, Get will return any arbitrary value. - Get() bool - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaBoolean returns true if this property is set and not an IRI. - IsXMLSchemaBoolean() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o TootDiscoverableProperty) bool - // Name returns the name of this property: "discoverable". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaBoolean - // afterwards will return true. - Set(v bool) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_featured_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_featured_interface.go deleted file mode 100644 index 821a676e9..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_featured_interface.go +++ /dev/null @@ -1,82 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// -// -// null -type TootFeaturedProperty interface { - // Clear ensures no value of this property is set. Calling HasAny or any - // of the 'Is' methods afterwards will return false. - Clear() - // GetActivityStreamsOrderedCollection returns the value of this property. - // When IsActivityStreamsOrderedCollection returns false, - // GetActivityStreamsOrderedCollection will return an arbitrary value. - GetActivityStreamsOrderedCollection() ActivityStreamsOrderedCollection - // GetActivityStreamsOrderedCollectionPage returns the value of this - // property. When IsActivityStreamsOrderedCollectionPage returns - // false, GetActivityStreamsOrderedCollectionPage will return an - // arbitrary value. - GetActivityStreamsOrderedCollectionPage() ActivityStreamsOrderedCollectionPage - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return an arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if any of the different values is set. - HasAny() bool - // IsActivityStreamsOrderedCollection returns true if this property has a - // type of "OrderedCollection". When true, use the - // GetActivityStreamsOrderedCollection and - // SetActivityStreamsOrderedCollection methods to access and set this - // property. - IsActivityStreamsOrderedCollection() bool - // IsActivityStreamsOrderedCollectionPage returns true if this property - // has a type of "OrderedCollectionPage". When true, use the - // GetActivityStreamsOrderedCollectionPage and - // SetActivityStreamsOrderedCollectionPage methods to access and set - // this property. - IsActivityStreamsOrderedCollectionPage() bool - // IsIRI returns true if this property is an IRI. When true, use GetIRI - // and SetIRI to access and set this property - IsIRI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o TootFeaturedProperty) bool - // Name returns the name of this property: "featured". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // SetActivityStreamsOrderedCollection sets the value of this property. - // Calling IsActivityStreamsOrderedCollection afterwards returns true. - SetActivityStreamsOrderedCollection(v ActivityStreamsOrderedCollection) - // SetActivityStreamsOrderedCollectionPage sets the value of this - // property. Calling IsActivityStreamsOrderedCollectionPage afterwards - // returns true. - SetActivityStreamsOrderedCollectionPage(v ActivityStreamsOrderedCollectionPage) - // SetIRI sets the value of this property. Calling IsIRI afterwards - // returns true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_signatureAlgorithm_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_signatureAlgorithm_interface.go deleted file mode 100644 index e18dea3d6..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_signatureAlgorithm_interface.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// -// -// null -type TootSignatureAlgorithmProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaString afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaString returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaString returns true if this property is set and not an IRI. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o TootSignatureAlgorithmProperty) bool - // Name returns the name of this property: "signatureAlgorithm". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaString - // afterwards will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_signatureValue_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_signatureValue_interface.go deleted file mode 100644 index 06b49b67d..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_signatureValue_interface.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// -// -// null -type TootSignatureValueProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaString afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaString returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaString returns true if this property is set and not an IRI. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o TootSignatureValueProperty) bool - // Name returns the name of this property: "signatureValue". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaString - // afterwards will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_votersCount_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_votersCount_interface.go deleted file mode 100644 index 52a45b47d..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_toot_votersCount_interface.go +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// -// -// null -type TootVotersCountProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return false. - Clear() - // Get returns the value of this property. When - // IsXMLSchemaNonNegativeInteger returns false, Get will return any - // arbitrary value. - Get() int - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaNonNegativeInteger returns true if this property is set and - // not an IRI. - IsXMLSchemaNonNegativeInteger() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o TootVotersCountProperty) bool - // Name returns the name of this property: "votersCount". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling - // IsXMLSchemaNonNegativeInteger afterwards will return true. - Set(v int) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_w3idsecurityv1_owner_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_w3idsecurityv1_owner_interface.go deleted file mode 100644 index e45d44a77..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_w3idsecurityv1_owner_interface.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// The owner of the public key for an ActivityStreams actor -type W3IDSecurityV1OwnerProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaAnyURI afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaAnyURI returns - // false, Get will return any arbitrary value. - Get() *url.URL - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaAnyURI returns true if this property is set and not an IRI. - IsXMLSchemaAnyURI() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o W3IDSecurityV1OwnerProperty) bool - // Name returns the name of this property: "owner". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaAnyURI - // afterwards will return true. - Set(v *url.URL) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_w3idsecurityv1_publicKeyPem_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_w3idsecurityv1_publicKeyPem_interface.go deleted file mode 100644 index 906eb673d..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_w3idsecurityv1_publicKeyPem_interface.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// The public key PEM encoded data for an ActivityStreams actor -type W3IDSecurityV1PublicKeyPemProperty interface { - // Clear ensures no value of this property is set. Calling - // IsXMLSchemaString afterwards will return false. - Clear() - // Get returns the value of this property. When IsXMLSchemaString returns - // false, Get will return any arbitrary value. - Get() string - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsXMLSchemaString returns true if this property is set and not an IRI. - IsXMLSchemaString() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o W3IDSecurityV1PublicKeyPemProperty) bool - // Name returns the name of this property: "publicKeyPem". - Name() string - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets the value of this property. Calling IsXMLSchemaString - // afterwards will return true. - Set(v string) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_w3idsecurityv1_publicKey_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_property_w3idsecurityv1_publicKey_interface.go deleted file mode 100644 index 246a1a3df..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_property_w3idsecurityv1_publicKey_interface.go +++ /dev/null @@ -1,159 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -import "net/url" - -// W3IDSecurityV1PublicKeyPropertyIterator represents a single value for the -// "publicKey" property. -type W3IDSecurityV1PublicKeyPropertyIterator interface { - // Get returns the value of this property. When IsW3IDSecurityV1PublicKey - // returns false, Get will return any arbitrary value. - Get() W3IDSecurityV1PublicKey - // GetIRI returns the IRI of this property. When IsIRI returns false, - // GetIRI will return any arbitrary value. - GetIRI() *url.URL - // GetType returns the value in this property as a Type. Returns nil if - // the value is not an ActivityStreams type, such as an IRI or another - // value. - GetType() Type - // HasAny returns true if the value or IRI is set. - HasAny() bool - // IsIRI returns true if this property is an IRI. - IsIRI() bool - // IsW3IDSecurityV1PublicKey returns true if this property is set and not - // an IRI. - IsW3IDSecurityV1PublicKey() bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API detail only for folks looking to replace the - // go-fed implementation. Applications should not use this method. - KindIndex() int - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o W3IDSecurityV1PublicKeyPropertyIterator) bool - // Name returns the name of this property: "W3IDSecurityV1PublicKey". - Name() string - // Next returns the next iterator, or nil if there is no next iterator. - Next() W3IDSecurityV1PublicKeyPropertyIterator - // Prev returns the previous iterator, or nil if there is no previous - // iterator. - Prev() W3IDSecurityV1PublicKeyPropertyIterator - // Set sets the value of this property. Calling IsW3IDSecurityV1PublicKey - // afterwards will return true. - Set(v W3IDSecurityV1PublicKey) - // SetIRI sets the value of this property. Calling IsIRI afterwards will - // return true. - SetIRI(v *url.URL) - // SetType attempts to set the property for the arbitrary type. Returns an - // error if it is not a valid type to set on this property. - SetType(t Type) error -} - -// The public key for an ActivityStreams actor -// -// null -type W3IDSecurityV1PublicKeyProperty interface { - // AppendIRI appends an IRI value to the back of a list of the property - // "publicKey" - AppendIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "publicKey". Invalidates iterators that are traversing - // using Prev. Returns an error if the type is not a valid one to set - // for this property. - AppendType(t Type) error - // AppendW3IDSecurityV1PublicKey appends a PublicKey value to the back of - // a list of the property "publicKey". Invalidates iterators that are - // traversing using Prev. - AppendW3IDSecurityV1PublicKey(v W3IDSecurityV1PublicKey) - // At returns the property value for the specified index. Panics if the - // index is out of bounds. - At(index int) W3IDSecurityV1PublicKeyPropertyIterator - // Begin returns the first iterator, or nil if empty. Can be used with the - // iterator's Next method and this property's End method to iterate - // from front to back through all values. - Begin() W3IDSecurityV1PublicKeyPropertyIterator - // Empty returns returns true if there are no elements. - Empty() bool - // End returns beyond-the-last iterator, which is nil. Can be used with - // the iterator's Next method and this property's Begin method to - // iterate from front to back through all values. - End() W3IDSecurityV1PublicKeyPropertyIterator - // Insert inserts an IRI value at the specified index for a property - // "publicKey". Existing elements at that index and higher are shifted - // back once. Invalidates all iterators. - InsertIRI(idx int, v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "publicKey". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - InsertType(idx int, t Type) error - // InsertW3IDSecurityV1PublicKey inserts a PublicKey value at the - // specified index for a property "publicKey". Existing elements at - // that index and higher are shifted back once. Invalidates all - // iterators. - InsertW3IDSecurityV1PublicKey(idx int, v W3IDSecurityV1PublicKey) - // JSONLDContext returns the JSONLD URIs required in the context string - // for this property and the specific values that are set. The value - // in the map is the alias used to import the property's value or - // values. - JSONLDContext() map[string]string - // KindIndex computes an arbitrary value for indexing this kind of value. - // This is a leaky API method specifically needed only for alternate - // implementations for go-fed. Applications should not use this - // method. Panics if the index is out of bounds. - KindIndex(idx int) int - // Len returns the number of values that exist for the "publicKey" - // property. - Len() (length int) - // Less computes whether another property is less than this one. Mixing - // types results in a consistent but arbitrary ordering - Less(i, j int) bool - // LessThan compares two instances of this property with an arbitrary but - // stable comparison. Applications should not use this because it is - // only meant to help alternative implementations to go-fed to be able - // to normalize nonfunctional properties. - LessThan(o W3IDSecurityV1PublicKeyProperty) bool - // Name returns the name of this property ("publicKey") with any alias. - Name() string - // PrependIRI prepends an IRI value to the front of a list of the property - // "publicKey". - PrependIRI(v *url.URL) - // PrependType prepends an arbitrary type value to the front of a list of - // the property "publicKey". Invalidates all iterators. Returns an - // error if the type is not a valid one to set for this property. - PrependType(t Type) error - // PrependW3IDSecurityV1PublicKey prepends a PublicKey value to the front - // of a list of the property "publicKey". Invalidates all iterators. - PrependW3IDSecurityV1PublicKey(v W3IDSecurityV1PublicKey) - // Remove deletes an element at the specified index from a list of the - // property "publicKey", regardless of its type. Panics if the index - // is out of bounds. Invalidates all iterators. - Remove(idx int) - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. Applications should not - // need this function as most typical use cases serialize types - // instead of individual properties. It is exposed for alternatives to - // go-fed implementations to use. - Serialize() (interface{}, error) - // Set sets a PublicKey value to be at the specified index for the - // property "publicKey". Panics if the index is out of bounds. - // Invalidates all iterators. - Set(idx int, v W3IDSecurityV1PublicKey) - // SetIRI sets an IRI value to be at the specified index for the property - // "publicKey". Panics if the index is out of bounds. - SetIRI(idx int, v *url.URL) - // SetType sets an arbitrary type value to the specified index of the - // property "publicKey". Invalidates all iterators. Returns an error - // if the type is not a valid one to set for this property. Panics if - // the index is out of bounds. - SetType(idx int, t Type) error - // Swap swaps the location of values at two indices for the "publicKey" - // property. - Swap(i, j int) -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_accept_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_accept_interface.go deleted file mode 100644 index bac356dab..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_accept_interface.go +++ /dev/null @@ -1,273 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor accepts the object. The target property can be used in -// certain circumstances to indicate the context into which the object has -// been accepted. -// -// Example 9 (https://www.w3.org/TR/activitystreams-vocabulary/#ex7a-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "actor": "http://john.example.org", -// "object": { -// "name": "Going-Away Party for Jim", -// "type": "Event" -// }, -// "type": "Invite" -// }, -// "summary": "Sally accepted an invitation to a party", -// "type": "Accept" -// } -// -// Example 10 (https://www.w3.org/TR/activitystreams-vocabulary/#ex7b-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "Joe", -// "type": "Person" -// }, -// "summary": "Sally accepted Joe into the club", -// "target": { -// "name": "The Club", -// "type": "Group" -// }, -// "type": "Accept" -// } -type ActivityStreamsAccept interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Accept - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Accept type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Accept is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsAccept) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_activity_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_activity_interface.go deleted file mode 100644 index f148dbab3..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_activity_interface.go +++ /dev/null @@ -1,254 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// An Activity is a subtype of Object that describes some form of action that may -// happen, is currently happening, or has already happened. The Activity type -// itself serves as an abstract base type for all types of activities. It is -// important to note that the Activity type itself does not carry any specific -// semantics about the kind of action being taken. -// -// Example 3 (https://www.w3.org/TR/activitystreams-vocabulary/#ex3-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "A Note", -// "type": "Note" -// }, -// "summary": "Sally did something to a note", -// "type": "Activity" -// } -type ActivityStreamsActivity interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Activity - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Activity type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Activity is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsActivity) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_add_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_add_interface.go deleted file mode 100644 index 2f62d18ad..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_add_interface.go +++ /dev/null @@ -1,273 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has added the object to the target. If the target -// property is not explicitly specified, the target would need to be -// determined implicitly by context. The origin can be used to identify the -// context from which the object originated. -// -// Example 12 (https://www.w3.org/TR/activitystreams-vocabulary/#ex9-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/abc", -// "summary": "Sally added an object", -// "type": "Add" -// } -// -// Example 13 (https://www.w3.org/TR/activitystreams-vocabulary/#ex10-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "A picture of my cat", -// "type": "Image", -// "url": "http://example.org/img/cat.png" -// }, -// "origin": { -// "name": "Camera Roll", -// "type": "Collection" -// }, -// "summary": "Sally added a picture of her cat to her cat picture -// collection", -// "target": { -// "name": "My Cat Pictures", -// "type": "Collection" -// }, -// "type": "Add" -// } -type ActivityStreamsAdd interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Add type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Add type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Add is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsAdd) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_announce_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_announce_interface.go deleted file mode 100644 index 48d43123c..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_announce_interface.go +++ /dev/null @@ -1,256 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is calling the target's attention the object. The -// origin typically has no defined meaning. -// -// Example 36 (https://www.w3.org/TR/activitystreams-vocabulary/#ex170-jsonld): -// { -// "actor": { -// "id": "http://sally.example.org", -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "actor": "http://sally.example.org", -// "location": { -// "name": "Work", -// "type": "Place" -// }, -// "type": "Arrive" -// }, -// "summary": "Sally announced that she had arrived at work", -// "type": "Announce" -// } -type ActivityStreamsAnnounce interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Announce - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Announce type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Announce is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsAnnounce) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_application_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_application_interface.go deleted file mode 100644 index f1ff7e577..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_application_interface.go +++ /dev/null @@ -1,275 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Describes a software application. -// -// Example 42 (https://www.w3.org/TR/activitystreams-vocabulary/#ex34-jsonld): -// { -// "name": "Exampletron 3000", -// "type": "Application" -// } -type ActivityStreamsApplication interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsFollowers returns the "followers" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowers() ActivityStreamsFollowersProperty - // GetActivityStreamsFollowing returns the "following" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowing() ActivityStreamsFollowingProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInbox returns the "inbox" property if it exists, and - // nil otherwise. - GetActivityStreamsInbox() ActivityStreamsInboxProperty - // GetActivityStreamsLiked returns the "liked" property if it exists, and - // nil otherwise. - GetActivityStreamsLiked() ActivityStreamsLikedProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsManuallyApprovesFollowers returns the - // "manuallyApprovesFollowers" property if it exists, and nil - // otherwise. - GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOutbox returns the "outbox" property if it exists, - // and nil otherwise. - GetActivityStreamsOutbox() ActivityStreamsOutboxProperty - // GetActivityStreamsPreferredUsername returns the "preferredUsername" - // property if it exists, and nil otherwise. - GetActivityStreamsPreferredUsername() ActivityStreamsPreferredUsernameProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsStreams returns the "streams" property if it exists, - // and nil otherwise. - GetActivityStreamsStreams() ActivityStreamsStreamsProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootDiscoverable returns the "discoverable" property if it exists, - // and nil otherwise. - GetTootDiscoverable() TootDiscoverableProperty - // GetTootFeatured returns the "featured" property if it exists, and nil - // otherwise. - GetTootFeatured() TootFeaturedProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Application - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // GetW3IDSecurityV1PublicKey returns the "publicKey" property if it - // exists, and nil otherwise. - GetW3IDSecurityV1PublicKey() W3IDSecurityV1PublicKeyProperty - // IsExtending returns true if the Application type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Application is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsApplication) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsFollowers sets the "followers" property. - SetActivityStreamsFollowers(i ActivityStreamsFollowersProperty) - // SetActivityStreamsFollowing sets the "following" property. - SetActivityStreamsFollowing(i ActivityStreamsFollowingProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInbox sets the "inbox" property. - SetActivityStreamsInbox(i ActivityStreamsInboxProperty) - // SetActivityStreamsLiked sets the "liked" property. - SetActivityStreamsLiked(i ActivityStreamsLikedProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsManuallyApprovesFollowers sets the - // "manuallyApprovesFollowers" property. - SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOutbox sets the "outbox" property. - SetActivityStreamsOutbox(i ActivityStreamsOutboxProperty) - // SetActivityStreamsPreferredUsername sets the "preferredUsername" - // property. - SetActivityStreamsPreferredUsername(i ActivityStreamsPreferredUsernameProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsStreams sets the "streams" property. - SetActivityStreamsStreams(i ActivityStreamsStreamsProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootDiscoverable sets the "discoverable" property. - SetTootDiscoverable(i TootDiscoverableProperty) - // SetTootFeatured sets the "featured" property. - SetTootFeatured(i TootFeaturedProperty) - // SetW3IDSecurityV1PublicKey sets the "publicKey" property. - SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_arrive_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_arrive_interface.go deleted file mode 100644 index 5eaeacb68..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_arrive_interface.go +++ /dev/null @@ -1,250 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// An IntransitiveActivity that indicates that the actor has arrived at the -// location. The origin can be used to identify the context from which the -// actor originated. The target typically has no defined meaning. -// -// Example 14 (https://www.w3.org/TR/activitystreams-vocabulary/#ex11-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "location": { -// "name": "Work", -// "type": "Place" -// }, -// "origin": { -// "name": "Home", -// "type": "Place" -// }, -// "summary": "Sally arrived at work", -// "type": "Arrive" -// } -type ActivityStreamsArrive interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Arrive - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Arrive type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Arrive is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsArrive) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_article_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_article_interface.go deleted file mode 100644 index 984114d8d..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_article_interface.go +++ /dev/null @@ -1,220 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents any kind of multi-paragraph written work. -// -// Example 48 (https://www.w3.org/TR/activitystreams-vocabulary/#ex43-jsonld): -// { -// "attributedTo": "http://sally.example.org", -// "content": "\u003cdiv\u003e... you will never believe -// ...\u003c/div\u003e", -// "name": "What a Crazy Day I Had", -// "type": "Article" -// } -type ActivityStreamsArticle interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Article - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Article type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Article is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsArticle) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_audio_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_audio_interface.go deleted file mode 100644 index c840de2ba..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_audio_interface.go +++ /dev/null @@ -1,226 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents an audio document of any kind. -// -// Example 50 (https://www.w3.org/TR/activitystreams-vocabulary/#ex49-jsonld): -// { -// "name": "Interview With A Famous Technologist", -// "type": "Audio", -// "url": { -// "mediaType": "audio/mp3", -// "type": "owl:Class", -// "url": "http://example.org/podcast.mp3" -// } -// } -type ActivityStreamsAudio interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootBlurhash returns the "blurhash" property if it exists, and nil - // otherwise. - GetTootBlurhash() TootBlurhashProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Audio type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Audio type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Audio is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsAudio) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootBlurhash sets the "blurhash" property. - SetTootBlurhash(i TootBlurhashProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_block_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_block_interface.go deleted file mode 100644 index a813f1e3c..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_block_interface.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is blocking the object. Blocking is a stronger form of -// Ignore. The typical use is to support social systems that allow one user to -// block activities or content of other users. The target and origin typically -// have no defined meaning. -// -// Example 37 (https://www.w3.org/TR/activitystreams-vocabulary/#ex173-jsonld): -// { -// "actor": "http://sally.example.org", -// "object": "http://joe.example.org", -// "summary": "Sally blocked Joe", -// "type": "Block" -// } -type ActivityStreamsBlock interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Block type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Block type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Block is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsBlock) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_collection_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_collection_interface.go deleted file mode 100644 index 43526fc1e..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_collection_interface.go +++ /dev/null @@ -1,255 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A Collection is a subtype of Object that represents ordered or unordered sets -// of Object or Link instances. Refer to the Activity Streams 2.0 Core -// specification for a complete description of the Collection type. -// -// Example 5 (https://www.w3.org/TR/activitystreams-vocabulary/#ex5-jsonld): -// { -// "items": [ -// { -// "name": "A Simple Note", -// "type": "Note" -// }, -// { -// "name": "Another Simple Note", -// "type": "Note" -// } -// ], -// "summary": "Sally's notes", -// "totalItems": 2, -// "type": "Collection" -// } -type ActivityStreamsCollection interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsCurrent returns the "current" property if it exists, - // and nil otherwise. - GetActivityStreamsCurrent() ActivityStreamsCurrentProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsFirst returns the "first" property if it exists, and - // nil otherwise. - GetActivityStreamsFirst() ActivityStreamsFirstProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsItems returns the "items" property if it exists, and - // nil otherwise. - GetActivityStreamsItems() ActivityStreamsItemsProperty - // GetActivityStreamsLast returns the "last" property if it exists, and - // nil otherwise. - GetActivityStreamsLast() ActivityStreamsLastProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsTotalItems returns the "totalItems" property if it - // exists, and nil otherwise. - GetActivityStreamsTotalItems() ActivityStreamsTotalItemsProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Collection - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Collection type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Collection is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsCollection) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsCurrent sets the "current" property. - SetActivityStreamsCurrent(i ActivityStreamsCurrentProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsFirst sets the "first" property. - SetActivityStreamsFirst(i ActivityStreamsFirstProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsItems sets the "items" property. - SetActivityStreamsItems(i ActivityStreamsItemsProperty) - // SetActivityStreamsLast sets the "last" property. - SetActivityStreamsLast(i ActivityStreamsLastProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsTotalItems sets the "totalItems" property. - SetActivityStreamsTotalItems(i ActivityStreamsTotalItemsProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_collectionpage_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_collectionpage_interface.go deleted file mode 100644 index ab0ed38f0..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_collectionpage_interface.go +++ /dev/null @@ -1,271 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Used to represent distinct subsets of items from a Collection. Refer to the -// Activity Streams 2.0 Core for a complete description of the CollectionPage -// object. -// -// Example 7 (https://www.w3.org/TR/activitystreams-vocabulary/#ex6b-jsonld): -// { -// "id": "http://example.org/foo?page=1", -// "items": [ -// { -// "name": "A Simple Note", -// "type": "Note" -// }, -// { -// "name": "Another Simple Note", -// "type": "Note" -// } -// ], -// "partOf": "http://example.org/foo", -// "summary": "Page 1 of Sally's notes", -// "type": "CollectionPage" -// } -type ActivityStreamsCollectionPage interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsCurrent returns the "current" property if it exists, - // and nil otherwise. - GetActivityStreamsCurrent() ActivityStreamsCurrentProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsFirst returns the "first" property if it exists, and - // nil otherwise. - GetActivityStreamsFirst() ActivityStreamsFirstProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsItems returns the "items" property if it exists, and - // nil otherwise. - GetActivityStreamsItems() ActivityStreamsItemsProperty - // GetActivityStreamsLast returns the "last" property if it exists, and - // nil otherwise. - GetActivityStreamsLast() ActivityStreamsLastProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsNext returns the "next" property if it exists, and - // nil otherwise. - GetActivityStreamsNext() ActivityStreamsNextProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPartOf returns the "partOf" property if it exists, - // and nil otherwise. - GetActivityStreamsPartOf() ActivityStreamsPartOfProperty - // GetActivityStreamsPrev returns the "prev" property if it exists, and - // nil otherwise. - GetActivityStreamsPrev() ActivityStreamsPrevProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsTotalItems returns the "totalItems" property if it - // exists, and nil otherwise. - GetActivityStreamsTotalItems() ActivityStreamsTotalItemsProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // CollectionPage type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the CollectionPage type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this CollectionPage is lesser, with an arbitrary - // but stable determination. - LessThan(o ActivityStreamsCollectionPage) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsCurrent sets the "current" property. - SetActivityStreamsCurrent(i ActivityStreamsCurrentProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsFirst sets the "first" property. - SetActivityStreamsFirst(i ActivityStreamsFirstProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsItems sets the "items" property. - SetActivityStreamsItems(i ActivityStreamsItemsProperty) - // SetActivityStreamsLast sets the "last" property. - SetActivityStreamsLast(i ActivityStreamsLastProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsNext sets the "next" property. - SetActivityStreamsNext(i ActivityStreamsNextProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPartOf sets the "partOf" property. - SetActivityStreamsPartOf(i ActivityStreamsPartOfProperty) - // SetActivityStreamsPrev sets the "prev" property. - SetActivityStreamsPrev(i ActivityStreamsPrevProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsTotalItems sets the "totalItems" property. - SetActivityStreamsTotalItems(i ActivityStreamsTotalItemsProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_create_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_create_interface.go deleted file mode 100644 index 2d2e67d60..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_create_interface.go +++ /dev/null @@ -1,250 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has created the object. -// -// Example 15 (https://www.w3.org/TR/activitystreams-vocabulary/#ex12-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "content": "This is a simple note", -// "name": "A Simple Note", -// "type": "Note" -// }, -// "summary": "Sally created a note", -// "type": "Create" -// } -type ActivityStreamsCreate interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Create - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Create type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Create is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsCreate) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_delete_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_delete_interface.go deleted file mode 100644 index d987998b5..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_delete_interface.go +++ /dev/null @@ -1,251 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has deleted the object. If specified, the origin -// indicates the context from which the object was deleted. -// -// Example 16 (https://www.w3.org/TR/activitystreams-vocabulary/#ex13-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/notes/1", -// "origin": { -// "name": "Sally's Notes", -// "type": "Collection" -// }, -// "summary": "Sally deleted a note", -// "type": "Delete" -// } -type ActivityStreamsDelete interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Delete - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Delete type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Delete is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsDelete) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_dislike_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_dislike_interface.go deleted file mode 100644 index b7fb54ed8..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_dislike_interface.go +++ /dev/null @@ -1,244 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor dislikes the object. -// -// Example 39 (https://www.w3.org/TR/activitystreams-vocabulary/#ex175-jsonld): -// { -// "actor": "http://sally.example.org", -// "object": "http://example.org/posts/1", -// "summary": "Sally disliked a post", -// "type": "Dislike" -// } -type ActivityStreamsDislike interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Dislike - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Dislike type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Dislike is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsDislike) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_document_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_document_interface.go deleted file mode 100644 index 46312ca80..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_document_interface.go +++ /dev/null @@ -1,223 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a document of any kind. -// -// Example 49 (https://www.w3.org/TR/activitystreams-vocabulary/#ex48-jsonld): -// { -// "name": "4Q Sales Forecast", -// "type": "Document", -// "url": "http://example.org/4q-sales-forecast.pdf" -// } -type ActivityStreamsDocument interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootBlurhash returns the "blurhash" property if it exists, and nil - // otherwise. - GetTootBlurhash() TootBlurhashProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Document - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Document type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Document is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsDocument) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootBlurhash sets the "blurhash" property. - SetTootBlurhash(i TootBlurhashProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_event_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_event_interface.go deleted file mode 100644 index bc25aeee6..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_event_interface.go +++ /dev/null @@ -1,218 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents any kind of event. -// -// Example 55 (https://www.w3.org/TR/activitystreams-vocabulary/#ex56-jsonld): -// { -// "endTime": "2015-01-01T06:00:00-08:00", -// "name": "Going-Away Party for Jim", -// "startTime": "2014-12-31T23:00:00-08:00", -// "type": "Event" -// } -type ActivityStreamsEvent interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Event type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Event type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Event is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsEvent) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_flag_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_flag_interface.go deleted file mode 100644 index 0aa5d1a2c..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_flag_interface.go +++ /dev/null @@ -1,248 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is "flagging" the object. Flagging is defined in the -// sense common to many social platforms as reporting content as being -// inappropriate for any number of reasons. -// -// Example 38 (https://www.w3.org/TR/activitystreams-vocabulary/#ex174-jsonld): -// { -// "actor": "http://sally.example.org", -// "object": { -// "content": "An inappropriate note", -// "type": "Note" -// }, -// "summary": "Sally flagged an inappropriate note", -// "type": "Flag" -// } -type ActivityStreamsFlag interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Flag type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Flag type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Flag is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsFlag) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_follow_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_follow_interface.go deleted file mode 100644 index fe7c5fd35..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_follow_interface.go +++ /dev/null @@ -1,252 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is "following" the object. Following is defined in the -// sense typically used within Social systems in which the actor is interested -// in any activity performed by or on the object. The target and origin -// typically have no defined meaning. -// -// Example 17 (https://www.w3.org/TR/activitystreams-vocabulary/#ex15-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "John", -// "type": "Person" -// }, -// "summary": "Sally followed John", -// "type": "Follow" -// } -type ActivityStreamsFollow interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Follow - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Follow type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Follow is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsFollow) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_group_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_group_interface.go deleted file mode 100644 index 570d62072..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_group_interface.go +++ /dev/null @@ -1,274 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a formal or informal collective of Actors. -// -// Example 43 (https://www.w3.org/TR/activitystreams-vocabulary/#ex37-jsonld): -// { -// "name": "Big Beards of Austin", -// "type": "Group" -// } -type ActivityStreamsGroup interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsFollowers returns the "followers" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowers() ActivityStreamsFollowersProperty - // GetActivityStreamsFollowing returns the "following" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowing() ActivityStreamsFollowingProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInbox returns the "inbox" property if it exists, and - // nil otherwise. - GetActivityStreamsInbox() ActivityStreamsInboxProperty - // GetActivityStreamsLiked returns the "liked" property if it exists, and - // nil otherwise. - GetActivityStreamsLiked() ActivityStreamsLikedProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsManuallyApprovesFollowers returns the - // "manuallyApprovesFollowers" property if it exists, and nil - // otherwise. - GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOutbox returns the "outbox" property if it exists, - // and nil otherwise. - GetActivityStreamsOutbox() ActivityStreamsOutboxProperty - // GetActivityStreamsPreferredUsername returns the "preferredUsername" - // property if it exists, and nil otherwise. - GetActivityStreamsPreferredUsername() ActivityStreamsPreferredUsernameProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsStreams returns the "streams" property if it exists, - // and nil otherwise. - GetActivityStreamsStreams() ActivityStreamsStreamsProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootDiscoverable returns the "discoverable" property if it exists, - // and nil otherwise. - GetTootDiscoverable() TootDiscoverableProperty - // GetTootFeatured returns the "featured" property if it exists, and nil - // otherwise. - GetTootFeatured() TootFeaturedProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Group type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // GetW3IDSecurityV1PublicKey returns the "publicKey" property if it - // exists, and nil otherwise. - GetW3IDSecurityV1PublicKey() W3IDSecurityV1PublicKeyProperty - // IsExtending returns true if the Group type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Group is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsGroup) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsFollowers sets the "followers" property. - SetActivityStreamsFollowers(i ActivityStreamsFollowersProperty) - // SetActivityStreamsFollowing sets the "following" property. - SetActivityStreamsFollowing(i ActivityStreamsFollowingProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInbox sets the "inbox" property. - SetActivityStreamsInbox(i ActivityStreamsInboxProperty) - // SetActivityStreamsLiked sets the "liked" property. - SetActivityStreamsLiked(i ActivityStreamsLikedProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsManuallyApprovesFollowers sets the - // "manuallyApprovesFollowers" property. - SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOutbox sets the "outbox" property. - SetActivityStreamsOutbox(i ActivityStreamsOutboxProperty) - // SetActivityStreamsPreferredUsername sets the "preferredUsername" - // property. - SetActivityStreamsPreferredUsername(i ActivityStreamsPreferredUsernameProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsStreams sets the "streams" property. - SetActivityStreamsStreams(i ActivityStreamsStreamsProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootDiscoverable sets the "discoverable" property. - SetTootDiscoverable(i TootDiscoverableProperty) - // SetTootFeatured sets the "featured" property. - SetTootFeatured(i TootFeaturedProperty) - // SetW3IDSecurityV1PublicKey sets the "publicKey" property. - SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_ignore_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_ignore_interface.go deleted file mode 100644 index 33d93ef33..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_ignore_interface.go +++ /dev/null @@ -1,247 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is ignoring the object. The target and origin -// typically have no defined meaning. -// -// Example 18 (https://www.w3.org/TR/activitystreams-vocabulary/#ex16-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/notes/1", -// "summary": "Sally ignored a note", -// "type": "Ignore" -// } -type ActivityStreamsIgnore interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Ignore - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Ignore type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Ignore is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsIgnore) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_image_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_image_interface.go deleted file mode 100644 index b9151b8e6..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_image_interface.go +++ /dev/null @@ -1,243 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// An image document of any kind -// -// Example 51 (https://www.w3.org/TR/activitystreams-vocabulary/#ex50-jsonld): -// { -// "name": "Cat Jumping on Wagon", -// "type": "Image", -// "url": [ -// { -// "mediaType": "image/jpeg", -// "type": "Link", -// "url": "http://example.org/image.jpeg" -// }, -// { -// "mediaType": "image/png", -// "type": "Link", -// "url": "http://example.org/image.png" -// } -// ] -// } -type ActivityStreamsImage interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsHeight returns the "height" property if it exists, - // and nil otherwise. - GetActivityStreamsHeight() ActivityStreamsHeightProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetActivityStreamsWidth returns the "width" property if it exists, and - // nil otherwise. - GetActivityStreamsWidth() ActivityStreamsWidthProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootBlurhash returns the "blurhash" property if it exists, and nil - // otherwise. - GetTootBlurhash() TootBlurhashProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Image type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Image type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Image is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsImage) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsHeight sets the "height" property. - SetActivityStreamsHeight(i ActivityStreamsHeightProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetActivityStreamsWidth sets the "width" property. - SetActivityStreamsWidth(i ActivityStreamsWidthProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootBlurhash sets the "blurhash" property. - SetTootBlurhash(i TootBlurhashProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go deleted file mode 100644 index 8f42bb6bd..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_intransitiveactivity_interface.go +++ /dev/null @@ -1,247 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Instances of IntransitiveActivity are a subtype of Activity representing -// intransitive actions. The object property is therefore inappropriate for -// these activities. -// -// Example 4 (https://www.w3.org/TR/activitystreams-vocabulary/#ex182-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "summary": "Sally went to work", -// "target": { -// "name": "Work", -// "type": "Place" -// }, -// "type": "Travel" -// } -type ActivityStreamsIntransitiveActivity interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // IntransitiveActivity type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the IntransitiveActivity type extends from - // the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this IntransitiveActivity is lesser, with an - // arbitrary but stable determination. - LessThan(o ActivityStreamsIntransitiveActivity) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_invite_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_invite_interface.go deleted file mode 100644 index fd20885ea..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_invite_interface.go +++ /dev/null @@ -1,260 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A specialization of Offer in which the actor is extending an invitation for the -// object to the target. -// -// Example 24 (https://www.w3.org/TR/activitystreams-vocabulary/#ex24-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "A Party", -// "type": "Event" -// }, -// "summary": "Sally invited John and Lisa to a party", -// "target": [ -// { -// "name": "John", -// "type": "Person" -// }, -// { -// "name": "Lisa", -// "type": "Person" -// } -// ], -// "type": "Invite" -// } -type ActivityStreamsInvite interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Invite - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Invite type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Invite is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsInvite) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_join_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_join_interface.go deleted file mode 100644 index d7135b935..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_join_interface.go +++ /dev/null @@ -1,250 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has joined the object. The target and origin typically -// have no defined meaning. -// -// Example 19 (https://www.w3.org/TR/activitystreams-vocabulary/#ex17-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "A Simple Group", -// "type": "Group" -// }, -// "summary": "Sally joined a group", -// "type": "Join" -// } -type ActivityStreamsJoin interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Join type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Join type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Join is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsJoin) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_leave_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_leave_interface.go deleted file mode 100644 index 2226a3fdb..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_leave_interface.go +++ /dev/null @@ -1,264 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has left the object. The target and origin typically -// have no meaning. -// -// Example 20 (https://www.w3.org/TR/activitystreams-vocabulary/#ex18-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "Work", -// "type": "Place" -// }, -// "summary": "Sally left work", -// "type": "Leave" -// } -// -// Example 21 (https://www.w3.org/TR/activitystreams-vocabulary/#ex19-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "A Simple Group", -// "type": "Group" -// }, -// "summary": "Sally left a group", -// "type": "Leave" -// } -type ActivityStreamsLeave interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Leave type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Leave type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Leave is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsLeave) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_like_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_like_interface.go deleted file mode 100644 index 87887a67b..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_like_interface.go +++ /dev/null @@ -1,247 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor likes, recommends or endorses the object. The target -// and origin typically have no defined meaning. -// -// Example 22 (https://www.w3.org/TR/activitystreams-vocabulary/#ex20-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/notes/1", -// "summary": "Sally liked a note", -// "type": "Like" -// } -type ActivityStreamsLike interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Like type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Like type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Like is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsLike) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_link_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_link_interface.go deleted file mode 100644 index 9d4c7364b..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_link_interface.go +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A Link is an indirect, qualified reference to a resource identified by a URL. -// The fundamental model for links is established by [RFC5988]. Many of the -// properties defined by the Activity Vocabulary allow values that are either -// instances of Object or Link. When a Link is used, it establishes a -// qualified relation connecting the subject (the containing object) to the -// resource identified by the href. Properties of the Link are properties of -// the reference as opposed to properties of the resource. -// -// Example 2 (https://www.w3.org/TR/activitystreams-vocabulary/#ex2-jsonld): -// { -// "hreflang": "en", -// "mediaType": "text/html", -// "name": "An example link", -// "type": "Link", -// "url": "http://example.org/abc" -// } -type ActivityStreamsLink interface { - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsHeight returns the "height" property if it exists, - // and nil otherwise. - GetActivityStreamsHeight() ActivityStreamsHeightProperty - // GetActivityStreamsHref returns the "href" property if it exists, and - // nil otherwise. - GetActivityStreamsHref() ActivityStreamsHrefProperty - // GetActivityStreamsHreflang returns the "hreflang" property if it - // exists, and nil otherwise. - GetActivityStreamsHreflang() ActivityStreamsHreflangProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsRel returns the "rel" property if it exists, and nil - // otherwise. - GetActivityStreamsRel() ActivityStreamsRelProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsWidth returns the "width" property if it exists, and - // nil otherwise. - GetActivityStreamsWidth() ActivityStreamsWidthProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Link type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Link type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Link is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsLink) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsHeight sets the "height" property. - SetActivityStreamsHeight(i ActivityStreamsHeightProperty) - // SetActivityStreamsHref sets the "href" property. - SetActivityStreamsHref(i ActivityStreamsHrefProperty) - // SetActivityStreamsHreflang sets the "hreflang" property. - SetActivityStreamsHreflang(i ActivityStreamsHreflangProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsRel sets the "rel" property. - SetActivityStreamsRel(i ActivityStreamsRelProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsWidth sets the "width" property. - SetActivityStreamsWidth(i ActivityStreamsWidthProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_listen_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_listen_interface.go deleted file mode 100644 index 1bdd0d9a2..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_listen_interface.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has listened to the object. -// -// Example 32 (https://www.w3.org/TR/activitystreams-vocabulary/#ex163-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/music.mp3", -// "summary": "Sally listened to a piece of music", -// "type": "Listen" -// } -type ActivityStreamsListen interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Listen - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Listen type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Listen is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsListen) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_mention_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_mention_interface.go deleted file mode 100644 index b0c03ff51..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_mention_interface.go +++ /dev/null @@ -1,99 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A specialized Link that represents an @mention. -// -// Example 58 (https://www.w3.org/TR/activitystreams-vocabulary/#ex181-jsonld): -// { -// "name": "Joe", -// "summary": "Mention of Joe by Carrie in her note", -// "type": "Mention", -// "url": "http://example.org/joe" -// } -type ActivityStreamsMention interface { - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsHeight returns the "height" property if it exists, - // and nil otherwise. - GetActivityStreamsHeight() ActivityStreamsHeightProperty - // GetActivityStreamsHref returns the "href" property if it exists, and - // nil otherwise. - GetActivityStreamsHref() ActivityStreamsHrefProperty - // GetActivityStreamsHreflang returns the "hreflang" property if it - // exists, and nil otherwise. - GetActivityStreamsHreflang() ActivityStreamsHreflangProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsRel returns the "rel" property if it exists, and nil - // otherwise. - GetActivityStreamsRel() ActivityStreamsRelProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsWidth returns the "width" property if it exists, and - // nil otherwise. - GetActivityStreamsWidth() ActivityStreamsWidthProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Mention - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Mention type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Mention is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsMention) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsHeight sets the "height" property. - SetActivityStreamsHeight(i ActivityStreamsHeightProperty) - // SetActivityStreamsHref sets the "href" property. - SetActivityStreamsHref(i ActivityStreamsHrefProperty) - // SetActivityStreamsHreflang sets the "hreflang" property. - SetActivityStreamsHreflang(i ActivityStreamsHreflangProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsRel sets the "rel" property. - SetActivityStreamsRel(i ActivityStreamsRelProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsWidth sets the "width" property. - SetActivityStreamsWidth(i ActivityStreamsWidthProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_move_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_move_interface.go deleted file mode 100644 index 43359f6fe..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_move_interface.go +++ /dev/null @@ -1,255 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has moved object from origin to target. If the origin -// or target are not specified, either can be determined by context. -// -// Example 34 (https://www.w3.org/TR/activitystreams-vocabulary/#ex168-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/posts/1", -// "origin": { -// "name": "List A", -// "type": "Collection" -// }, -// "summary": "Sally moved a post from List A to List B", -// "target": { -// "name": "List B", -// "type": "Collection" -// }, -// "type": "Move" -// } -type ActivityStreamsMove interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Move type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Move type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Move is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsMove) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_note_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_note_interface.go deleted file mode 100644 index 0cde2118f..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_note_interface.go +++ /dev/null @@ -1,218 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a short written work typically less than a single paragraph in -// length. -// -// Example 53 (https://www.w3.org/TR/activitystreams-vocabulary/#ex52-jsonld): -// { -// "content": "Looks like it is going to rain today. Bring an umbrella!", -// "name": "A Word of Warning", -// "type": "Note" -// } -type ActivityStreamsNote interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Note type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Note type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Note is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsNote) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_object_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_object_interface.go deleted file mode 100644 index b6f3fef59..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_object_interface.go +++ /dev/null @@ -1,220 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Describes an object of any kind. The Object type serves as the base type for -// most of the other kinds of objects defined in the Activity Vocabulary, -// including other Core types such as Activity, IntransitiveActivity, -// Collection and OrderedCollection. -// -// Example 1 (https://www.w3.org/TR/activitystreams-vocabulary/#ex1-jsonld): -// { -// "id": "http://www.test.example/object/1", -// "name": "A Simple, non-specific object", -// "type": "Object" -// } -type ActivityStreamsObject interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Object - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Object type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Object is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsObject) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_offer_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_offer_interface.go deleted file mode 100644 index 6f4cc98eb..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_offer_interface.go +++ /dev/null @@ -1,254 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is offering the object. If specified, the target -// indicates the entity to which the object is being offered. -// -// Example 23 (https://www.w3.org/TR/activitystreams-vocabulary/#ex21-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "50% Off!", -// "type": "http://www.types.example/ProductOffer" -// }, -// "summary": "Sally offered 50% off to Lewis", -// "target": { -// "name": "Lewis", -// "type": "Person" -// }, -// "type": "Offer" -// } -type ActivityStreamsOffer interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Offer type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Offer type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Offer is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsOffer) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go deleted file mode 100644 index 9bb278eca..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_orderedcollection_interface.go +++ /dev/null @@ -1,259 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A subtype of Collection in which members of the logical collection are assumed -// to always be strictly ordered. -// -// Example 6 (https://www.w3.org/TR/activitystreams-vocabulary/#ex6-jsonld): -// { -// "orderedItems": [ -// { -// "name": "A Simple Note", -// "type": "Note" -// }, -// { -// "name": "Another Simple Note", -// "type": "Note" -// } -// ], -// "summary": "Sally's notes", -// "totalItems": 2, -// "type": "OrderedCollection" -// } -type ActivityStreamsOrderedCollection interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsCurrent returns the "current" property if it exists, - // and nil otherwise. - GetActivityStreamsCurrent() ActivityStreamsCurrentProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsFirst returns the "first" property if it exists, and - // nil otherwise. - GetActivityStreamsFirst() ActivityStreamsFirstProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLast returns the "last" property if it exists, and - // nil otherwise. - GetActivityStreamsLast() ActivityStreamsLastProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrderedItems returns the "orderedItems" property if - // it exists, and nil otherwise. - GetActivityStreamsOrderedItems() ActivityStreamsOrderedItemsProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsTotalItems returns the "totalItems" property if it - // exists, and nil otherwise. - GetActivityStreamsTotalItems() ActivityStreamsTotalItemsProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedEarlyItems returns the "earlyItems" property if it exists, - // and nil otherwise. - GetForgeFedEarlyItems() ForgeFedEarlyItemsProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // OrderedCollection type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the OrderedCollection type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this OrderedCollection is lesser, with an - // arbitrary but stable determination. - LessThan(o ActivityStreamsOrderedCollection) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsCurrent sets the "current" property. - SetActivityStreamsCurrent(i ActivityStreamsCurrentProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsFirst sets the "first" property. - SetActivityStreamsFirst(i ActivityStreamsFirstProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLast sets the "last" property. - SetActivityStreamsLast(i ActivityStreamsLastProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrderedItems sets the "orderedItems" property. - SetActivityStreamsOrderedItems(i ActivityStreamsOrderedItemsProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsTotalItems sets the "totalItems" property. - SetActivityStreamsTotalItems(i ActivityStreamsTotalItemsProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedEarlyItems sets the "earlyItems" property. - SetForgeFedEarlyItems(i ForgeFedEarlyItemsProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go deleted file mode 100644 index 58f0cb361..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_orderedcollectionpage_interface.go +++ /dev/null @@ -1,281 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// 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. -// -// Example 8 (https://www.w3.org/TR/activitystreams-vocabulary/#ex6c-jsonld): -// { -// "id": "http://example.org/foo?page=1", -// "orderedItems": [ -// { -// "name": "A Simple Note", -// "type": "Note" -// }, -// { -// "name": "Another Simple Note", -// "type": "Note" -// } -// ], -// "partOf": "http://example.org/foo", -// "summary": "Page 1 of Sally's notes", -// "type": "OrderedCollectionPage" -// } -type ActivityStreamsOrderedCollectionPage interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsCurrent returns the "current" property if it exists, - // and nil otherwise. - GetActivityStreamsCurrent() ActivityStreamsCurrentProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsFirst returns the "first" property if it exists, and - // nil otherwise. - GetActivityStreamsFirst() ActivityStreamsFirstProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLast returns the "last" property if it exists, and - // nil otherwise. - GetActivityStreamsLast() ActivityStreamsLastProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsNext returns the "next" property if it exists, and - // nil otherwise. - GetActivityStreamsNext() ActivityStreamsNextProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrderedItems returns the "orderedItems" property if - // it exists, and nil otherwise. - GetActivityStreamsOrderedItems() ActivityStreamsOrderedItemsProperty - // GetActivityStreamsPartOf returns the "partOf" property if it exists, - // and nil otherwise. - GetActivityStreamsPartOf() ActivityStreamsPartOfProperty - // GetActivityStreamsPrev returns the "prev" property if it exists, and - // nil otherwise. - GetActivityStreamsPrev() ActivityStreamsPrevProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartIndex returns the "startIndex" property if it - // exists, and nil otherwise. - GetActivityStreamsStartIndex() ActivityStreamsStartIndexProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsTotalItems returns the "totalItems" property if it - // exists, and nil otherwise. - GetActivityStreamsTotalItems() ActivityStreamsTotalItemsProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedEarlyItems returns the "earlyItems" property if it exists, - // and nil otherwise. - GetForgeFedEarlyItems() ForgeFedEarlyItemsProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // OrderedCollectionPage type. Note that this should not be used by - // app developers. It is only used to help determine which - // implementation is LessThan the other. Developers who are creating a - // different implementation of this type's interface can use this - // method in their LessThan implementation, but routine ActivityPub - // applications should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the OrderedCollectionPage type extends from - // the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this OrderedCollectionPage is lesser, with an - // arbitrary but stable determination. - LessThan(o ActivityStreamsOrderedCollectionPage) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsCurrent sets the "current" property. - SetActivityStreamsCurrent(i ActivityStreamsCurrentProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsFirst sets the "first" property. - SetActivityStreamsFirst(i ActivityStreamsFirstProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLast sets the "last" property. - SetActivityStreamsLast(i ActivityStreamsLastProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsNext sets the "next" property. - SetActivityStreamsNext(i ActivityStreamsNextProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrderedItems sets the "orderedItems" property. - SetActivityStreamsOrderedItems(i ActivityStreamsOrderedItemsProperty) - // SetActivityStreamsPartOf sets the "partOf" property. - SetActivityStreamsPartOf(i ActivityStreamsPartOfProperty) - // SetActivityStreamsPrev sets the "prev" property. - SetActivityStreamsPrev(i ActivityStreamsPrevProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartIndex sets the "startIndex" property. - SetActivityStreamsStartIndex(i ActivityStreamsStartIndexProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsTotalItems sets the "totalItems" property. - SetActivityStreamsTotalItems(i ActivityStreamsTotalItemsProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedEarlyItems sets the "earlyItems" property. - SetForgeFedEarlyItems(i ForgeFedEarlyItemsProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_organization_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_organization_interface.go deleted file mode 100644 index 5bf86fcf5..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_organization_interface.go +++ /dev/null @@ -1,275 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents an organization. -// -// Example 44 (https://www.w3.org/TR/activitystreams-vocabulary/#ex186-jsonld): -// { -// "name": "Example Co.", -// "type": "Organization" -// } -type ActivityStreamsOrganization interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsFollowers returns the "followers" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowers() ActivityStreamsFollowersProperty - // GetActivityStreamsFollowing returns the "following" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowing() ActivityStreamsFollowingProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInbox returns the "inbox" property if it exists, and - // nil otherwise. - GetActivityStreamsInbox() ActivityStreamsInboxProperty - // GetActivityStreamsLiked returns the "liked" property if it exists, and - // nil otherwise. - GetActivityStreamsLiked() ActivityStreamsLikedProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsManuallyApprovesFollowers returns the - // "manuallyApprovesFollowers" property if it exists, and nil - // otherwise. - GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOutbox returns the "outbox" property if it exists, - // and nil otherwise. - GetActivityStreamsOutbox() ActivityStreamsOutboxProperty - // GetActivityStreamsPreferredUsername returns the "preferredUsername" - // property if it exists, and nil otherwise. - GetActivityStreamsPreferredUsername() ActivityStreamsPreferredUsernameProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsStreams returns the "streams" property if it exists, - // and nil otherwise. - GetActivityStreamsStreams() ActivityStreamsStreamsProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootDiscoverable returns the "discoverable" property if it exists, - // and nil otherwise. - GetTootDiscoverable() TootDiscoverableProperty - // GetTootFeatured returns the "featured" property if it exists, and nil - // otherwise. - GetTootFeatured() TootFeaturedProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // Organization type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // GetW3IDSecurityV1PublicKey returns the "publicKey" property if it - // exists, and nil otherwise. - GetW3IDSecurityV1PublicKey() W3IDSecurityV1PublicKeyProperty - // IsExtending returns true if the Organization type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Organization is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsOrganization) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsFollowers sets the "followers" property. - SetActivityStreamsFollowers(i ActivityStreamsFollowersProperty) - // SetActivityStreamsFollowing sets the "following" property. - SetActivityStreamsFollowing(i ActivityStreamsFollowingProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInbox sets the "inbox" property. - SetActivityStreamsInbox(i ActivityStreamsInboxProperty) - // SetActivityStreamsLiked sets the "liked" property. - SetActivityStreamsLiked(i ActivityStreamsLikedProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsManuallyApprovesFollowers sets the - // "manuallyApprovesFollowers" property. - SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOutbox sets the "outbox" property. - SetActivityStreamsOutbox(i ActivityStreamsOutboxProperty) - // SetActivityStreamsPreferredUsername sets the "preferredUsername" - // property. - SetActivityStreamsPreferredUsername(i ActivityStreamsPreferredUsernameProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsStreams sets the "streams" property. - SetActivityStreamsStreams(i ActivityStreamsStreamsProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootDiscoverable sets the "discoverable" property. - SetTootDiscoverable(i TootDiscoverableProperty) - // SetTootFeatured sets the "featured" property. - SetTootFeatured(i TootFeaturedProperty) - // SetW3IDSecurityV1PublicKey sets the "publicKey" property. - SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_page_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_page_interface.go deleted file mode 100644 index f449c0a87..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_page_interface.go +++ /dev/null @@ -1,222 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a Web Page. -// -// Example 54 (https://www.w3.org/TR/activitystreams-vocabulary/#ex53-jsonld): -// { -// "name": "Omaha Weather Report", -// "type": "Page", -// "url": "http://example.org/weather-in-omaha.html" -// } -type ActivityStreamsPage interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootBlurhash returns the "blurhash" property if it exists, and nil - // otherwise. - GetTootBlurhash() TootBlurhashProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Page type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Page type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Page is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsPage) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootBlurhash sets the "blurhash" property. - SetTootBlurhash(i TootBlurhashProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_person_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_person_interface.go deleted file mode 100644 index ca027e506..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_person_interface.go +++ /dev/null @@ -1,274 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents an individual person. -// -// Example 45 (https://www.w3.org/TR/activitystreams-vocabulary/#ex39-jsonld): -// { -// "name": "Sally Smith", -// "type": "Person" -// } -type ActivityStreamsPerson interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsFollowers returns the "followers" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowers() ActivityStreamsFollowersProperty - // GetActivityStreamsFollowing returns the "following" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowing() ActivityStreamsFollowingProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInbox returns the "inbox" property if it exists, and - // nil otherwise. - GetActivityStreamsInbox() ActivityStreamsInboxProperty - // GetActivityStreamsLiked returns the "liked" property if it exists, and - // nil otherwise. - GetActivityStreamsLiked() ActivityStreamsLikedProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsManuallyApprovesFollowers returns the - // "manuallyApprovesFollowers" property if it exists, and nil - // otherwise. - GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOutbox returns the "outbox" property if it exists, - // and nil otherwise. - GetActivityStreamsOutbox() ActivityStreamsOutboxProperty - // GetActivityStreamsPreferredUsername returns the "preferredUsername" - // property if it exists, and nil otherwise. - GetActivityStreamsPreferredUsername() ActivityStreamsPreferredUsernameProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsStreams returns the "streams" property if it exists, - // and nil otherwise. - GetActivityStreamsStreams() ActivityStreamsStreamsProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootDiscoverable returns the "discoverable" property if it exists, - // and nil otherwise. - GetTootDiscoverable() TootDiscoverableProperty - // GetTootFeatured returns the "featured" property if it exists, and nil - // otherwise. - GetTootFeatured() TootFeaturedProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Person - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // GetW3IDSecurityV1PublicKey returns the "publicKey" property if it - // exists, and nil otherwise. - GetW3IDSecurityV1PublicKey() W3IDSecurityV1PublicKeyProperty - // IsExtending returns true if the Person type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Person is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsPerson) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsFollowers sets the "followers" property. - SetActivityStreamsFollowers(i ActivityStreamsFollowersProperty) - // SetActivityStreamsFollowing sets the "following" property. - SetActivityStreamsFollowing(i ActivityStreamsFollowingProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInbox sets the "inbox" property. - SetActivityStreamsInbox(i ActivityStreamsInboxProperty) - // SetActivityStreamsLiked sets the "liked" property. - SetActivityStreamsLiked(i ActivityStreamsLikedProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsManuallyApprovesFollowers sets the - // "manuallyApprovesFollowers" property. - SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOutbox sets the "outbox" property. - SetActivityStreamsOutbox(i ActivityStreamsOutboxProperty) - // SetActivityStreamsPreferredUsername sets the "preferredUsername" - // property. - SetActivityStreamsPreferredUsername(i ActivityStreamsPreferredUsernameProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsStreams sets the "streams" property. - SetActivityStreamsStreams(i ActivityStreamsStreamsProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootDiscoverable sets the "discoverable" property. - SetTootDiscoverable(i TootDiscoverableProperty) - // SetTootFeatured sets the "featured" property. - SetTootFeatured(i TootFeaturedProperty) - // SetW3IDSecurityV1PublicKey sets the "publicKey" property. - SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_place_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_place_interface.go deleted file mode 100644 index ac38a66e8..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_place_interface.go +++ /dev/null @@ -1,252 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a logical or physical location. See 5.3 Representing Places for -// additional information. -// -// Example 56 (https://www.w3.org/TR/activitystreams-vocabulary/#ex57-jsonld): -// { -// "name": "Work", -// "type": "Place" -// } -// -// Example 57 (https://www.w3.org/TR/activitystreams-vocabulary/#ex58-jsonld): -// { -// "latitude": 36.75, -// "longitude": 119.7667, -// "name": "Fresno Area", -// "radius": 15, -// "type": "Place", -// "units": "miles" -// } -type ActivityStreamsPlace interface { - // GetActivityStreamsAccuracy returns the "accuracy" property if it - // exists, and nil otherwise. - GetActivityStreamsAccuracy() ActivityStreamsAccuracyProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLatitude returns the "latitude" property if it - // exists, and nil otherwise. - GetActivityStreamsLatitude() ActivityStreamsLatitudeProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsLongitude returns the "longitude" property if it - // exists, and nil otherwise. - GetActivityStreamsLongitude() ActivityStreamsLongitudeProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsRadius returns the "radius" property if it exists, - // and nil otherwise. - GetActivityStreamsRadius() ActivityStreamsRadiusProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUnits returns the "units" property if it exists, and - // nil otherwise. - GetActivityStreamsUnits() ActivityStreamsUnitsProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Place type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Place type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Place is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsPlace) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAccuracy sets the "accuracy" property. - SetActivityStreamsAccuracy(i ActivityStreamsAccuracyProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLatitude sets the "latitude" property. - SetActivityStreamsLatitude(i ActivityStreamsLatitudeProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsLongitude sets the "longitude" property. - SetActivityStreamsLongitude(i ActivityStreamsLongitudeProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsRadius sets the "radius" property. - SetActivityStreamsRadius(i ActivityStreamsRadiusProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUnits sets the "units" property. - SetActivityStreamsUnits(i ActivityStreamsUnitsProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_profile_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_profile_interface.go deleted file mode 100644 index 27e84dbff..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_profile_interface.go +++ /dev/null @@ -1,228 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A Profile is a content object that describes another Object, typically used to -// describe Actor Type objects. The describes property is used to reference -// the object being described by the profile. -// -// Example 59 (https://www.w3.org/TR/activitystreams-vocabulary/#ex184a-jsonld): -// { -// "describes": { -// "name": "Sally Smith", -// "type": "Person" -// }, -// "summary": "Sally's Profile", -// "type": "Profile" -// } -type ActivityStreamsProfile interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDescribes returns the "describes" property if it - // exists, and nil otherwise. - GetActivityStreamsDescribes() ActivityStreamsDescribesProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Profile - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Profile type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Profile is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsProfile) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDescribes sets the "describes" property. - SetActivityStreamsDescribes(i ActivityStreamsDescribesProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_question_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_question_interface.go deleted file mode 100644 index a551b2ae0..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_question_interface.go +++ /dev/null @@ -1,279 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a question being asked. Question objects are an extension of -// IntransitiveActivity. That is, the Question object is an Activity, but the -// direct object is the question itself and therefore it would not contain an -// object property. Either of the anyOf and oneOf properties MAY be used to -// express possible answers, but a Question object MUST NOT have both -// properties. -// -// Example 40 (https://www.w3.org/TR/activitystreams-vocabulary/#ex55a-jsonld): -// { -// "name": "What is the answer?", -// "oneOf": [ -// { -// "name": "Option A", -// "type": "Note" -// }, -// { -// "name": "Option B", -// "type": "Note" -// } -// ], -// "type": "Question" -// } -// -// Example 41 (https://www.w3.org/TR/activitystreams-vocabulary/#ex55b-jsonld): -// { -// "closed": "2016-05-10T00:00:00Z", -// "name": "What is the answer?", -// "type": "Question" -// } -type ActivityStreamsQuestion interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAnyOf returns the "anyOf" property if it exists, and - // nil otherwise. - GetActivityStreamsAnyOf() ActivityStreamsAnyOfProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsClosed returns the "closed" property if it exists, - // and nil otherwise. - GetActivityStreamsClosed() ActivityStreamsClosedProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsOneOf returns the "oneOf" property if it exists, and - // nil otherwise. - GetActivityStreamsOneOf() ActivityStreamsOneOfProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootVotersCount returns the "votersCount" property if it exists, and - // nil otherwise. - GetTootVotersCount() TootVotersCountProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Question - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Question type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Question is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsQuestion) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAnyOf sets the "anyOf" property. - SetActivityStreamsAnyOf(i ActivityStreamsAnyOfProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsClosed sets the "closed" property. - SetActivityStreamsClosed(i ActivityStreamsClosedProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsOneOf sets the "oneOf" property. - SetActivityStreamsOneOf(i ActivityStreamsOneOfProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootVotersCount sets the "votersCount" property. - SetTootVotersCount(i TootVotersCountProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_read_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_read_interface.go deleted file mode 100644 index 2a6806b60..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_read_interface.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has read the object. -// -// Example 33 (https://www.w3.org/TR/activitystreams-vocabulary/#ex164-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/posts/1", -// "summary": "Sally read a blog post", -// "type": "Read" -// } -type ActivityStreamsRead interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Read type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Read type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Read is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsRead) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_reject_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_reject_interface.go deleted file mode 100644 index aa15967cf..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_reject_interface.go +++ /dev/null @@ -1,254 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is rejecting the object. The target and origin -// typically have no defined meaning. -// -// Example 25 (https://www.w3.org/TR/activitystreams-vocabulary/#ex26-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "actor": "http://john.example.org", -// "object": { -// "name": "Going-Away Party for Jim", -// "type": "Event" -// }, -// "type": "Invite" -// }, -// "summary": "Sally rejected an invitation to a party", -// "type": "Reject" -// } -type ActivityStreamsReject interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Reject - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Reject type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Reject is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsReject) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_relationship_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_relationship_interface.go deleted file mode 100644 index b0c161f1f..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_relationship_interface.go +++ /dev/null @@ -1,238 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Describes a relationship between two individuals. The subject and object -// properties are used to identify the connected individuals. See 5.2 -// Representing Relationships Between Entities for additional information. -// -// Example 47 (https://www.w3.org/TR/activitystreams-vocabulary/#ex22-jsonld): -// { -// "object": { -// "name": "John", -// "type": "Person" -// }, -// "relationship": "http://purl.org/vocab/relationship/acquaintanceOf", -// "subject": { -// "name": "Sally", -// "type": "Person" -// }, -// "summary": "Sally is an acquaintance of John", -// "type": "Relationship" -// } -type ActivityStreamsRelationship interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsRelationship returns the "relationship" property if - // it exists, and nil otherwise. - GetActivityStreamsRelationship() ActivityStreamsRelationshipProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSubject returns the "subject" property if it exists, - // and nil otherwise. - GetActivityStreamsSubject() ActivityStreamsSubjectProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // Relationship type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Relationship type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Relationship is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsRelationship) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsRelationship sets the "relationship" property. - SetActivityStreamsRelationship(i ActivityStreamsRelationshipProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSubject sets the "subject" property. - SetActivityStreamsSubject(i ActivityStreamsSubjectProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_remove_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_remove_interface.go deleted file mode 100644 index 5ef981adb..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_remove_interface.go +++ /dev/null @@ -1,269 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is removing the object. If specified, the origin -// indicates the context from which the object is being removed. -// -// Example 27 (https://www.w3.org/TR/activitystreams-vocabulary/#ex28-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/notes/1", -// "summary": "Sally removed a note from her notes folder", -// "target": { -// "name": "Notes Folder", -// "type": "Collection" -// }, -// "type": "Remove" -// } -// -// Example 28 (https://www.w3.org/TR/activitystreams-vocabulary/#ex29-jsonld): -// { -// "actor": { -// "name": "The Moderator", -// "type": "http://example.org/Role" -// }, -// "object": { -// "name": "Sally", -// "type": "Person" -// }, -// "origin": { -// "name": "A Simple Group", -// "type": "Group" -// }, -// "summary": "The moderator removed Sally from a group", -// "type": "Remove" -// } -type ActivityStreamsRemove interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Remove - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Remove type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Remove is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsRemove) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_service_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_service_interface.go deleted file mode 100644 index d62e421ad..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_service_interface.go +++ /dev/null @@ -1,275 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a service of any kind. -// -// Example 46 (https://www.w3.org/TR/activitystreams-vocabulary/#ex42-jsonld): -// { -// "name": "Acme Web Service", -// "type": "Service" -// } -type ActivityStreamsService interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsFollowers returns the "followers" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowers() ActivityStreamsFollowersProperty - // GetActivityStreamsFollowing returns the "following" property if it - // exists, and nil otherwise. - GetActivityStreamsFollowing() ActivityStreamsFollowingProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInbox returns the "inbox" property if it exists, and - // nil otherwise. - GetActivityStreamsInbox() ActivityStreamsInboxProperty - // GetActivityStreamsLiked returns the "liked" property if it exists, and - // nil otherwise. - GetActivityStreamsLiked() ActivityStreamsLikedProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsManuallyApprovesFollowers returns the - // "manuallyApprovesFollowers" property if it exists, and nil - // otherwise. - GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOutbox returns the "outbox" property if it exists, - // and nil otherwise. - GetActivityStreamsOutbox() ActivityStreamsOutboxProperty - // GetActivityStreamsPreferredUsername returns the "preferredUsername" - // property if it exists, and nil otherwise. - GetActivityStreamsPreferredUsername() ActivityStreamsPreferredUsernameProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsStreams returns the "streams" property if it exists, - // and nil otherwise. - GetActivityStreamsStreams() ActivityStreamsStreamsProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootDiscoverable returns the "discoverable" property if it exists, - // and nil otherwise. - GetTootDiscoverable() TootDiscoverableProperty - // GetTootFeatured returns the "featured" property if it exists, and nil - // otherwise. - GetTootFeatured() TootFeaturedProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Service - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // GetW3IDSecurityV1PublicKey returns the "publicKey" property if it - // exists, and nil otherwise. - GetW3IDSecurityV1PublicKey() W3IDSecurityV1PublicKeyProperty - // IsExtending returns true if the Service type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Service is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsService) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsFollowers sets the "followers" property. - SetActivityStreamsFollowers(i ActivityStreamsFollowersProperty) - // SetActivityStreamsFollowing sets the "following" property. - SetActivityStreamsFollowing(i ActivityStreamsFollowingProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInbox sets the "inbox" property. - SetActivityStreamsInbox(i ActivityStreamsInboxProperty) - // SetActivityStreamsLiked sets the "liked" property. - SetActivityStreamsLiked(i ActivityStreamsLikedProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsManuallyApprovesFollowers sets the - // "manuallyApprovesFollowers" property. - SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOutbox sets the "outbox" property. - SetActivityStreamsOutbox(i ActivityStreamsOutboxProperty) - // SetActivityStreamsPreferredUsername sets the "preferredUsername" - // property. - SetActivityStreamsPreferredUsername(i ActivityStreamsPreferredUsernameProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsStreams sets the "streams" property. - SetActivityStreamsStreams(i ActivityStreamsStreamsProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootDiscoverable sets the "discoverable" property. - SetTootDiscoverable(i TootDiscoverableProperty) - // SetTootFeatured sets the "featured" property. - SetTootFeatured(i TootFeaturedProperty) - // SetW3IDSecurityV1PublicKey sets the "publicKey" property. - SetW3IDSecurityV1PublicKey(i W3IDSecurityV1PublicKeyProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go deleted file mode 100644 index 6a2feb28e..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_tentativeaccept_interface.go +++ /dev/null @@ -1,254 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A specialization of Accept indicating that the acceptance is tentative. -// -// Example 11 (https://www.w3.org/TR/activitystreams-vocabulary/#ex8-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "actor": "http://john.example.org", -// "object": { -// "name": "Going-Away Party for Jim", -// "type": "Event" -// }, -// "type": "Invite" -// }, -// "summary": "Sally tentatively accepted an invitation to a party", -// "type": "TentativeAccept" -// } -type ActivityStreamsTentativeAccept interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // TentativeAccept type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the TentativeAccept type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this TentativeAccept is lesser, with an arbitrary - // but stable determination. - LessThan(o ActivityStreamsTentativeAccept) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_tentativereject_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_tentativereject_interface.go deleted file mode 100644 index 4f845c9d0..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_tentativereject_interface.go +++ /dev/null @@ -1,254 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A specialization of Reject in which the rejection is considered tentative. -// -// Example 26 (https://www.w3.org/TR/activitystreams-vocabulary/#ex27-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "actor": "http://john.example.org", -// "object": { -// "name": "Going-Away Party for Jim", -// "type": "Event" -// }, -// "type": "Invite" -// }, -// "summary": "Sally tentatively rejected an invitation to a party", -// "type": "TentativeReject" -// } -type ActivityStreamsTentativeReject interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // TentativeReject type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the TentativeReject type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this TentativeReject is lesser, with an arbitrary - // but stable determination. - LessThan(o ActivityStreamsTentativeReject) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_tombstone_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_tombstone_interface.go deleted file mode 100644 index 60ef273e7..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_tombstone_interface.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A Tombstone represents a content object that has been deleted. It can be used -// in Collections to signify that there used to be an object at this position, -// but it has been deleted. -// -// Example 60 (https://www.w3.org/TR/activitystreams-vocabulary/#ex184b-jsonld): -// { -// "name": "Vacation photos 2016", -// "orderedItems": [ -// { -// "id": "http://image.example/1", -// "type": "Image" -// }, -// { -// "deleted": "2016-03-17T00:00:00Z", -// "formerType": "/Image", -// "id": "http://image.example/2", -// "type": "Tombstone" -// }, -// { -// "id": "http://image.example/3", -// "type": "Image" -// } -// ], -// "totalItems": 3, -// "type": "OrderedCollection" -// } -type ActivityStreamsTombstone interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDeleted returns the "deleted" property if it exists, - // and nil otherwise. - GetActivityStreamsDeleted() ActivityStreamsDeletedProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsFormerType returns the "formerType" property if it - // exists, and nil otherwise. - GetActivityStreamsFormerType() ActivityStreamsFormerTypeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Tombstone - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Tombstone type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Tombstone is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsTombstone) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDeleted sets the "deleted" property. - SetActivityStreamsDeleted(i ActivityStreamsDeletedProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsFormerType sets the "formerType" property. - SetActivityStreamsFormerType(i ActivityStreamsFormerTypeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_travel_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_travel_interface.go deleted file mode 100644 index c0913a886..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_travel_interface.go +++ /dev/null @@ -1,250 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is traveling to target from origin. Travel is an -// IntransitiveActivity whose actor specifies the direct object. If the target -// or origin are not specified, either can be determined by context. -// -// Example 35 (https://www.w3.org/TR/activitystreams-vocabulary/#ex169-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "origin": { -// "name": "Work", -// "type": "Place" -// }, -// "summary": "Sally went home from work", -// "target": { -// "name": "Home", -// "type": "Place" -// }, -// "type": "Travel" -// } -type ActivityStreamsTravel interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Travel - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Travel type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Travel is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsTravel) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_undo_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_undo_interface.go deleted file mode 100644 index adc779522..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_undo_interface.go +++ /dev/null @@ -1,252 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor is undoing the object. In most cases, the object will -// be an Activity describing some previously performed action (for instance, a -// person may have previously "liked" an article but, for whatever reason, -// might choose to undo that like at some later point in time). The target and -// origin typically have no defined meaning. -// -// Example 29 (https://www.w3.org/TR/activitystreams-vocabulary/#ex32-jsonld): -// { -// "actor": "http://sally.example.org", -// "object": { -// "actor": "http://sally.example.org", -// "object": "http://example.org/posts/1", -// "target": "http://john.example.org", -// "type": "Offer" -// }, -// "summary": "Sally retracted her offer to John", -// "type": "Undo" -// } -type ActivityStreamsUndo interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Undo type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Undo type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Undo is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsUndo) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_update_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_update_interface.go deleted file mode 100644 index 1e8039587..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_update_interface.go +++ /dev/null @@ -1,249 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has updated the object. Note, however, that this -// vocabulary does not define a mechanism for describing the actual set of -// modifications made to object. The target and origin typically have no -// defined meaning. -// -// Example 30 (https://www.w3.org/TR/activitystreams-vocabulary/#ex33-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": "http://example.org/notes/1", -// "summary": "Sally updated her note", -// "type": "Update" -// } -type ActivityStreamsUpdate interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Update - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Update type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Update is lesser, with an arbitrary but - // stable determination. - LessThan(o ActivityStreamsUpdate) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_video_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_video_interface.go deleted file mode 100644 index f34bc2bbe..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_video_interface.go +++ /dev/null @@ -1,223 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a video document of any kind. -// -// Example 52 (https://www.w3.org/TR/activitystreams-vocabulary/#ex51-jsonld): -// { -// "duration": "PT2H", -// "name": "Puppy Plays With Ball", -// "type": "Video", -// "url": "http://example.org/video.mkv" -// } -type ActivityStreamsVideo interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootBlurhash returns the "blurhash" property if it exists, and nil - // otherwise. - GetTootBlurhash() TootBlurhashProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Video type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Video type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Video is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsVideo) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootBlurhash sets the "blurhash" property. - SetTootBlurhash(i TootBlurhashProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_view_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_view_interface.go deleted file mode 100644 index 01921858c..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_activitystreams_view_interface.go +++ /dev/null @@ -1,249 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that the actor has viewed the object. -// -// Example 31 (https://www.w3.org/TR/activitystreams-vocabulary/#ex161-jsonld): -// { -// "actor": { -// "name": "Sally", -// "type": "Person" -// }, -// "object": { -// "name": "What You Should Know About Activity Streams", -// "type": "Article" -// }, -// "summary": "Sally read an article", -// "type": "View" -// } -type ActivityStreamsView interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the View type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the View type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this View is lesser, with an arbitrary but stable - // determination. - LessThan(o ActivityStreamsView) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_branch_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_branch_interface.go deleted file mode 100644 index b18151ebf..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_branch_interface.go +++ /dev/null @@ -1,229 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a named variable reference to a version of the Repository, typically -// used for committing changes in parallel to other development, and usually -// eventually merging the changes into the main history line. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://forgefed.peers.community/ns" -// ], -// "context": "https://example.org/luke/myrepo", -// "id": "https://example.org/luke/myrepo/branches/master", -// "name": "master", -// "ref": "refs/heads/master", -// "type": "Branch" -// } -type ForgeFedBranch interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedRef returns the "ref" property if it exists, and nil - // otherwise. - GetForgeFedRef() ForgeFedRefProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Branch - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Branch type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Branch is lesser, with an arbitrary but - // stable determination. - LessThan(o ForgeFedBranch) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedRef sets the "ref" property. - SetForgeFedRef(i ForgeFedRefProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_commit_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_commit_interface.go deleted file mode 100644 index acfae3d07..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_commit_interface.go +++ /dev/null @@ -1,269 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a named set of changes in the history of a Repository. This is -// called "commit" in Git, Mercurial and Monotone; "patch" in Darcs; sometimes -// called "change set". Note that Commit is a set of changes that already -// exists in a repo’s history, while a Patch is a separate proposed change -// set, that could be applied and pushed to a repo, resulting with a Commit. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://forgefed.peers.community/ns" -// ], -// "attributedTo": "https://example.org/bob", -// "committed": "2019-07-26T23:45:01Z", -// "committedBy": "https://example.org/alice", -// "context": "https://example.org/alice/myrepo", -// "created": "2019-07-11T12:34:56Z", -// "description": { -// "content": "It's about time people can install on their computers!", -// "mediaType": "text/plain" -// }, -// "hash": "109ec9a09c7df7fec775d2ba0b9d466e5643ec8c", -// "id": "https://example.org/alice/myrepo/commits/109ec9a09c7df7fec775d2ba0b9d466e5643ec8c", -// "summary": "Add an installation script, fixes issue #89", -// "type": "Commit" -// } -type ForgeFedCommit interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedCommitted returns the "committed" property if it exists, and - // nil otherwise. - GetForgeFedCommitted() ForgeFedCommittedProperty - // GetForgeFedCommittedBy returns the "committedBy" property if it exists, - // and nil otherwise. - GetForgeFedCommittedBy() ForgeFedCommittedByProperty - // GetForgeFedDescription returns the "description" property if it exists, - // and nil otherwise. - GetForgeFedDescription() ForgeFedDescriptionProperty - // GetForgeFedFilesAdded returns the "filesAdded" property if it exists, - // and nil otherwise. - GetForgeFedFilesAdded() ForgeFedFilesAddedProperty - // GetForgeFedFilesModified returns the "filesModified" property if it - // exists, and nil otherwise. - GetForgeFedFilesModified() ForgeFedFilesModifiedProperty - // GetForgeFedFilesRemoved returns the "filesRemoved" property if it - // exists, and nil otherwise. - GetForgeFedFilesRemoved() ForgeFedFilesRemovedProperty - // GetForgeFedHash returns the "hash" property if it exists, and nil - // otherwise. - GetForgeFedHash() ForgeFedHashProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Commit - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Commit type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Commit is lesser, with an arbitrary but - // stable determination. - LessThan(o ForgeFedCommit) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedCommitted sets the "committed" property. - SetForgeFedCommitted(i ForgeFedCommittedProperty) - // SetForgeFedCommittedBy sets the "committedBy" property. - SetForgeFedCommittedBy(i ForgeFedCommittedByProperty) - // SetForgeFedDescription sets the "description" property. - SetForgeFedDescription(i ForgeFedDescriptionProperty) - // SetForgeFedFilesAdded sets the "filesAdded" property. - SetForgeFedFilesAdded(i ForgeFedFilesAddedProperty) - // SetForgeFedFilesModified sets the "filesModified" property. - SetForgeFedFilesModified(i ForgeFedFilesModifiedProperty) - // SetForgeFedFilesRemoved sets the "filesRemoved" property. - SetForgeFedFilesRemoved(i ForgeFedFilesRemovedProperty) - // SetForgeFedHash sets the "hash" property. - SetForgeFedHash(i ForgeFedHashProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_push_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_push_interface.go deleted file mode 100644 index 6f025aa71..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_push_interface.go +++ /dev/null @@ -1,270 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Indicates that new content has been pushed to the Repository. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://forgefed.peers.community/ns" -// ], -// "actor": "https://example.org/aviva", -// "context": "https://example.org/aviva/myproject", -// "id": "https://example.org/aviva/outbox/reBGo", -// "object": { -// "items": [ -// { -// "attributedTo": "https://example.org/aviva", -// "context": "https://example.org/aviva/myproject", -// "created": "2019-11-03T13:43:59Z", -// "hash": "d96596230322716bd6f87a232a648ca9822a1c20", -// "id": "https://example.org/aviva/myproject/commits/d96596230322716bd6f87a232a648ca9822a1c20", -// "summary": "Provide hints in sign-up form fields", -// "type": "Commit" -// } -// ], -// "totalItems": 1, -// "type": "OrderedCollection" -// }, -// "summary": "\u003cp\u003eAviva pushed a commit to -// myproject\u003c/p\u003e", -// "target": "https://example.org/aviva/myproject/branches/master", -// "to": [ -// "https://example.org/aviva/followers", -// "https://example.org/aviva/myproject", -// "https://example.org/aviva/myproject/team", -// "https://example.org/aviva/myproject/followers" -// ], -// "type": "Push" -// } -type ForgeFedPush interface { - // GetActivityStreamsActor returns the "actor" property if it exists, and - // nil otherwise. - GetActivityStreamsActor() ActivityStreamsActorProperty - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsInstrument returns the "instrument" property if it - // exists, and nil otherwise. - GetActivityStreamsInstrument() ActivityStreamsInstrumentProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsOrigin returns the "origin" property if it exists, - // and nil otherwise. - GetActivityStreamsOrigin() ActivityStreamsOriginProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsResult returns the "result" property if it exists, - // and nil otherwise. - GetActivityStreamsResult() ActivityStreamsResultProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTarget returns the "target" property if it exists, - // and nil otherwise. - GetActivityStreamsTarget() ActivityStreamsTargetProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Push type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Push type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Push is lesser, with an arbitrary but stable - // determination. - LessThan(o ForgeFedPush) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsActor sets the "actor" property. - SetActivityStreamsActor(i ActivityStreamsActorProperty) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsInstrument sets the "instrument" property. - SetActivityStreamsInstrument(i ActivityStreamsInstrumentProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsOrigin sets the "origin" property. - SetActivityStreamsOrigin(i ActivityStreamsOriginProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsResult sets the "result" property. - SetActivityStreamsResult(i ActivityStreamsResultProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTarget sets the "target" property. - SetActivityStreamsTarget(i ActivityStreamsTargetProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_repository_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_repository_interface.go deleted file mode 100644 index 00fc92ca5..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_repository_interface.go +++ /dev/null @@ -1,238 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a version control system repository. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://w3id.org/security/v1", -// "https://forgefed.peers.community/ns" -// ], -// "followers": "https://dev.example/aviva/treesim/followers", -// "id": "https://dev.example/aviva/treesim", -// "inbox": "https://dev.example/aviva/treesim/inbox", -// "name": "Tree Growth 3D Simulation", -// "outbox": "https://dev.example/aviva/treesim/outbox", -// "publicKey": { -// "id": "https://dev.example/aviva/treesim#main-key", -// "owner": "https://dev.example/aviva/treesim", -// "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhki....." -// }, -// "summary": "\u003cp\u003eTree growth 3D simulator for my nature -// exploration game\u003c/p\u003e", -// "team": "https://dev.example/aviva/treesim/team", -// "type": "Repository" -// } -type ForgeFedRepository interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedForks returns the "forks" property if it exists, and nil - // otherwise. - GetForgeFedForks() ForgeFedForksProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Repository - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Repository type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Repository is lesser, with an arbitrary but - // stable determination. - LessThan(o ForgeFedRepository) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedForks sets the "forks" property. - SetForgeFedForks(i ForgeFedForksProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_ticket_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_ticket_interface.go deleted file mode 100644 index 899f95f24..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_ticket_interface.go +++ /dev/null @@ -1,263 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents an item that requires work or attention. Tickets exist in the -// context of a project (which may or may not be a version-control -// repository), and are used to track ideas, proposals, tasks, bugs and more. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://forgefed.peers.community/ns" -// ], -// "assignedTo": "https://example.org/alice", -// "attributedTo": "https://example.com/bob", -// "content": "\u003cp\u003ePlease fix. -// \u003ci\u003eEverything\u003c/i\u003e is broken!\u003c/p\u003e", -// "context": "https://example.org/alice/myrepo", -// "id": "https://example.org/alice/myrepo/issues/42", -// "isResolved": false, -// "mediaType": "text/html", -// "source": { -// "content": "Please fix. *Everything* is broken!", -// "mediaType": "text/markdown; variant=CommonMark" -// }, -// "summary": "Nothing works!", -// "type": "Ticket" -// } -type ForgeFedTicket interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedAssignedTo returns the "assignedTo" property if it exists, - // and nil otherwise. - GetForgeFedAssignedTo() ForgeFedAssignedToProperty - // GetForgeFedDependants returns the "dependants" property if it exists, - // and nil otherwise. - GetForgeFedDependants() ForgeFedDependantsProperty - // GetForgeFedDependedBy returns the "dependedBy" property if it exists, - // and nil otherwise. - GetForgeFedDependedBy() ForgeFedDependedByProperty - // GetForgeFedDependencies returns the "dependencies" property if it - // exists, and nil otherwise. - GetForgeFedDependencies() ForgeFedDependenciesProperty - // GetForgeFedDependsOn returns the "dependsOn" property if it exists, and - // nil otherwise. - GetForgeFedDependsOn() ForgeFedDependsOnProperty - // GetForgeFedIsResolved returns the "isResolved" property if it exists, - // and nil otherwise. - GetForgeFedIsResolved() ForgeFedIsResolvedProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Ticket - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Ticket type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Ticket is lesser, with an arbitrary but - // stable determination. - LessThan(o ForgeFedTicket) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedAssignedTo sets the "assignedTo" property. - SetForgeFedAssignedTo(i ForgeFedAssignedToProperty) - // SetForgeFedDependants sets the "dependants" property. - SetForgeFedDependants(i ForgeFedDependantsProperty) - // SetForgeFedDependedBy sets the "dependedBy" property. - SetForgeFedDependedBy(i ForgeFedDependedByProperty) - // SetForgeFedDependencies sets the "dependencies" property. - SetForgeFedDependencies(i ForgeFedDependenciesProperty) - // SetForgeFedDependsOn sets the "dependsOn" property. - SetForgeFedDependsOn(i ForgeFedDependsOnProperty) - // SetForgeFedIsResolved sets the "isResolved" property. - SetForgeFedIsResolved(i ForgeFedIsResolvedProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_ticketdependency_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_ticketdependency_interface.go deleted file mode 100644 index 6d8621f47..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_forgefed_ticketdependency_interface.go +++ /dev/null @@ -1,242 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// Represents a relationship between 2 Tickets, in which the resolution of one -// ticket requires the other ticket to be resolved too. It MUST specify the -// subject, object and relationship properties, and the relationship property -// MUST be dependsOn. -// -// { -// "@context": [ -// "https://www.w3.org/ns/activitystreams", -// "https://forgefed.peers.community/ns" -// ], -// "attributedTo": "https://example.org/alice", -// "id": "https://example.org/ticket-deps/2342593", -// "object": "https://example.com/bob/coolproj/issues/85", -// "published": "2019-07-11T12:34:56Z", -// "relationship": "dependsOn", -// "subject": "https://example.org/alice/myproj/issues/42", -// "summary": "Alice's ticket depends on Bob's ticket", -// "type": [ -// "Relationship", -// "TicketDependency" -// ] -// } -type ForgeFedTicketDependency interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsRelationship returns the "relationship" property if - // it exists, and nil otherwise. - GetActivityStreamsRelationship() ActivityStreamsRelationshipProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSubject returns the "subject" property if it exists, - // and nil otherwise. - GetActivityStreamsSubject() ActivityStreamsSubjectProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // TicketDependency type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the TicketDependency type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this TicketDependency is lesser, with an arbitrary - // but stable determination. - LessThan(o ForgeFedTicketDependency) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsRelationship sets the "relationship" property. - SetActivityStreamsRelationship(i ActivityStreamsRelationshipProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSubject sets the "subject" property. - SetActivityStreamsSubject(i ActivityStreamsSubjectProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_toot_emoji_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_toot_emoji_interface.go deleted file mode 100644 index 0bd6694dc..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_toot_emoji_interface.go +++ /dev/null @@ -1,228 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// -// -// { -// "content": "Hello world :Kappa:", -// "id": "https://example.com/@alice/hello-world", -// "tag": [ -// { -// "icon": { -// "mediaType": "image/png", -// "type": "Image", -// "url": "https://example.com/files/kappa.png" -// }, -// "id": "https://example.com/emoji/123", -// "name": ":Kappa:", -// "type": "Emoji" -// } -// ], -// "type": "Note" -// } -type TootEmoji interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the Emoji type. - // Note that this should not be used by app developers. It is only - // used to help determine which implementation is LessThan the other. - // Developers who are creating a different implementation of this - // type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the Emoji type extends from the other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this Emoji is lesser, with an arbitrary but stable - // determination. - LessThan(o TootEmoji) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_toot_identityproof_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_toot_identityproof_interface.go deleted file mode 100644 index 32a925e3a..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_toot_identityproof_interface.go +++ /dev/null @@ -1,223 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// -// -// null -type TootIdentityProof interface { - // GetActivityStreamsAltitude returns the "altitude" property if it - // exists, and nil otherwise. - GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty - // GetActivityStreamsAttachment returns the "attachment" property if it - // exists, and nil otherwise. - GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty - // GetActivityStreamsAttributedTo returns the "attributedTo" property if - // it exists, and nil otherwise. - GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty - // GetActivityStreamsAudience returns the "audience" property if it - // exists, and nil otherwise. - GetActivityStreamsAudience() ActivityStreamsAudienceProperty - // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil - // otherwise. - GetActivityStreamsBcc() ActivityStreamsBccProperty - // GetActivityStreamsBto returns the "bto" property if it exists, and nil - // otherwise. - GetActivityStreamsBto() ActivityStreamsBtoProperty - // GetActivityStreamsCc returns the "cc" property if it exists, and nil - // otherwise. - GetActivityStreamsCc() ActivityStreamsCcProperty - // GetActivityStreamsContent returns the "content" property if it exists, - // and nil otherwise. - GetActivityStreamsContent() ActivityStreamsContentProperty - // GetActivityStreamsContext returns the "context" property if it exists, - // and nil otherwise. - GetActivityStreamsContext() ActivityStreamsContextProperty - // GetActivityStreamsDuration returns the "duration" property if it - // exists, and nil otherwise. - GetActivityStreamsDuration() ActivityStreamsDurationProperty - // GetActivityStreamsEndTime returns the "endTime" property if it exists, - // and nil otherwise. - GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty - // GetActivityStreamsGenerator returns the "generator" property if it - // exists, and nil otherwise. - GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty - // GetActivityStreamsIcon returns the "icon" property if it exists, and - // nil otherwise. - GetActivityStreamsIcon() ActivityStreamsIconProperty - // GetActivityStreamsImage returns the "image" property if it exists, and - // nil otherwise. - GetActivityStreamsImage() ActivityStreamsImageProperty - // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it - // exists, and nil otherwise. - GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty - // GetActivityStreamsLikes returns the "likes" property if it exists, and - // nil otherwise. - GetActivityStreamsLikes() ActivityStreamsLikesProperty - // GetActivityStreamsLocation returns the "location" property if it - // exists, and nil otherwise. - GetActivityStreamsLocation() ActivityStreamsLocationProperty - // GetActivityStreamsMediaType returns the "mediaType" property if it - // exists, and nil otherwise. - GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty - // GetActivityStreamsName returns the "name" property if it exists, and - // nil otherwise. - GetActivityStreamsName() ActivityStreamsNameProperty - // GetActivityStreamsObject returns the "object" property if it exists, - // and nil otherwise. - GetActivityStreamsObject() ActivityStreamsObjectProperty - // GetActivityStreamsPreview returns the "preview" property if it exists, - // and nil otherwise. - GetActivityStreamsPreview() ActivityStreamsPreviewProperty - // GetActivityStreamsPublished returns the "published" property if it - // exists, and nil otherwise. - GetActivityStreamsPublished() ActivityStreamsPublishedProperty - // GetActivityStreamsReplies returns the "replies" property if it exists, - // and nil otherwise. - GetActivityStreamsReplies() ActivityStreamsRepliesProperty - // GetActivityStreamsShares returns the "shares" property if it exists, - // and nil otherwise. - GetActivityStreamsShares() ActivityStreamsSharesProperty - // GetActivityStreamsSource returns the "source" property if it exists, - // and nil otherwise. - GetActivityStreamsSource() ActivityStreamsSourceProperty - // GetActivityStreamsStartTime returns the "startTime" property if it - // exists, and nil otherwise. - GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty - // GetActivityStreamsSummary returns the "summary" property if it exists, - // and nil otherwise. - GetActivityStreamsSummary() ActivityStreamsSummaryProperty - // GetActivityStreamsTag returns the "tag" property if it exists, and nil - // otherwise. - GetActivityStreamsTag() ActivityStreamsTagProperty - // GetActivityStreamsTo returns the "to" property if it exists, and nil - // otherwise. - GetActivityStreamsTo() ActivityStreamsToProperty - // GetActivityStreamsUpdated returns the "updated" property if it exists, - // and nil otherwise. - GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty - // GetActivityStreamsUrl returns the "url" property if it exists, and nil - // otherwise. - GetActivityStreamsUrl() ActivityStreamsUrlProperty - // GetForgeFedTeam returns the "team" property if it exists, and nil - // otherwise. - GetForgeFedTeam() ForgeFedTeamProperty - // GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if - // it exists, and nil otherwise. - GetForgeFedTicketsTrackedBy() ForgeFedTicketsTrackedByProperty - // GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if - // it exists, and nil otherwise. - GetForgeFedTracksTicketsFor() ForgeFedTracksTicketsForProperty - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetJSONLDType returns the "type" property if it exists, and nil - // otherwise. - GetJSONLDType() JSONLDTypeProperty - // GetTootSignatureAlgorithm returns the "signatureAlgorithm" property if - // it exists, and nil otherwise. - GetTootSignatureAlgorithm() TootSignatureAlgorithmProperty - // GetTootSignatureValue returns the "signatureValue" property if it - // exists, and nil otherwise. - GetTootSignatureValue() TootSignatureValueProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the - // IdentityProof type. Note that this should not be used by app - // developers. It is only used to help determine which implementation - // is LessThan the other. Developers who are creating a different - // implementation of this type's interface can use this method in - // their LessThan implementation, but routine ActivityPub applications - // should not use this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // IsExtending returns true if the IdentityProof type extends from the - // other type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this IdentityProof is lesser, with an arbitrary - // but stable determination. - LessThan(o TootIdentityProof) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetActivityStreamsAltitude sets the "altitude" property. - SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) - // SetActivityStreamsAttachment sets the "attachment" property. - SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) - // SetActivityStreamsAttributedTo sets the "attributedTo" property. - SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) - // SetActivityStreamsAudience sets the "audience" property. - SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) - // SetActivityStreamsBcc sets the "bcc" property. - SetActivityStreamsBcc(i ActivityStreamsBccProperty) - // SetActivityStreamsBto sets the "bto" property. - SetActivityStreamsBto(i ActivityStreamsBtoProperty) - // SetActivityStreamsCc sets the "cc" property. - SetActivityStreamsCc(i ActivityStreamsCcProperty) - // SetActivityStreamsContent sets the "content" property. - SetActivityStreamsContent(i ActivityStreamsContentProperty) - // SetActivityStreamsContext sets the "context" property. - SetActivityStreamsContext(i ActivityStreamsContextProperty) - // SetActivityStreamsDuration sets the "duration" property. - SetActivityStreamsDuration(i ActivityStreamsDurationProperty) - // SetActivityStreamsEndTime sets the "endTime" property. - SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) - // SetActivityStreamsGenerator sets the "generator" property. - SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) - // SetActivityStreamsIcon sets the "icon" property. - SetActivityStreamsIcon(i ActivityStreamsIconProperty) - // SetActivityStreamsImage sets the "image" property. - SetActivityStreamsImage(i ActivityStreamsImageProperty) - // SetActivityStreamsInReplyTo sets the "inReplyTo" property. - SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) - // SetActivityStreamsLikes sets the "likes" property. - SetActivityStreamsLikes(i ActivityStreamsLikesProperty) - // SetActivityStreamsLocation sets the "location" property. - SetActivityStreamsLocation(i ActivityStreamsLocationProperty) - // SetActivityStreamsMediaType sets the "mediaType" property. - SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) - // SetActivityStreamsName sets the "name" property. - SetActivityStreamsName(i ActivityStreamsNameProperty) - // SetActivityStreamsObject sets the "object" property. - SetActivityStreamsObject(i ActivityStreamsObjectProperty) - // SetActivityStreamsPreview sets the "preview" property. - SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) - // SetActivityStreamsPublished sets the "published" property. - SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) - // SetActivityStreamsReplies sets the "replies" property. - SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) - // SetActivityStreamsShares sets the "shares" property. - SetActivityStreamsShares(i ActivityStreamsSharesProperty) - // SetActivityStreamsSource sets the "source" property. - SetActivityStreamsSource(i ActivityStreamsSourceProperty) - // SetActivityStreamsStartTime sets the "startTime" property. - SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) - // SetActivityStreamsSummary sets the "summary" property. - SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) - // SetActivityStreamsTag sets the "tag" property. - SetActivityStreamsTag(i ActivityStreamsTagProperty) - // SetActivityStreamsTo sets the "to" property. - SetActivityStreamsTo(i ActivityStreamsToProperty) - // SetActivityStreamsUpdated sets the "updated" property. - SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) - // SetActivityStreamsUrl sets the "url" property. - SetActivityStreamsUrl(i ActivityStreamsUrlProperty) - // SetForgeFedTeam sets the "team" property. - SetForgeFedTeam(i ForgeFedTeamProperty) - // SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property. - SetForgeFedTicketsTrackedBy(i ForgeFedTicketsTrackedByProperty) - // SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property. - SetForgeFedTracksTicketsFor(i ForgeFedTracksTicketsForProperty) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetJSONLDType sets the "type" property. - SetJSONLDType(i JSONLDTypeProperty) - // SetTootSignatureAlgorithm sets the "signatureAlgorithm" property. - SetTootSignatureAlgorithm(i TootSignatureAlgorithmProperty) - // SetTootSignatureValue sets the "signatureValue" property. - SetTootSignatureValue(i TootSignatureValueProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} diff --git a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_w3idsecurityv1_publickey_interface.go b/vendor/github.com/go-fed/activity/streams/vocab/gen_type_w3idsecurityv1_publickey_interface.go deleted file mode 100644 index 7b6b7ffb8..000000000 --- a/vendor/github.com/go-fed/activity/streams/vocab/gen_type_w3idsecurityv1_publickey_interface.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by astool. DO NOT EDIT. - -package vocab - -// A public key represents a public cryptographical key for a user -type W3IDSecurityV1PublicKey interface { - // GetJSONLDId returns the "id" property if it exists, and nil otherwise. - GetJSONLDId() JSONLDIdProperty - // GetTypeName returns the name of this type. - GetTypeName() string - // GetUnknownProperties returns the unknown properties for the PublicKey - // type. Note that this should not be used by app developers. It is - // only used to help determine which implementation is LessThan the - // other. Developers who are creating a different implementation of - // this type's interface can use this method in their LessThan - // implementation, but routine ActivityPub applications should not use - // this to bypass the code generation tool. - GetUnknownProperties() map[string]interface{} - // GetW3IDSecurityV1Owner returns the "owner" property if it exists, and - // nil otherwise. - GetW3IDSecurityV1Owner() W3IDSecurityV1OwnerProperty - // GetW3IDSecurityV1PublicKeyPem returns the "publicKeyPem" property if it - // exists, and nil otherwise. - GetW3IDSecurityV1PublicKeyPem() W3IDSecurityV1PublicKeyPemProperty - // IsExtending returns true if the PublicKey type extends from the other - // type. - IsExtending(other Type) bool - // JSONLDContext returns the JSONLD URIs required in the context string - // for this type and the specific properties that are set. The value - // in the map is the alias used to import the type and its properties. - JSONLDContext() map[string]string - // LessThan computes if this PublicKey is lesser, with an arbitrary but - // stable determination. - LessThan(o W3IDSecurityV1PublicKey) bool - // Serialize converts this into an interface representation suitable for - // marshalling into a text or binary format. - Serialize() (map[string]interface{}, error) - // SetJSONLDId sets the "id" property. - SetJSONLDId(i JSONLDIdProperty) - // SetW3IDSecurityV1Owner sets the "owner" property. - SetW3IDSecurityV1Owner(i W3IDSecurityV1OwnerProperty) - // SetW3IDSecurityV1PublicKeyPem sets the "publicKeyPem" property. - SetW3IDSecurityV1PublicKeyPem(i W3IDSecurityV1PublicKeyPemProperty) - // VocabularyURI returns the vocabulary's URI as a string. - VocabularyURI() string -} -- cgit v1.2.3